当前位置:网站首页>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
边栏推荐
- Computer version wechat applet full screen display method, mobile phone horizontal screen method.
- Official website of Unicode query
- Implement verification code verification
- alright alright alright
- OpenStack节点地址改变
- Tensorflow binary installation & Failure
- Oh my Zsh + TMUX installation
- 电压环对 PFC 系统性能影响分析
- 102. Sequence traversal of binary tree
- What is more elegant for flutter to log out and confirm again?
猜你喜欢

Summary of error prone knowledge points: Calculation of define s (x) 3*x*x+1.

Sword finger offer07 Rebuild binary tree
![[download attached] password acquisition tool lazagne installation and use](/img/21/eccf87ad9946d4177b600d96e17322.png)
[download attached] password acquisition tool lazagne installation and use

What is more elegant for flutter to log out and confirm again?

阿里 & 蚂蚁自研 IDE

2.7 overview of livedata knowledge points

强大的头像制作神器微信小程序

Application of ncnn neural network computing framework in orange school orangepi 3 lts development board

T430 toss and install OS majave 10.14

剑指Offer05. 替换空格
随机推荐
Apache Mina开发手册
257. All paths of binary tree
JVM memory model
剑指Offer07. 重建二叉树
【ArcGIS自定义脚本工具】矢量文件生成扩大矩形面要素
Kubectl_ Command experience set
Computer version wechat applet full screen display method, mobile phone horizontal screen method.
1-1 token
【ManageEngine】IP地址扫描的作用
阿里 & 蚂蚁自研 IDE
Atomic atomic operation
Official website of Unicode query
Is it safe to open an account for online stock speculation? Who can answer
TOGAF认证自学宝典V2.0
The latest version of blind box mall thinkphp+uniapp
error: expected reference but got (raw string)
并网-低电压穿越与孤岛并存分析
Sword finger offer10- I. Fibonacci sequence
Exploration of sqoop1.4.4 native incremental import feature
Use of atomicinteger