Here’s the thing:
I have a widget and on it are many buttons. Now, I want to keep track if buttons are clicked from widget. In a normal layout:
public void onClick(...){
// other codes
Log.d("", "clicked");
}
How about in widget? Thanks.
Thanks.
You can set the onclickpendingintent like this
it’s an example to set onclick to an imageview that will launch the application when the imageview clicked
if you have any question feel free to ask in the comment