refactor to Android Studio