Index: android/src/org/rockbox/Helper/RunForegroundManager.java =================================================================== --- android/src/org/rockbox/Helper/RunForegroundManager.java (revision 29782) +++ android/src/org/rockbox/Helper/RunForegroundManager.java (working copy) @@ -78,6 +78,13 @@ mWidgetUpdate.putExtra("album", album); mWidgetUpdate.putExtra("albumart", albumart); mCurrentService.sendBroadcast(mWidgetUpdate); + + Intent scrobbleUpdate = new Intent("net.jjc1138.android.scrobbler.action.MUSIC_STATUS"); + scrobbleUpdate.putExtra("playing", true); + scrobbleUpdate.putExtra("artist", artist); + scrobbleUpdate.putExtra("track", title); + scrobbleUpdate.putExtra("album", album); + mCurrentService.sendBroadcast(scrobbleUpdate); } public void resendUpdateNotification() @@ -91,6 +98,10 @@ Log.d("Rockbox", "TrackFinish"); Intent widgetUpdate = new Intent("org.rockbox.TrackFinish"); mCurrentService.sendBroadcast(widgetUpdate); + + Intent scrobbleUpdate = new Intent("net.jjc1138.android.scrobbler.action.MUSIC_STATUS"); + scrobbleUpdate.putExtra("playing", false); + mCurrentService.sendBroadcast(scrobbleUpdate); } /* Loosely based on http://developer.android.com/reference/android/app/Service.html#startForeground(int, android.app.Notification) */