Thanks Mark. I tried the suggestion. Unfortunately, it breaks the app with the stock music player. It may fix it with Music Beta, but I didn't try that since it doesn't work properly with the default player which is what most people have these days. The UI doesn't give the user the opportunity to pick a song to sing along with. Do you have any other suggestions? Appreciate the assistance..
Dan On May 29, 9:28 am, Mark Murphy <[email protected]> wrote: > Try MediaStore.Audio.Media.CONTENT_TYPE instead, which maps to > vnd.android.cursor.dir/audio. The MIME type you are using is > undocumented. > > > > > > > > > > On Sun, May 29, 2011 at 9:13 AM,dsurround<[email protected]> wrote: > > I have an application that uses ACTION_PICK to allow the user to pick > > a song. Once that song is picked, the application uses the cursor > > location and does another intent later on to show the NOW_PLAYING > > interface. The application worked fine until I installed Music Beta > > on my droid device. The application then began failing with > > UnsupportedOperationException. The intent and filters looked like > > this: > > > Intent intent = new Intent(Intent.ACTION_PICK); > > intent.setType("vnd.android.cursor.dir/track"); > > this.startActivity(intent); > > > I uninstalled Music Bata and the application again worked fine. > > Wanted to see if this was a bug related to new Google music > > application and see if anyone else was having this problem. > > > Here is the log: > > > 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): FATAL EXCEPTION: main > > 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): > > android.content.ActivityNotFoundException: No Activity found to handle > > Intent { act=android.intent.action.PICK dat= > > typ=vnd.android.cursor.dir/track } > > 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at > > android.app.Instrumentation.checkStartActivityResult(Instrumentation.java: > > 1408) > > 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at > > android.app.Instrumentation.execStartActivity(Instrumentation.java: > > 1378) > > 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at > > android.app.Activity.startActivityForResult(Activity.java:2817) > > 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at > > djf.songing.Songing.onTouchEvent(Songing.java:124) > > 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at > > android.app.Activity.dispatchTouchEvent(Activity.java:2089) > > 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at > > com.android.internal.policy.impl.PhoneWindow > > $DecorView.dispatchTouchEvent(PhoneWindow.java:1655) > > 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at > > android.view.ViewRoot.handleMessage(ViewRoot.java:1785) > > 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at > > android.os.Handler.dispatchMessage(Handler.java:99) > > 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at > > android.os.Looper.loop(Looper.java:123) > > 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at > > android.app.ActivityThread.main(ActivityThread.java:4627) > > 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at > > java.lang.reflect.Method.invokeNative(Native Method) > > 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at > > java.lang.reflect.Method.invoke(Method.java:521) > > 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at > > com.android.internal.os.ZygoteInit > > $MethodAndArgsCaller.run(ZygoteInit.java:858) > > 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at > > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) > > 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): at > > dalvik.system.NativeStart.main(Native Method) > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected] > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

