PHarkinian
Lurker
I'm developing an application which works with information broadcasted by the default Android music player.
I have set up an IntentFilter and BroadcastReceiver in order to listen for metadatachanged or playstatechanged events of the Android music player:
IntentFilter iF = new IntentFilter();
iF.addAction("com.android.music.metachanged");
iF.addAction("com.android.music.playstatechanged");
Thus I'm able to pick up when the user changes a song or pauses/starts playing a song. However, I'm interested to know when the user seeks forward or backward through a song - I need to know how many seconds are skipped.
I don't think there's an intent action for seeking? Any ideas as to how I should go about detecting this?
I have set up an IntentFilter and BroadcastReceiver in order to listen for metadatachanged or playstatechanged events of the Android music player:
IntentFilter iF = new IntentFilter();
iF.addAction("com.android.music.metachanged");
iF.addAction("com.android.music.playstatechanged");
Thus I'm able to pick up when the user changes a song or pauses/starts playing a song. However, I'm interested to know when the user seeks forward or backward through a song - I need to know how many seconds are skipped.
I don't think there's an intent action for seeking? Any ideas as to how I should go about detecting this?