[android-developers] Re: How to make phone call from home screen widget?
I tried that. But I get an error: 'The method startActivity(Intent) is
undefined for the type ImagesWidgetProvider'
On Nov 15, 1:44 pm, Marcin Orlowski <webnet.andr...@gmail.com> wrote:
> On 15 November 2010 06:54, Rohith Nandakumar
>
> <rohith.nandaku...@gmail.com> wrote:
> > I have a widget, and I want it to make a phone call to a preset number
> > when the user clicks on it. How do I do this?
>
> The same way you call from any other code.
>
> Intent intent= new Intent(Intent.ACTION_CALL);
> intent.setData(Uri.parse("tel:123456789"));
> startActivity(intent);
>
> remember to set right permissions
--
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