For more information about creating a project in Android Studio, see the Android Studio documentation. The next few sections contain the code samples that you need to add to your activity's java file ...