哪里是我的数据文件? [英] Where is my data file?

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

问题描述

我需要一个数据文件的应用程序。我在我的设备连接到带有USB电缆的PC。我在应用程序复制到一个叫APS的目录,说我做的,我的数据文件到一个名为数据/ net.me.myapp / data目录。我断开USB连接线后,我可以安装接入点,并让我在设备上的应用程序。我无法找到数据。我已经看过了File Explorer并不能罚款,要么我做了目录。我怎样才能让我的数据或我应该怎么做这个。我的应用程序工作正常,在模拟器上,但我知道我在哪里把数据文件。结果
谢谢

I have an Application that requires a data file. I connect my device to the PC with the USB cable. I copy the application over to a directory called Aps, that I made, and my data file to a directory called data/net.me.myapp/data. After I disconnect the USB cable, I can "Install Aps" and get my application on the device. I cannot find the data. I have looked with a File explorer and cannot fine either of the directories that I made. How can i get to my data or how should I be doing this. My application works fine on the emulator, but I know where I am putting the data file.
Thanks

推荐答案

好吧,我终于想通了。当您使用USB过度推文件到设备,它进入一个名为TFLASH目录中。一旦我发现这个目录的其余部分很简单。所以对于我的设备的完整路径是

Well I finally figured it out. When you use the USB to push a file over to the device it goes into a directory called "tflash". Once I found this directory the rest was easy. So for my device the full path is

"/mnt/sdcard" from Environment.getExternalStorageDirectory()
+ "/tflash/Android/data" + my file name 

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

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