Thanks Mark :-)

On Jul 5, 11:47 am, Mark Murphy <[email protected]> wrote:
> Use ACTION_DIAL instead of ACTION_CALL. As a bonus, you don't need the
> CALL_PHONE permission.
>
>
>
>
>
>
>
>
>
> On Tue, Jul 5, 2011 at 3:37 AM, Neilz <[email protected]> wrote:
> > 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 [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.6 Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to