android - 讲解android文件和存储结构
问题描述
我需要概述文件在 android 中的结构。我的意思是,就像在窗口中一样,我们有包含文件夹和文件的分区,我们在其中一个分区上有系统数据,所以...... android 怎么样?,我正在处理的主要目录是什么?缓存存储在哪里?内部和外部存储等术语是什么意思?所以...
解决方案
I can help to answer a small part of your question. It's recommended to check the official documentation that clarify the data storage in android. But in a nutshell, four types of storage we have:
1) App-specific storage: Hthis classified to internal and external storage, each app has internal and external storage. internal storage cannot be accessible only through the application. which external storage can be accessible through other application, external storage in app specific storage can be found in path data/data/[your package name]
2) Shared storage: This storage which is like Gallery, Document, Pictures, etc.. . This storage can be shared through your applications.
3) Preference: SharedPreference is an application for Preference storage
4) Database: This type of storage where it's stored in databases, it usually private and cannot be accessible outside application.
I recommend if you need more details, read file system in official documentation
推荐阅读
- flutter - 找不到模块“cloud_firestore”颤动
- delphi - TMediaplayerControl上的控件无法显示
- php - PHP json_decode 字符问题
- html - 在我折叠 SPAN 的可见性后,SPAN 内的 BR 仍然可见
- java - Java移位操作实现背后的逻辑
- saml-2.0 - SAML 请求、响应和令牌之间的区别
- javascript - undefined 不是函数(在'...ManageWallpaper.setWallpaper...'附近)
- ruby-on-rails - 即使执行作业,Sidekiq Stats 也会卡在 0
- rust - 订阅时未收到所有通知
- lua - 如何使用 Windows 10 在文本编辑器上打开 lua 文件