码迷,mamicode.com
首页 > 移动开发 > 详细

Android.API.Context.getFilesDir()

时间:2014-12-31 14:16:06      阅读:189      评论:0      收藏:0      [点我收藏+]

标签:

1. Context.getFilesDir()

http://developer.android.com/reference/android/content/Context.html#getFilesDir()

"

Returns the absolute path to the directory on the filesystem where files created withopenFileOutput(String, int) are stored.

No permissions are required to read or write to the returned path, since this path is internal storage.

Returns

The path of the directory holding application files.

"

getFilesDir()返回的路径类似:/data/data/com.diamondstudio.isport/

那么在debug时如何访问getFilesDir()返回的路径呢? 

How to access data/data folder in Android device?

http://stackoverflow.com/questions/13006315/how-to-access-data-data-folder-in-a%E2%80%8C%E2%80%8Bndroid-device

adb shell / run-as

adb backup

Android.API.Context.getFilesDir()

标签:

原文地址:http://www.cnblogs.com/cwgk/p/4195597.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!