Month: November 2019
Android Gradle DSL method not found: ‘deleteAllActions()’ [] …anotation
If build Gradle version >= 3 and config compatible with 1.8 so the retrolamda plugin should be removed => Fix: Remove below config
What difference between !! and ? in Kotlin, see below table.
a: String? a.length a?.length a!!.length “cat” Compile-time error 3 3 null Compile-time error null NullPointerException Ref: https://kotlinlang.org/docs/reference/null-safety.html
Detect wifi format with regex in Kotlin
The snip code below demonstrates how to extract data from WIFI data which from QRCode
Android Could not find method annotationProcessor() for arguments
The error comes when upgrade build Gradle >= 3 in this block => Fix:
Telegram Bot
Visit BotFather: https://telegram.me/BotFather Create bot by sending message to BotFather Enable join bot to a group Add command menu list to bot (command name is lowercase) Enable access to all message…
Why use BIND in Javascript?
The bind() method creates a new function that, when called, has its this keyword set to the provided value, with a given sequence of arguments preceding any provided when the new function is called.…
WiFi QR Code Generator
How to generate Wifi QR Code? Using online service: https://qifi.org/ Or generate your code manually with the content below
Android Build duplicate libraries
Deal with duplicate libraries when building an Android project First, run Gradle command to find what dependencies duplicate (Duplicate class/package) Config keep one and exclude duplicate lib on app gradle…
Android Modal bottom sheet dialog
A rounded modal bottom sheet as seen in new Google products(Tasks, News, etc.) bg_bottom_sheet_dialog_fragment.xml dimens.xml styles-v21.xml styles.xml