Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

click listener on android widget Button

I am new to android development. I want add click listener on button in widget. I am updating widget in service. Thanks in advance.

like image 739
Imran Khan Avatar asked Mar 25 '13 07:03

Imran Khan


1 Answers

Maybe you should look into making a clickable widget.

This involves using:

remoteView.setOnClickPendingIntent(R.id.widgetFrameLayout, pendingIntent);

like image 137
Kgrover Avatar answered Oct 01 '22 22:10

Kgrover