安卓\\ DATA \\ data文件夹为空 [英] android \data\data folder empty

查看:3669
本文介绍了安卓\\ DATA \\ data文件夹为空的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创造了手机db和它有插入一些值也是如此。现在有其中包含需要插入几个记录的大型Excel工作表。
我试图找到数据库文件在手机,以便使用SQL精简版数据库工具来上传一些数据。但该文件夹为空。
任何一个可以建议或指导。
谢谢

i have created a db in the phone and have inserted some values in it as well. now there is a large excel sheet which contains several more records that need to be inserted. i am trying to find the db file in the phone so as to use sql lite db tool to upload some data in it. but the folder is empty. can any one suggest or guide. thanks

推荐答案

如果你是一个真正的手机在/ data文件夹将显示为空,除非你有root权限。喜欢的应用程序的根探险可以让你访问这些文件夹(用正确的权限)。这可能不是你想要/应该做的。

If you are on a real phone the /data folder will appear empty unless you have root access. An application like root explorer can allow you access to these folders (with the proper permissions). This probably isn't what you want to/should do.

如果你是一个模拟器,你可以使用在eclipse文件浏览器来浏览你的手机数据/数据​​/包的文件夹和数据库复制到从仿真器快(或使用adb shell命令)。

If you are on an emulator you can use the file explorer in eclipse to browse your phones data/data/package folders and copy your database to and from the emulator quickly (or use adb shell commands).

您只是在做这个测试的东西吗?你应该有你的应用程序中插入你想要的数据,或者创建自己的SQLite数据库,并与您的应用程序打包。如果外部修改数据库这个样子,重新安装应用程序 - 或不同的设备上安装了它 - 会导致应用程序仍然使用旧的/未修改的数据库

Are you just doing this to test something? You should have your application insert the data you want, or create your own SQLite database and package it with your application. If you externally modify your database like this, reinstalling the application - or installing it on a different device - would result in an application still using your old/unmodified database.

这篇关于安卓\\ DATA \\ data文件夹为空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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