Stetho管理手机

Stetho管理手机

More

stetho

github社区

搜索 stetho

主要方法:

  1. 将下面代码放入dependencies 中;

     compile 'com.facebook.stetho:stetho:1.3.1
    
  2. 新建一个继承Application的类

    例如:pulic void MyApplocation extends Application

    在配置清单中 ,application节点下加入

      android:name=".MyApplication" //最好写全部地址
    

此时在代码的右上方会显示

sync now //同步数据 点击同步数据

  1. 打开google chrome 浏览器 输入:chrome://inspect

  2. 运行带有数据库而且已经配置好的应用;

原文地址:https://www.cnblogs.com/IT-lss/p/5975894.html