我需要一个数据文件的应用程序。我在我的设备连接到带有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更多推荐
哪里是我的数据文件?
发布评论