SQlite – enable log events and see it in logcat

Categories: ANDROID like

Create .bat file with commands provided below: adb shell setprop log.tag.SQLiteLog V adb shell setprop log.tag.SQLiteStatements V adb shell su 0 stop adb shell su 0 start After You execute app, You (in this case) emulator will reboot. Now search in logcat something like this below: /data/user/0/{APP_PACKAGE_NAME}/databases/{APP_DATABASE_NAME}

TIL: awake and unlock screen when installing app is possible

Categories: ANDROID like

Here is the link: http://stackoverflow.com/questions/22332513/wake-and-unlock-android-phone-screen-when-compile-and-run-project Here is the answer: One solution: set the following flags in your activity class(es): if (BuildConfig.DEBUG) { // These flags cause the device screen to turn on (and bypass screen guard if possible) when launching. // This makes it easy for developers to test the app launch without needing to […]