============ Problem Description ============
Add a duplicate play ImageButton on Appwidget, which has no repetition, repeats the current song, repeats all songs, respectively for different pictures (source code only artist, album, play Pause, Next button).
After Appwidget click on the Play button, the main app activity will change accordingly, but on the main app, click on it's repeat imagebutton,appwidget on the repeat play on the current song does not change over, and repeat all the songs to play to the next song to be updated. cannot be updated immediately. Respectively in the Appwidget, activity can be updated, the problem is: activity in the click button, the corresponding button on the widget is not immediately refreshed. Ask the hero to advise
============ Solution 1============
The so-called "update Appwidget", that is appwidgetprovider know the change when notified Appwidgethost update:
Update the remoteviews when the status changes, and then update it with Remoteviews by Appwidgetmanager.updateappwidget ()
The Appwidget system will notify Appwidgethost to update its appwidgethostview.
Android4.0 Music player Appwidget new repeat play button picture how to sync updates in the main app