如何查看我的Android应用程序数据库信息? [英] How can I view my Android Apps database information?

查看:243
本文介绍了如何查看我的Android应用程序数据库信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经尝试从Eclipse中的文件资源管理器查看数据库文件,但我无法打开该文件或将其复制到其他位置以打开。我没有根电话,所以我试图从我的模拟器上的应用程序查看数据库。如果有人可以帮助它将非常感谢,因为我发现很难找到很多信息这个问题的某些原因。谢谢!

I've tried to view the db file from the File Explorer in Eclipse but I can't open the file or copy it to another location to open. I don't have a rooted phone so I was trying to view the db from the app on my emulator. If someone could help it would be greatly appreciated as I find it hard to find much info on this subject for some reason. Thanks!

推荐答案

你想看什么?是你的应用程序的数据存储在数据库中吗?如果是这样的情况,那么你可以看到从android的shell中的数据。按照下面提到的命令。

what do you want to see? Is it your application's data stored in database? If that is the case then you can see the data from android's shell. Follow commands mentioned below.


adb shell

adb shell

sqlite3 sample-database.db

sqlite3 sample-database.db

查看这些链接了解更多详情。

Check these links for more details.


  1. 在命令提示符下打开Sqlite Db

  2. http:// vinnysoft .blogspot.com / 2009/09 / creating-databases-from-sqlite-shell.html

  1. Opening Sqlite Db on command prompt
  2. http://vinnysoft.blogspot.com/2009/09/creating-databases-from-sqlite-shell.html

这篇关于如何查看我的Android应用程序数据库信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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