[android-developers] How to call any method on button event of widget?
hi, I want to called method on press of Widget Button.
In my case i am coomunicating with other device using TCP and UDP
connection.
now i place an button in widget to respond recent user.
but i am not getting any way to call direct method on click of widget
button.
Intent configIntent = new Intent(context, SendToRecent.class);
active.setAction(ACTION_WIDGET_CONFIGURE);
PendingIntent configPendingIntent = PendingIntent.getService(context,
0, configIntent, 0);
remoteViews.setOnClickPendingIntent(R.id.btnResend,
configPendingIntent);
pls suggest me.
--
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