哪里是我的数据文件?

编程入门 行业动态 更新时间:2024-10-26 06:36:15
本文介绍了哪里是我的数据文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我需要一个数据文件的应用程序。我在我的设备连接到带有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

更多推荐

哪里是我的数据文件?

本文发布于:2023-11-07 22:28:52,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1567612.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件   数据

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!