Ported to Android Studio.