Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,779,097 Members 44,036 Now Online
XDA Developers Android and Mobile Development Forum

Help with this code..

Tip us?
 
eebasadre20
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 2
Join Date: Jan 2014
Default Help with this code..

Hi. I am following android tutorial in making audio player. This is my first app to learn. I'm just wondering if i can change the path location for the music/songs because in the code the path used is in the sdcard. I haven't a physical android phone I'm just using the virtual, I want to change it the location where my music on my laptop are place. Can i do that? how?

------------------------------this is the code----------------------------------------------------------
// SDCard Path
****final String MEDIA_PATH = new String("/sdcard/");


Thank you!
 
SimplicityApks
Old
#2  
SimplicityApks's Avatar
Senior Member
Thanks Meter 324
Posts: 318
Join Date: May 2013
Location: Aachen
Quote:
Originally Posted by eebasadre20 View Post
Hi. I am following android tutorial in making audio player. This is my first app to learn. I'm just wondering if i can change the path location for the music/songs because in the code the path used is in the sdcard. I haven't a physical android phone I'm just using the virtual, I want to change it the location where my music on my laptop are place. Can i do that? how?

------------------------------this is the code----------------------------------------------------------
// SDCard Path
****final String MEDIA_PATH = new String("/sdcard/");


Thank you!
When creating a new emulator, there is the option to use a folder as sdcard. In the app, I think you can just use the default /sdcard folder and it will be redirected to the hard drive folder by the emulator.
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes