1,在build.gradle中添加:
compile 'com.amitshekhar.android:debug-db:1.0.0'
2,在mainactivity中添加:
DebugDB.getAddressLog();
3,运行app在调试界面查看:D/DebugDB: Open http://192.168.1.101:8080 in your browser
4,在chrome输入上面的地址 :http://192.168.1.101:8080 能看到sp和db了