Month: September 2018

  • Greendao test migrate database onUpgrade Google Play Store

    To simulate migration database or trigger onUpgrade() on DevHelper in GreenDao, the step will be: 1. Use simulate update app like in Google Play Store Follow this : http://www.yodiaditya.com/android-simulate-update-application-google-play-store/ 2. ALWAYS UPDATE SCHEMA VERSION GREENDAO yes, i put this capitalized because it’s very important! For instance: 12345greendao {     schemaVersion 5     daoPackage […]

  • Android simulate update application Google Play Store

    To simulate update android application from Google Play Store, we can use adb and Android Studio. Here is the step by step: A. Generate APK 1. Go to Android Studio -> Build -> Builds (APK) 2. Switch mode to Project 3. Copy app/build/outputs/apk/debug/app-debug.apk to any folder B. Deploy with adb 1. Go to the folder […]

  • Scroll layout when keyboard show up without focus changing in Android

    This is tricky situation when user see softkeyboard show-up, but the are couple of edittext or button hiding behind it. To tackle this, we can add focus listener and make scrollview scroll to bottom without focus changing.

  • Solve margin Searchview expandable and Toolbar Android

    This margin / padding issue often occured when searchview widget have left space that push another icons in toolbars. To solve this issues, we remove padding left in toolbar and adjust the TitleMarginStart margin accordingly. This is example of the codes: