Hey Raja,
Here i mention below link for android tutorial,Its best for learning all the thing step by step..
You learn connection and all things from there please check this out.
http://developer.android.com/index.html[
^]
If you getting your answer then mark as answered..
Thanks
Renish