Sujet : Re: 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, 11:27:11
Autres entêtes
Organisation : BWH Usenet Archive (https://usenet.blueworldhosting.com)
Message-ID : <vul0pv$2nrt$1@nnrp.usenet.blueworldhosting.com>
References : 1 2 3
User-Agent : Alan Baker insisted this line can not be changed
This will create a "two-tap shortcut" to dial any number
on my Samsung Android 13 phone (needs to be tested on others).
1. Start "Intents" & populate as below & hit the "airplane" icon.
<
https://play.google.com/store/apps/details?id=krow.dev.scheme>
Action = ANDROID.DIAL = Android.intent.action.DIAL
Package Name = com.samsung.android.dialer
Class Name = (Leave this field blank)
Data = tel:+18007435002
Mime Type = (Leave this field blank)
Extra = (Leave this field blank)
Category = (Leave this field blank)
Result = this populated the dialer; just hit the button.
2. In "Intents", go to the "History" tab & longpress that intent.
In "Intents" your choices for that intent are the following:
Execute intent
Edit alias
Copy uri text = tel:+18007435002#Intent;action=android.intent.action.DIAL;package=com.samsung.android.dialer;end
Remove intent
Create shortcut = give it a name "callpge" and press "OK"
Favorite
3. Start Intent Launcher & paste in that URI above.
<
https://play.google.com/store/apps/details?id=com.villevalta.intentlauncher>
ACTION = ACTION_CALL
Uri = tel:+18007435002#Intent;action=android.intent.action.DIAL;package=com.samsung.android.dialer;end
Press the blue "LAUNCH" button
Result: Permission Denial: starting Intent
{ act=android.intent.action.CALL dat=tel:xxxxxxxxxxxx
cmp=com.android.server.telecom/.components.UserCallActivity }
from ProcessRecord{dfa61ce26780:com.villevalta.intentlauncher/u0a535}
(pid=26780,uid=10535) requires android.permission.CALL_PHONE
The problem with creating an Intent, I think, is that almost no app is
going to have permission to make the call. It's a permission thing.
Apps that execute Intents can only set up the dialing of the number.
ACTION = ACTION_DIAL
tel:+18007435002#Intent;action=android.intent.action.DIAL;package=com.samsung.android.dialer;end
So, for now, I'll create a two-tap shortcut in the next post, so that
anyone can create a two-tap shortcut to call any desired phone number.