Tag: LAN tty down repository book with IDE code installation
Just say the best way to use the tool stetho:http://facebook.github.io/stetho/
1. Add the following statement to the Gragle:
dependencies { // Stetho core compile ‘com.facebook.stetho:stetho:1.3.1‘ //If you want to add a network helper compile ‘com.facebook.stetho:stetho-okhttp3:1.3.1‘}
2. In your own Android source code in the application class (if not, create one, inherit from Android.app.Application) the join code:
@Override public void onCreate() { super.onCreate(); Stetho.initializeWithDefaults(this); new OkHttpClient.Builder() .addNetworkInterceptor(new StethoInterceptor()) .build(); }
3. Compile the app, install to the phone and run the app.
4. Open the Chrome browser and enter the URL
Chrome://inspect
5. Detect the app running on the phone, click the inspect link and go to the Mobile Information Management page:
6. You can easily view your SQLite table in Web SQL, and you can enter the SQLite code to do it.
Ways to view SQLite in Android Studio