Sample code for Android study