Load local html resource on Android

Local html and sources are necessary when you try to show an error page dealing with situation such as 404, 500 error happened on remote server. First, create a new class named MyWebViewClient: package apeapp.webviewclient.testwebviewclient; import android.os.Build; import android.util.Log; import android.webkit.WebResourceRequest; import android.webkit.WebResourceResponse; import android.webkit.WebView; import android.webkit.WebViewClient; class MyWebViewClient extends WebViewClient { final String TAG
Read More »

Fastlane Practise with Android and iOS

Fastlane Fastlane “The easiest way to build and release mobile apps”. fastlane handles the majority of the manual works, which sig including the following features: FREE Build Alpha/Beta/Production binary, ipa for iOS, apk for Android Automatically Sign ipa using Apple Provision File for iOS Automatically Sign apk using Android Keystore for Android Automatically Upload to
Read More »

Create a Production Certificate

While doing iOS Apps, production certificate expiration sounds a scary thing but it won’t affect anything from users’ perspective. Our apps are still live in App Store, users can still download and use them. The only thing will be impacted is our ability to sign apps, in other words, we cannot create new production builds
Read More »

Setup Build Types on Fabric in Android Project

Find out Normally in a project, Build Type is used for different development stages, such as Debug and Release. In practical, Debug might output some logs. But basically Debug and Release are considered as a same application. Product flavors can let your application have different versions, such as free or paid. Build Types App packaging
Read More »

2D PingPong in Unity

Full window size: http://www.needone.app/projects/2d_pingpong/ 2D ping pong in Unity 5.5 2017.3.0f3 Play with Ping Pong Player 1 (left): use s and w to control player Player 2 (right): use arrow key ⬆︎ and ⬇︎ to control player Todo List  Add AI Player  Speed up for How to make this game: https://noobtuts.com/unity/2d-pong-game   Source Code: https://github.com/arkilis/2DPingPong

How to place a location on Google Map

Here are few steps on how to add Google Map to your Kotlin/Android project, in this post, there are two things: Show marker on Google Map Get current location (Latitude & Longitude) Show marker on Google Map Step 1: Add dependencies in build.gradle: compile 'com.google.android.gms:play-services:11.6.2' Step 2: Set up Google Maps API Key in the
Read More »

Using Gradle 3.0 to create your debug APK from command line

With the new Gradle 3.0 coming out, I recently found out there is no apk file generated when running gradlew from command line. After investigating a little bit, one of the possible solution is in the build.gradle file under the app directory. [gist https://gist.github.com/arkilis/3be5a560ced55129bb024995dfccdbd4/]   Then in the root directory, run: ./gradlew assembleDebug The generated apk
Read More »

Why Kotlin doesn’t have static

As you may observe while programming with Kotlin (1.1.60), there is no static members or methods. Instead you can use the companion object to work it around. [gist https://gist.github.com/arkilis/e1ff8d09c630c88193c45f63a8e074e2/] The reason behind this is: https://discuss.kotlinlang.org/t/what-is-the-advantage-of-companion-object-vs-static-keyword/4034 Scala also replaces class level declarations with a ‘Singleton’ object. The main advantage of this is that everything is an
Read More »

How to use RxAndroid with kotlin

This article is more for iOS developers who wants to put their hands on the Android Development, or for those who just want to enter the Android development world. There are no hard points in the article. In the tutorial, you are about to know: Install how to install dependencies Know how to use RXAndroid
Read More »