Posted on

Android development tips

Разработка под Андроид: советы, инструменты и трюки

Hotkey

Android studio plugins

Live Templates

ADB

Emulator


Step by Step: RecyclerView Swipe to Delete and Undo [https://medium.com/@zackcosborn/step-by-step-recyclerview-swipe-to-delete-and-undo-7bbae1fce27e]

[https://medium.com/code-procedure-and-rants/android-development-tips-part-i-8b07420b6e3b]

Android development tips — Part II [https://medium.com/code-procedure-and-rants/android-development-tips-part-ii-476bbab182b9]

Colored Tab Animated like Google Play Store [https://proandroiddev.com/colored-tab-animated-like-google-play-store-7202ac60da9c]

TransactionTooLargeException and a Bridge to Safety — Part 1 [ https://medium.com/livefront/transactiontoolargeexception-and-a-bridge-to-safety-part-1-c3736644e26 ]

The Seven (Actually 10) Cardinal Sins of Android Development [ https://proandroiddev.com/the-seven-actually-10-cardinal-sins-of-android-development-491d2f64c8e0 ]

Android Studio Tips and Tricks [ https://www.raywenderlich.com/2807578-android-studio-tips-and-tricks ]

Posted on

Android close system dialog

Using Espresso and UiAutomator

action_close_system_dialog

Android task manager or system dialog

[code language=”java”]
Intent closeDialog = new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS);
sendBroadcast(closeDialog);
[/code]

[code language=”java”]
public void onWindowFocusChanged(boolean hasFocus) {
super.onWindowFocusChanged(hasFocus);
Log.e("Focus debug", "Focus changed !");
if (!hasFocus) {
Log.e("Focus debug", "Lost focus !");
Intent closeDialog = new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS);
sendBroadcast(closeDialog);
}
}
[/code]

Continue reading Android close system dialog

Posted on

About Gradle

Using Gradle build cache with Kotlin

Fixing dependency conflicts in Gradle

Put in order Gradle dependencies

Kotlin Meets Gradle

Несколько Gradle фишек для вашего Android приложения (https://habrahabr.ru/company/rambler-co/blog/311100/) (pdf)

The best tool for finding gradle packages

Gradle: управляя зависимостями

Gradle: 5 полезностей для разработчика (https://habrahabr.ru/company/redmadrobot/blog/271269/)

Configure Your Build (https://developer.android.com/studio/build/index.html)

Dependency Management for Java Projects

Change Gradle mavenCentral URL to My repo

Gradle: Better Way To Build (https://habrahabr.ru/post/107085/)

The Ins and Outs of Gradle (pdf)

Getting Started with Gradle (pdf)

Practical ProGuard rules examples (https://medium.com/google-developers/practical-proguard-rules-examples-5640a3907dc9)