Android codes for Polling