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 <[email protected]> wrote:
> On 15 November 2010 06:54, Rohith Nandakumar
>
> <[email protected]> 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 [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