I am new to android development. I want add click listener on button in widget. I am updating widget in service. Thanks in advance.
1 Answer
Maybe you should look into making a clickable widget.
This involves using:
remoteView.setOnClickPendingIntent(R.id.widgetFrameLayout, pendingIntent);
3 Comments
Imran Khan
I am using service to update the widget So what should be the pending intent
Kgrover
Not too familiar with the widget callback system. I'd look into the link though. Sorry if it didn't help much.
Kgrover
Please upvote the answer as well if you can! thanks and I'm glad I helped. :)