On Nov 15, 8:44 am, Marcin Orlowski <[email protected]> wrote:
> The same way you call from any other code.
No, you don't.
> Intent intent= new Intent(Intent.ACTION_CALL);
> intent.setData(Uri.parse("tel:123456789"));
> startActivity(intent);
That isn't correct. Declaring and setting up the Intent is fine, but
you need to use an AppWidgetManager instance to attach it to your
widget. Look at the ExampleAppWidgetProvider code in
http://developer.android.com/guide/topics/appwidgets/index.html#AppWidgetProvider
for something quite similar... but use an ACTION_CALL intent, rather
than that sample's ExampleActivity launch.
String
--
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