哪里是我的Andr​​oid应用程序的数据文件? [英] Where are my Android app's data files?

查看:92
本文介绍了哪里是我的Andr​​oid应用程序的数据文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写了一个应用程序,读取和写入几个数据文件。当我调用该方法的 getFilesDir()的返回的 /data/data/nel.prog.MyApp99/files (假设我的应用程序被称为MyApp99)。

I wrote an app that reads and writes a couple of data files. When I call the method getFilesDir() it returns /data/data/nel.prog.MyApp99/files (assuming my app is called MyApp99).

那么我怎么看到我的电脑?

So how do I see that on my PC?

当我附上我的手机作为一个调试目标我(XP)电脑我得到创建2的外部驱动器 - 一个用于手机本身,另一个用于SD卡,我找不到任何一个路径!在XP中设置我的文件夹选项,以显示隐藏文件和文件夹,并为不能掩盖受保护的操作系统文件。我可以看到很多东西(即,大量的手机和SD卡上的两个文件和文件夹)。但我没有看到上面的路径,也不是数据文件本身。

When I attach my phone as a debugging target to my (XP) PC I get 2 external drives created - one for the phone itself and one for the SD card, and I can't find that path in either one! In XP I set my "Folder options" to show hidden files and folders and to not hide protected operating system files. I can see a lot of stuff (i.e., lots of files and folders on both the phone and SD card). But I don't see the above path nor the data files themselves.

他们在哪里,如何访问它们?提前致谢!

Where are they and how do I access them? Thanks in advance!

推荐答案

您可以使用亚行(Android的调试桥)在您的ADK /工具DIR来的复制文件或启动远程shell(然后列出文件/内容)。

You can use adb (Android Debug Bridge) in your adk/tools dir to copy files or start a remote shell (and then list files/contents).

adb pull <remote> <local>   // copy files

adb shell    // start shell

更新:

上面的命令只能从连接到Android设备计算机工作。

Above commands only work from a computer connected to Android device.

有关设备的应用程序之间共享文件,你应该看看: HTTP: //developer.android.com/guide/topics/security/security.html#userid

For sharing files between apps on device you should check out: http://developer.android.com/guide/topics/security/security.html#userid

这篇关于哪里是我的Andr​​oid应用程序的数据文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆