sample android java code

hi, i have to write android java code on sending gps data to the
server through gprs. please send some sample android java codes to
understand.