Ways to view SQLite in Android Studio

Source: Internet
Author: User

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‘}
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6

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(); }
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.