简体   繁体   English

如何查看我的Android Apps数据库信息?

[英]How can I view my Android Apps database information?

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. 我试图从Eclipse中的文件资源管理器中查看db文件,但我无法打开该文件或将其复制到另一个要打开的位置。 I don't have a rooted phone so I was trying to view the db from the app on my emulator. 我没有root手机,所以我试图在我的模拟器上查看应用程序中的数据库。 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! 谢谢!

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. 如果是这种情况,那么你可以从android的shell中看到数据。 Follow commands mentioned below. 按照下面提到的命令。

adb shell adb shell

sqlite3 sample-database.db sqlite3 sample-database.db

Check these links for more details. 有关详细信息,请查看这些链接

  1. Opening Sqlite Db on command prompt 在命令提示符下打开Sqlite Db
  2. http://vinnysoft.blogspot.com/2009/09/creating-databases-from-sqlite-shell.html http://vinnysoft.blogspot.com/2009/09/creating-databases-from-sqlite-shell.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何获取数据库信息以文本视图显示? - How can I get my database information to display in a text view? 如何从Firebase数据库读取并将信息存储在列表视图中? Android的 - How can I read from a firebase database and store the information within a list view? Android Android - 如何查看在我的应用程序中创建的SQL数据库?我在Eclipse的Android模拟器上运行它 - Android - How can I view a sql database created in my app? I'm running it on the Android emulator in Eclipse 如何在Android的数据库中添加信息? - how can i add information to my databse in android? 如何在其他位置更新我的信息? Android Firebase - How can i update my information in different location? Android Firebase 如何将信息包括到我的android应用程序后编译中? - How can I include information to my android application post compilation? 如何在Android Studio中将数据库中的列显示为文本视图? - How can I display a column from my database into a text view in Android Studio? 应用程序如何在Android设备上检索我保存的wifi信息? - How do apps retrieve my saved wifi information on android devices? Android:如何在数据库中检索我的期望数据 - Android : How can I retrieve my desire data in my Database 如何将我的数据库连接到我的 android 应用程序 - How can i connect my database to my android app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM