Android.API.Context.getFilesDir()

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

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。