首页 > 解决方案 > 讲解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


推荐阅读