Misc: Add java code for the android widget control