Re "copy-pasted" code to make it work on Android Studio