Permalink
Browse files

Added first stubby version of MusicBroadcastReceiver.

Added "Android Bugs.txt" doc.
  • Loading branch information...
jjc1138
jjc1138 committed Nov 13, 2008
1 parent 242a429 commit 0a471d79255b9ab390616a6b435d4c593eae7517
Showing with 25 additions and 1 deletion.
  1. +1 −0 Android Bugs.txt
  2. +8 −1 AndroidManifest.xml
  3. +16 −0 src/net/jjc1138/android/scrobbler/MusicBroadcastReceiver.java
View
@@ -0,0 +1 @@
+Going to the playlist and changing tracks there doesn't send a metachanged broadcast. Neither does choosing a new track from the library.
View
@@ -11,5 +11,12 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
- </application>
+ <receiver android:name=".MusicBroadcastReceiver">
+ <intent-filter>
+ <action android:name="com.android.music.metachanged" />
+ <action android:name="com.android.music.playbackcomplete" />
+ <action android:name="com.android.music.playstatechanged" />
+ </intent-filter>
+ </receiver>
+ </application>
</manifest>
@@ -0,0 +1,16 @@
+package net.jjc1138.android.scrobbler;
+
+import android.content.BroadcastReceiver;
+import android.content.Context;
+import android.content.Intent;
+import android.util.Log;
+
+public class MusicBroadcastReceiver extends BroadcastReceiver {
+
+ @Override
+ public void onReceive(Context context, Intent intent) {
+ Log.v("Scrob", intent.toString());
+ Log.v("ScrobE", intent.getExtras().keySet().toString());
+ }
+
+}

0 comments on commit 0a471d7

Please sign in to comment.