[android-beginners] Re: Play Audio File (stored in files directory)

2009-08-13 Thread Jack Ha
Use Environment.getExternalStorageDirectory(). -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On A

[android-beginners] Re: Play Audio File (stored in files directory)

2009-08-13 Thread Neil Chinniah
So you don't want the file to permanently rest on the SD card? I haven't looked into that yet, sorry. Actually I haven't even looked at what the path needs to be for me to be able to read from the SD card so if you know the answer to that, it would be appreciated. 2009/8/13 Ankit Shah > > Thank

[android-beginners] Re: Play Audio File (stored in files directory)

2009-08-12 Thread Ankit Shah
Thanks chinchin. I would like to to store audio file (wav file) in SD Card programmatic (at runtime). In my application when user clicks on "Download" button it will downloads audio file and should stores in SD Card. Right now able to download audio file from server and also able to store in fil

[android-beginners] Re: Play Audio File (stored in files directory)

2009-08-12 Thread chinchin
Hi, To put song on the sd card you need to use the adb tool in the android sdk tools folder. Place the sound file in the same directory as the adb.exe file. Load up your android virtual device. You can test connectivity between the adb.exe and the virtual dev by typing: adb devices This will produ

[android-beginners] Re: Play Audio File (stored in files directory)

2009-08-12 Thread Ankit Shah
Thanks David, thanks for reply. In this application "wav" file (i.e audio file) comes from server. I am successfully able to download this file and also able to store in files directory folder (i.e "/data/data/com.myapp/files/a.wav"). I am not able to store in "res directory" because it comes fr

[android-beginners] Re: Play Audio File (stored in files directory)

2009-08-12 Thread Kingcrowley
Could you store the wav on the SD Card and play it? or use an @id to play it and store it in the res directory? might make it a bit easier? never tried anything like this but i presume it would work and would remove the need for a filepath to it? David On Aug 12, 10:05 am, Ankit Shah wrote: > P