Sample Code for Android.