摘要:
内部存储:/data/data/包名/files --conteext.getFilesDir()/data/data/包名/cache --context.getCacheDir()/data/data/包名/databases --数据库/data/data/包名/shared_prefs -- 阅读全文
摘要:
*通过getSharedPreferences()方法获得SharedPreferences对象 *通过SharedPreferences的getXxx()方法获得之前保存的值 *通过SharedPreferences的edit()方法获得Editor对象 *通过Editor的putXxx()方法放 阅读全文
摘要:
*Context提供如下与文件操作有关的方法 例: 阅读全文
摘要:
当需要访问SD卡上的文件时,需要按照如下步骤进行 *调用Environment.getExternalStorageState()判读手机上是否插入SD卡(返回MEDIA_MOUNTED则表示已经插入) *调用Environment.getExternalStorageDirectory()获取SD 阅读全文