Updated first sample app code for Android