diff --git a/AndroidManifest.xml b/AndroidManifest.xml index c33eddb..8717245 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -223,6 +223,13 @@ android:exported="true" android:enabled="true"> + + + + + + + diff --git a/src/com/adam/aslfms/receiver/AmazonMP3Receiver.java b/src/com/adam/aslfms/receiver/AmazonMP3Receiver.java index 4cd4631..edff7cc 100644 --- a/src/com/adam/aslfms/receiver/AmazonMP3Receiver.java +++ b/src/com/adam/aslfms/receiver/AmazonMP3Receiver.java @@ -19,6 +19,7 @@ import android.util.Log; import com.adam.aslfms.util.Track; import com.adam.aslfms.util.Util; +import java.util.*; /** * A BroadcastReceiver for intents sent by the Amazon Music music player @@ -39,6 +40,19 @@ public class AmazonMP3Receiver extends AbstractPlayStatusReceiver { static final String TAG = "AmazonMP3Receiver"; static private Track track = null; + public static void dumpIntent(Bundle bundle){ + if (bundle != null) { + Set keys = bundle.keySet(); + Iterator it = keys.iterator(); + Log.e(TAG,"Dumping Intent start"); + while (it.hasNext()) { + String key = it.next(); + Log.e(TAG,"[" + key + "=" + bundle.get(key)+"]"); + } + Log.e(TAG,"Dumping Intent end"); + } + } + @Override protected void parseIntent(Context ctx, String action, Bundle bundle) { @@ -79,6 +93,11 @@ else if (action == ACTION_AMZN_META) track = b.build(); } + else + { + dumpIntent(bundle); + + } } }