开发者

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

开发者 https://www.devze.com 2023-02-19 17:08 出处:网络
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)

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

精彩评论

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

关注公众号