Display SqlLite records on Android without Android Device Monitor

1

I would like to know if someone could help me with the following question. There is some way to see the records of a database created in SQLite without the Android Device Monitor problem that in the new version of android 3.1 that tool no longer exists. If someone could help me, I would appreciate it. Or if it can be displayed on the same device or emulator.

    
asked by Chama 28.03.2018 в 01:26
source

2 answers

0

What I do is the following friend. First, I download the sqliteBroswer which is a program that will help us a lot with this

link

Later what we will do is take a copy of the database that you have in your application. For this we will use the command console and ADB (Android device Bridge). You must assign the path of the ADB to an environment variable of your system to use it without any problem.

And now, with that you only have to use the following command.

adb pull /data/data/com.example.app.development/databases/App.db

Where the route would refer to the route where your app is installed.

In this way we will make a copy of your database at any time and open it with the program mentioned at the beginning and so we can see all the information that is in the database of your app at any time.

I hope this has been helpful, anything will be pending in the comments.

    
answered by 28.03.2018 в 01:49
-1

In Android Studio 3.1 the only way to access the ADM , is done by command line.

  

Device Monitor available from the command line. In Android Studio 3.1, Device Monitor fulfills a function less than that   I played previously. In many cases, the functionality   available through the Device Monitor is now provided by   new and improved tools.

You must enter through the command line to the directory of your SDK, then to the directory /tools and there you execute monitor

It is important to comment that Android Studio must be closed since it uses a necessary port for Android Device Monitor .

    
answered by 28.03.2018 в 22:31