当前位置:网站首页>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
边栏推荐
- 剑指Offer07. 重建二叉树
- Is it safe to open an account for online stock speculation? Who can answer
- 4. Wireless in vivo nano network: electromagnetic propagation model and key points of sensor deployment
- flinksql是可以直接客户端建表读mysql或是kafka数据,但是怎么让它自动流转计算起来呢?
- Adult adult adult
- 145. Post order traversal of binary tree
- adb push apk
- Introduction to concurrent programming (II)
- 2.6 preliminary cognition of synergetic couroutines
- idea将web项目打包成war包并部署到服务器上运行
猜你喜欢

剑指Offer04. 二维数组中的查找【中等】
![Sword finger offer04 Search in two-dimensional array [medium]](/img/c4/002c951f8d914aaea4f4133685ebd1.png)
Sword finger offer04 Search in two-dimensional array [medium]

Analysis of a music player Login Protocol
![[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

If you can't learn, you have to learn. Jetpack compose writes an im app (II)

低代码平台国际化多语言(i18n)技术方案

Low code platform international multilingual (I18N) technical solution

剑指Offer03. 数组中重复的数字【简单】

【计网】第三章 数据链路层(2)流量控制与可靠传输、停止等待协议、后退N帧协议(GBN)、选择重传协议(SR)

云计算未来 — 云原生
随机推荐
电压环对 PFC 系统性能影响分析
The difference between lambda and anonymous inner class
Xctf mobile--app1 problem solving
Tianyi ty1208-z brush machine detailed tutorial (free to remove)
Application of ncnn neural network computing framework in orange school orangepi 3 lts development board
4. 无线体内纳米网:电磁传播模型和传感器部署要点
【ArcGIS自定义脚本工具】矢量文件生成扩大矩形面要素
Swift bit operation exercise
2020-09_ Shell Programming Notes
01_ Using the concurrent tool class library, is thread safety safe
Sword finger offer04 Search in two-dimensional array [medium]
02_ Lock the code, and don't let the "lock" become a worry
Adult adult adult
Sword finger offer06 Print linked list from end to end
Swift5.7 extend some to generic parameters
Sword finger offer05 Replace spaces
Official website of Unicode query
剑指Offer05. 替换空格
Tensorflow binary installation & Failure
ncnn神經網絡計算框架在香柳丁派OrangePi 3 LTS開發板中的使用介紹