Kingsoft Office
Kingsoft Office

Reputation: 31

How to get the internal storage Directory such as "\flash"、"\emmc"

External memory card can be read by Environment.getExternalStorageDirectory () to get an external memory card space. So how to get to the internal storage path? such as "/flash","/emmc",it is used as same as ExternalStorage, please help!

Upvotes: 3

Views: 5698

Answers (1)

Hitendra
Hitendra

Reputation: 3226

you can get internal storage path by context.getCacheDir().and you can make file like below. File cacheDir = new File(context.getCacheDir(),"tempfile");

Upvotes: 3

Related Questions