I don't know how to use the path setDataSource(path) of MediaPlayer?

by dragonksn » Tue, 14 Apr 2009 01:00:02 GMT


Sponsored Links
 Dear all,
I'm a new comer to Android. I want to play a music file located in my
SDCARD image by using my own code. But all the path I have tried with
did not work. The file is located in /myandroid/dcim/Camera/Songs/
track1.mp3 (This seen when I mount the drive to local machine). But
the song can be played by music player of Android.

Can anyone help me with this? I'm very curious with this..

Thanks in advance :)
dragonksn

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Common Classpath Variable Breaks Junit

I set up my Android project and various java projects to use a common
directory (set via classpath) for external Jar Files. Now my unit
tests can't run because dalvik says it can't resolve or find classes,
even though some of the classes are defined in the test project
itself !

Does anybody have ideas? This wasn't happening when each project
referenced its own local copy of the 3rd party jar files.

-- 

2. Partisi Ext dan Swap di sdcard yg sudah ada isinya

Saya mau bikin partisi Ext dan swap untuk app2sd tapi memakai sdcard
4gb yang sudah ada isinya sekitar 3gb, apakah mungkin membuat partisi
ext/swap tanpa mempartisi ulang atau mendelete fat32nya (hanya di
rezise) ?

Terimakasih,
Steve

-- 
"Indonesian Android Community [id-android]" 

3. Top 10 android Games & Application

4. omap: resource: Add per-resource mutex for OMAP resource framewor

5. MSM7201 host+ function driver module

6. How to launch Activity from browser?

7. draw() vs onDraw()