简体   繁体   中英

How can i get internal storage and not sd card in android?

I know how to get the external storage we use:

String file = Enviroment.getExternalStorageDir();

Now I want to write my files on phone storage by using FileWriter and DataOutputStream .

Is it possible? How?

String MEDIA_PATH = Environment.getExternalStorageDirectory().getPath() + "/";

这用于从设备的外部和内部存储中获取文件

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM