I'm new to Andriod development and was wondering how I could retrieve the 3开发者_开发百科gp
file from an SD card into my application?
try this (one of the many way to do that)
String FilePath = Environment.getExternalStorageDirectory().getAbsolutePath()+"/your/file/directory"+ "YOURFILENAME";
File 3gpFile = new File(FilePath);
now go ahead and use 3gpFile to do other stuff remember to have uses-permission in your manifest file
<uses-permission android:name"android.permission.WRITE_EXTERNAL_STORAGE"/>
精彩评论