Port to Android Studio part 1