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

by rylance » Tue, 14 Apr 2009 16:01:22 GMT

Sponsored Links

If you have pushed the songs to the root of your sdcard then just use
setDataSourece("/sdcard/mySongName.mp3"), make sure you have set the path to
your image in Eclipse (if you are using Eclipse), make sure you are using
the correct run configuration a simple test would be from shell run adb
shell ls /sdcard (or use ddms file browser) then you can see if you have
successfully "installed" your image file.

The important thing to remember is that mp3's location on your pc is
irrelevant and that the phone plays songs from the "sdcard".


Other Threads

1. Read Image with multiple Frames - Animated Gif

Sorry, the decoders don't expose per-frameness yet.

It may seem awkward, but you can load a Movie, and then draw each
frame into an offscreen bitmap, and then save/compress those into
separate files.


2. how to completely wipe out the application data

I'm developing an application which downloads a file from FTP server. The
code first checks if file is present on local system . If it is not present
on local system then it downloads it from FTP server. Application must
download file from FTP server when it executes first time after getting

If we reinstall the application , android preserves the data of old
application .So now application finds the file on local system and does not
download it from FTP server. But it should always download the file on first
execution after fresh install.

Is there any way to completely wipe out the previous application data on
fresh install ?

Is there any registry or some location where an application can store data
and it gets automatically wiped out when application is uninstalled ?



3. Multi screen support

4. how to remove application specific data

5. cupcake/development/tools/eclipse/scripts/build_server.sh failed on Mac OS -- HELP

6. ListMultipleChoice

7. How to get the Screen Mode (Landscape or portrait) in a service?