kokchaiReturn Int instead of Boolean in a functionIf there is a function that you want to know it’s true or false, it’s very straightforward to declare it as a Boolean return type. Like,1 min read·Jan 24, 2021----
kokchai[Design][Think outside the box] Not either True or FalseScenario 1:2 min read·Jun 12, 2020----
kokchai[Android][Rooted] How to root Android device via Magisk ?Prerequisites:1 min read·Jun 5, 2020----
kokchai[Android] How to check the secret of the application and protect it ?Prerequisites:1 min read·May 23, 2020----
kokchai[Kotlin] Using SDK_INT or targetSDK as the if-condition ?Look at build.gradle:1 min read·May 9, 2020----
kokchai[Android][My Two Cents] Rename R.string.xxx and R.layout.yyyLook at the obfuscated code below:2 min read·May 9, 2020----
kokchai[Kotlin] Get rid of Kotlin generated code of value checkingLook at the code below:2 min read·May 9, 2020----
kokchaiDo not leave debug message in the codeLet’s look at the example below:1 min read·May 7, 2020----
kokchaiGet rid of Kotlin generated check — “null cannot be cast to non-null type”Use case 1:2 min read·May 7, 2020----