I have read that the "ConnectivityManager" class gives information about the network. But I am confused on how to implement the code. I need an efficient way to check internet, wifi and GPRS at a time. Thanks
And again: http://developer.android.com/reference/android/net/ConnectivityManager.html#CONNECTIVITY_ACTION You have to do something, nobody will write complete code for you. Read the documentation and you know when the event is fired and which you have to sort out.