Thank you, Peli. I tried your code. I use a button, when I click the button, my application will run your code. But immediately, I escape the default mediaplayer and go back my application ! Can you solve this problem ?
On Oct 12, 4:01 am, Peli <[EMAIL PROTECTED]> wrote: > > Reviewing the public database of intents > > and applications over on OpenIntents, I'm not sure there is. > > Uh uh.. unfortunately, our database is far from being complete ;-) > > I've just added the information for the build-in media > player:http://www.openintents.org/en/node/112 > > To play back the first audio file in the internal audio content > provider, you can use the following code: > > Intent i = new Intent(Intent.ACTION_VIEW); > Uri u = > Uri.withAppendedPath(MediaStore.Audio.Media.INTERNAL_CONTENT_URI, > "1"); > i.setData(u); > startActivity(i); > > Of course, this does not answer the question how you can get the > content of the content provider (i.e. the number "1"), but that is a > question for a separate thread ;-) > > Peliwww.openintents.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

