当前位置:网站首页>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
边栏推荐
- Adult adult adult
- JVM memory model
- 最新版抽奖盲盒运营版
- Recovery of website address and method of Amazon account login two-step verification failure caused by mobile phone number becoming empty
- 最新版盲盒商城thinkphp+uniapp
- lambda与匿名内部类的区别
- Define a list, store n integers, and calculate the length, maximum value, minimum value and average value of the list
- Computer version wechat applet full screen display method, mobile phone horizontal screen method.
- 02_ Lock the code, and don't let the "lock" become a worry
- Xctf mobile--app1 problem solving
猜你喜欢

并网-低电压穿越与孤岛并存分析

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

Togaf certification self-study classic v2.0

Xctf mobile--app2 problem solving

Prompt unread messages and quantity before opening chat group

社交社区论坛APP超高颜值UI界面

Implement verification code verification

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

记录自己vulnhub闯关记录

TOGAF认证自学宝典V2.0
随机推荐
Atomic atomic operation
Apache Mina开发手册
Swift5.7 extend some to generic parameters
Approve iPad, which wants to use your icloud account
云计算未来 — 云原生
Xctf mobile--app2 problem solving
Comprehensive evaluation of double chain notes · Siyuan notes: advantages, disadvantages and evaluation
Keep learning swift
剑指Offer07. 重建二叉树
347. Top k high frequency elements
Adult adult adult
Enable SASL authentication for memcached
Lambda expression
Low code platform international multilingual (I18N) technical solution
Applet wxss introduction
If you can't learn, you have to learn. Jetpack compose writes an im app (II)
Take you to the installation and simple use tutorial of the deveco studio compiler of harmonyos to create and run Hello world?
GaN图腾柱无桥 Boost PFC(单相)七-PFC占空比前馈
What is more elegant for flutter to log out and confirm again?
02_ Lock the code, and don't let the "lock" become a worry