Sample code for AndroidWidget