[android-developers] Different ACTION_CALL intents
Hi all.
I'm looking at the intents for making calls, and there seem to be two
options.
1) Using code:
intent.setAction(Intent.ACTION_CALL);
intent.setData(Uri.parse("tel: 0800123456"));
This code actually makes the call.
2) In XML:
android:text="0800123456"
android:autoLink="all"
This code takes you to the phone call screen, with the number
populated, where the user has the option of making the call.
I prefer the second scenario, as the user gets the choice to call, but
how can I do that from code as in example 1?
Thanks.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home