Hi,

Try this:

Intent i = new Intent(Intent.ACTION_VIEW);
Uri u =
Uri.withAppendedPath(MediaStore.Audio.Media.INTERNAL_CONTENT_URI,
"1");
i.setData(u);
startActivity(i);

This will open the first audio file from the internal content provider
in Android's media player.

Peli
www.openintents.org


On Oct 1, 2:20 pm, Baonq86 <[EMAIL PROTECTED]> wrote:
> I can built my own mediaplayer but I want call the default mediaplayer
> program in Android OS. Can anyone help me ?
>
> On Oct 1, 4:58 pm, MrSnowflake <[EMAIL PROTECTED]> wrote:
>
> > I recon your could fire an Intent with VIEW and set the mime type to
> > your video file.
>
> > On 1 okt, 11:03,Baonq86<[EMAIL PROTECTED]> wrote:
>
> > > Does anyone know to built an application to call the default
> > > mediaplayer program in Android OS ?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to