I am new to Android development. I want to add a click listener button to a button in widgets. I am updating the widget in the service. Thanks in advance.
Perhaps you should consider creating an interactive widget .
This includes the use of:
remoteView.setOnClickPendingIntent (R.id.widgetFrameLayout, pendingIntent);