igoratron / media-button-router

Automatically exported from code.google.com/p/media-button-router
Apache License 2.0
0 stars 0 forks source link

Can't figure out main activity for registered media button receiver user selected #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Have one of these reports. It looks like I can't figure out the main activity 
for the media button receiver. I should show some toast and fail cleanly, or 
just filter out apps that i can't find the main activity for. Need to look at 
code again.  No idea what app the user was going for so I can repo.
java.lang.NullPointerException
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1374)
at android.app.Activity.startActivityForResult(Activity.java:2873)
at android.app.Activity.startActivity(Activity.java:2983)
at com.harleensahni.android.mbr.Utils.forwardKeyCodeToComponent(Utils.java:107)
at 
com.harleensahni.android.mbr.ReceiverSelector.forwardToMediaReceiver(ReceiverSel
ector.java:586)
at 
com.harleensahni.android.mbr.ReceiverSelector.select(ReceiverSelector.java:644)
at 
com.harleensahni.android.mbr.ReceiverSelector.onTimeout(ReceiverSelector.java:67
1)
at 
com.harleensahni.android.mbr.ReceiverSelector.access$4(ReceiverSelector.java:652
)
at 
com.harleensahni.android.mbr.ReceiverSelector$4$1.run(ReceiverSelector.java:550)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:3806)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)

Original issue reported on code.google.com by harleens...@gmail.com on 3 Jul 2011 at 4:01

GoogleCodeExporter commented 9 years ago
similar: 
 android.content.ActivityNotFoundException: Unable to find explicit activity class {com.android.settings/com.android.internal.app.ResolverActivity}; have you declared this activity in your AndroidManifest.xml?
at 
android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1404)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1378)
at android.app.Activity.startActivityForResult(Activity.java:2817)
at android.app.Activity.startActivity(Activity.java:2923)
at com.harleensahni.android.mbr.Utils.forwardKeyCodeToComponent(Utils.java:107)
at 
com.harleensahni.android.mbr.ReceiverSelector.forwardToMediaReceiver(ReceiverSel
ector.java:586)
at 
com.harleensahni.android.mbr.ReceiverSelector.onListItemClick(ReceiverSelector.j
ava:390)
at android.app.ListActivity$2.onItemClick(ListActivity.java:321)
at android.widget.AdapterView.performItemClick(AdapterView.java:284)
at android.widget.ListView.performItemClick(ListView.java:3672)
at android.widget.AbsListView$PerformClick.run(AbsListView.java:1829)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4632)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:861)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:619)
at dalvik.system.NativeStart.main(Native Method)

Original comment by harleens...@gmail.com on 3 Jul 2011 at 4:04

GoogleCodeExporter commented 9 years ago
this is fixed for the NPE case. I don't know what's going on in the other case.

Original comment by harleens...@gmail.com on 21 Nov 2011 at 12:42