当前位置:网站首页>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
边栏推荐
- Take you to the installation and simple use tutorial of the deveco studio compiler of harmonyos to create and run Hello world?
- Apache Mina Development Manual
- initial、inherit、unset、revert和all的区别
- elastic_ L01_ summary
- Flinksql can directly create tables and read MySQL or Kafka data on the client side, but how can it automatically flow and calculate?
- Alibaba is bigger than sending SMS (user microservice - message microservice)
- LeetCode 0556. Next bigger element III - end of step 4
- JVM内存模型
- Using swift language features, write a pseudo-random number generator casually
- Redhat5 installing socket5 proxy server
猜你喜欢
ncnn神经网络计算框架在香橙派OrangePi 3 LTS开发板中的使用介绍
Summary of error prone knowledge points: Calculation of define s (x) 3*x*x+1.
剑指Offer03. 数组中重复的数字【简单】
If you can't learn, you have to learn. Jetpack compose writes an im app (I)
GaN图腾柱无桥 Boost PFC(单相)七-PFC占空比前馈
剑指Offer10- I. 斐波那契数列
1-2 project technology selection and structure
The latest version of blind box mall thinkphp+uniapp
Prompt unread messages and quantity before opening chat group
ncnn神經網絡計算框架在香柳丁派OrangePi 3 LTS開發板中的使用介紹
随机推荐
Introduction to concurrent programming (I)
Swift5.7 extend some to generic parameters
JVM memory model
ncnn神經網絡計算框架在香柳丁派OrangePi 3 LTS開發板中的使用介紹
阿里 & 蚂蚁自研 IDE
Kubectl_ Command experience set
Sword finger offer06 Print linked list from end to end
Record your vulnhub breakthrough record
Applet wxss introduction
2.9 overview of databinding knowledge points
What is more elegant for flutter to log out and confirm again?
Idea packages the web project into a war package and deploys it to the server to run
剑指Offer05. 替换空格
2020-11_ Technical experience set
It feels great to know you learned something, isn‘t it?
公纵号发送提示信息(用户微服务--消息微服务)
Wechat applet pages always report errors when sending values to the background. It turned out to be this pit!
云计算未来 — 云原生
Write a simple nodejs script
Adult adult adult