I am new to android development. I want add click listener on button in widget. I am updating widget in service. Thanks in advance.
            Asked
            
        
        
            Active
            
        
            Viewed 1.1k times
        
    1 Answers
5
            Maybe you should look into making a clickable widget.
This involves using:
remoteView.setOnClickPendingIntent(R.id.widgetFrameLayout, pendingIntent);
- 
                    I am using service to update the widget So what should be the pending intent – Imran Khan Mar 25 '13 at 07:28
 - 
                    Not too familiar with the widget callback system. I'd look into the link though. Sorry if it didn't help much. – Kgrover Mar 25 '13 at 07:29
 - 
                    Please upvote the answer as well if you can! thanks and I'm glad I helped. :) – Kgrover Mar 25 '13 at 07:54