Sample code for the Android UI class