Hi :)

I want to call a static method of a class when i click on the image of
my AppWidget.

I know how to call an activity :
Intent intent = new Intent(context, EnableWifi.class);
PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 0,
intent, 0);
RemoteViews views = new RemoteViews(context.getPackageName(),
R.layout.main);
views.setOnClickPendingIntent(R.id.wifi_widget_icon, pendingIntent);

But i don't know how to call just a method.

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

Reply via email to