当前位置:网站首页>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
边栏推荐
- How to convert a decimal number to binary in swift
- init. RC service failed to start
- With pictures and texts, summarize the basic review of C language in detail, so that all kinds of knowledge points are clear at a glance?
- Atomic atomic operation
- Adult adult adult
- Swift5.7 extend some to generic parameters
- Swift Error Handling
- 剑指Offer09. 用两个栈实现队列
- Xctf mobile--app2 problem solving
- initial、inherit、unset、revert和all的区别
猜你喜欢
雲計算未來 — 雲原生
Record your vulnhub breakthrough record
Xctf mobile--app3 problem solving
阿里 & 蚂蚁自研 IDE
强大的头像制作神器微信小程序
GaN图腾柱无桥 Boost PFC(单相)七-PFC占空比前馈
Xctf mobile--rememberother problem solving
剑指Offer05. 替换空格
Alibaba is bigger than sending SMS (user microservice - message microservice)
Self made pop-up input box, input text, and click to complete the event.
随机推荐
Kung Fu pays off, and learning is done
Define a list, store n integers, and calculate the length, maximum value, minimum value and average value of the list
(最新版) Wifi分销多开版+安装框架
Solve the problem of VI opening files with ^m at the end
Official website of Unicode query
Tianyi ty1208-z brush machine detailed tutorial (free to remove)
Eureka self protection
2.6 preliminary cognition of synergetic couroutines
Sword finger offer10- I. Fibonacci sequence
Introduction to concurrent programming (I)
Do you feel like you've learned something and forgotten it?
OpenStack节点地址改变
并网-低电压穿越与孤岛并存分析
十條職場規則
LeetCode 0556. Next bigger element III - end of step 4
阿里 & 蚂蚁自研 IDE
最新版抽奖盲盒运营版
Application of ncnn Neural Network Computing Framework in Orange Pi 3 Lts Development Board
2.8 overview of ViewModel knowledge
Low code platform international multilingual (I18N) technical solution