Sujet : How to make custom one-tap shortcuts to phone numbers in Android
De : marion (at) *nospam* facts.com (Marion)
Groupes : comp.mobile.androidDate : 27. Apr 2025, 08:06:04
Autres entêtes
Organisation : BWH Usenet Archive (https://usenet.blueworldhosting.com)
Message-ID : <vukl0r$2hgr$1@nnrp.usenet.blueworldhosting.com>
User-Agent : Alan Baker insisted this line can not be changed
If you have ideas for how to create dialer shortcuts, please advise.
The topic came up minutes ago in this cross-reference message below:
*How to make custom one-tap shortcuts to phone numbers in Android*
<
https://www.novabbs.com/computers/article-flat.php?id=58704&group=comp.mobile.android#58704>
Where I think billions of people could benefit if we, together, as a team,
can write up a tutorial for how anyone on Android can create a one-tap
shortcut that dials any given person, where they can put those shortcuts
into a homescreen folder, perhaps with their photo as the shortcut icon.
My first question is has anyone on this newsgroup already done it?
(Because if you have, then just let us know how you did it please!)
If nobody has already done it, then here's my first swag at how to do it.
(This is copied, verbatim, from the referenced post, as a starting point.)
What we might be able to do is craft a one-tap shortcut to the phone number
if we can figure out the "Intent" syntax, which would be useful to billions
of people (since everyone needs a one-tap dial shortcut from time to time).
"Hey Android, dial this phone number: tel:1.555.123.4567."
(Action: ACTION_DIAL, Data: tel:1.555.123.4567)
The critical piece we need to figure out is how to craft an "Intent" with
the "Action" of "Intent.ACTION_DIAL" and a specific "URI" to the desired
phone number of the format "tel:15551234567".
Maybe I'll test it out since BILLIONS of people could use that tutorial.
But it might take a while as it's not something in my already long todo.
Here's some quick pseudocode though... for what I think needs to be done.
Create Intent
Action: android.intent.action.DIAL
Data URI: tel:15551234567
Package: com.samsung.android.incallui
(or com.android.dialer or com.google.android.dialer)
Class (Activity): com.android.dialer.DialtactsActivity
(or com.google.android.dialer.extensions.GoogleDialtactsActivity)
The beauty of a one-tap shortcut is you can treat it like any other
shortcut. It can be in folders. It can have any icon you like.
-- Note a widget is not the same thing as a one-tap homescreen shortcut.