Oh, I just noticed that the PICK activity does not return an URI of the playlist picked (as it should) but automatically launches the MediaPlayback...
I think this is a violation of what the PICK activity should do, so I filed an issue here: http://code.google.com/p/android/issues/detail?id=958 Peli www.openintents.org On Oct 11, 11:39 pm, Peli <[EMAIL PROTECTED]> wrote: > > Isn't there a way to know from the debugger or other tools to know > > which activities have been registered etc. > > A good hint is to watch the logcat output while you are using > Android's built-in applications. > > If you see a line like this while playing with the built-in media > player: > 10-11 21:28:03.031: INFO/ActivityManager(53): Starting activity: > Intent { action=android.intent.action.PICK data= > type=vnd.android.cursor.dir/playlist comp={com.android.music/ > com.android.music.PlaylistBrowserActivity} } > > then a good candidate to try out would be: > > Intent i = new Intent(Intent.ACTION_PICK); > i.setType(MediaStore.Audio.Playlists.CONTENT_TYPE); > startActivity(i); > > because one can find in the documentation: > Intent.ACTION_PICK == "android.intent.action.PICK" > MediaStore.Audio.Playlists.CONTENT_TYPE == "vnd.android.cursor.dir/ > playlist" > > This lets you pick a playlist from your application. > > (ignore the component "comp" when defining the intent. This ensures > that your intent will work on whichever playlist browser is installed > on the phone). > > Finally, if you can't find the intent in the OpenIntents > registryhttp://www.openintents.org/en/intentstable, add it there yourself, or > leave a quick message in our forumhttp://www.openintents.org/en/forum/11 > so that we can add that intent :-) > > Peliwww.openintents.org > > On Oct 11, 3:59 pm, "Satya Komatineni" <[EMAIL PROTECTED]> > wrote: > > > Mark, > > Thanks for the quick reply. > > > I did see the openintents.org. > > > Those applications I am not clear, if they are already on the emulator > > or if they are specific to applications that are developed for android > > that could be downloaded. > > > I am trying to explore the apps that come with Android right out of the box. > > > Isn't there a way to know from the debugger or other tools to know > > which activities have been registered etc. > > > Satya > > > On Sat, Oct 11, 2008 at 9:48 AM, Mark Murphy <[EMAIL PROTECTED]> wrote: > > > > Satya Komatineni wrote: > > >> and then find out the actions they will respond to and the > > >> correspoding URIs needed? > > > >> At least to begin with those that are on the emulator out of the box > > > >http://www.openintents.org/en/applications > > > > It's probably incomplete, but it's a starting point. They also have > > > lists by intent, URI, and extras. > > > > -- > > > Mark Murphy (a Commons Guy) > > >http://commonsware.com > > > > Android Training on the Ranch! -- Mar 16-20, 2009 > > >http://www.bignerdranch.com/schedule.shtml --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

