当前位置:网站首页>context. Getexternalfilesdir() is compared with the returned path
context. Getexternalfilesdir() is compared with the returned path
2022-07-03 12:43:00 【liuhaha1015】
from Android 10 Start , The requirements for data access rights are becoming more and more strict ,app More and more private directories are used , And then context.getExternalFilesDir() The use of is also more , The following is the return path obtained by transferring different parameters :
getExternalCacheDir();
Path is :/storage/emulated/0/Android/data/< App package name >/cache
getExternalFilesDir(null);
Path is :/storage/emulated/0/Android/data/< App package name >/files
getExternalFilesDir("");
Path is :/storage/emulated/0/Android/data/< App package name >/files
getExternalFilesDir(“logs”);
Path is :/storage/emulated/0/Android/data/< App package name >/files/logs
getExternalCacheDir(“logs/zip”);
Path is :/storage/emulated/0/Android/data/< App package name >/files/logs/zip
getExternalFilesDir(Environment.DIRECTORY_MUSIC);
Path is :/storage/emulated/0/Android/data/< App package name >/files/Music
getExternalFilesDir(Environment.DIRECTORY_PODCASTS);
Path is :/storage/emulated/0/Android/data/< App package name >/files/Podcasts
getExternalFilesDir(Environment.DIRECTORY_RINGTONES);
Path is :/storage/emulated/0/Android/data/< App package name >/files/Ringtones
getExternalFilesDir(Environment.DIRECTORY_ALARMS);
Path is :/storage/emulated/0/Android/data/< App package name >/files/Alarms
getExternalFilesDir(Environment.DIRECTORY_NOTIFICATIONS);
Path is :/storage/emulated/0/Android/data/< App package name >/files/Notifications
getExternalFilesDir(Environment.DIRECTORY_PICTURES);
Path is :/storage/emulated/0/Android/data/< App package name >/files/Pictures
getExternalFilesDir(Environment.DIRECTORY_MOVIES);
Path is :/storage/emulated/0/Android/data/< App package name >/files/Movies
getDataDir;
Path is :/data/user/0/< App package name >
getFilesDir;
Path is :/data/user/0/< App package name >/files
getCacheDir;
Path is :/data/user/0/< App package name >/cache
边栏推荐
猜你喜欢

4. 无线体内纳米网:电磁传播模型和传感器部署要点

Self made pop-up input box, input text, and click to complete the event.

Xctf mobile--app3 problem solving

阿里大于发送短信(用户微服务--消息微服务)

Xctf mobile--app1 problem solving
![[ManageEngine] the role of IP address scanning](/img/dc/df353da0e93e4d936c39a39493b508.png)
[ManageEngine] the role of IP address scanning
![[ArcGIS user defined script tool] vector file generates expanded rectangular face elements](/img/39/0b31290798077cb8c355fbd058e4d3.png)
[ArcGIS user defined script tool] vector file generates expanded rectangular face elements

Use bloc to build a page instance of shutter

Take you to the installation and simple use tutorial of the deveco studio compiler of harmonyos to create and run Hello world?

剑指Offer06. 从尾到头打印链表
随机推荐
剑指Offer06. 从尾到头打印链表
Introduction to concurrent programming (II)
Swift5.7 扩展 some 到泛型参数
2020-09_ Shell Programming Notes
Introduction to concurrent programming (I)
Adult adult adult
最新版抽奖盲盒运营版
Swift5.7 extend some to generic parameters
239. Sliding window maximum
2.8 overview of ViewModel knowledge
Differences between initial, inherit, unset, revert and all
Analysis of a music player Login Protocol
Do you feel like you've learned something and forgotten it?
写一个简单的nodejs脚本
The best shortcut is no shortcut
[ArcGIS user defined script tool] vector file generates expanded rectangular face elements
wpa_ cli
阿里大于发送短信(用户微服务--消息微服务)
Apache Mina Development Manual
Swift Error Handling