2

I have an android app that stores data using Realm. I view the data using Stetho. But don't know how to edit the data directly from Stetho.

nani
  • 389
  • 9
  • 32

1 Answers1

2

First you need to add the dependency to gradle: stetho-js-rhino

Then, in chrome browser

  • Go to chrome://inspect/#devices
  • Inspect (make sure your device is connected properly)
  • In the resources tab in the stetho console you will find show drawer
  • Click in Web SQL on your database name in the leftside menu ...

Now you are able to display or alter the tabledata with the same commands as in sqlite.

For more information go to:

http://facebook.github.io/stetho/
https://sqlite.org/docs.html

In case the dependency is missing you will get the following error:

Stetho js-rhino requirement

true_gler
  • 544
  • 6
  • 23