Reputation: 158
I am new to android development. I want add click listener on button in widget. I am updating widget in service. Thanks in advance.
Upvotes: 6
Views: 10917
Reputation: 2116
Maybe you should look into making a clickable widget.
This involves using:
remoteView.setOnClickPendingIntent(R.id.widgetFrameLayout, pendingIntent);
Upvotes: 5