开发者

How can we Retrive the 3gp file from sdcard into our application?

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"/>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜