This took me awhile to figure it out because whenever I navigate using the buttons in one of the widget, it affects all other instances of that widget. But thankfully, some forum member in Stack Overflow named snailer provided a solution to making each Intent object unique per instance of an Android widget.

Just add the following code to your Intent object.

The variable URI_SCHEME is a String, and can be whatever you would like. ie – “ABCD” This causes each widget to have a unique PendingIntent.

Related Posts Plugin for WordPress, Blogger...