I am developing an Android application.
I want my application to notify me whether Android has internet connection or not. How do I check it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
@Carlo: The simplest way is first to add ACCESS_NETWORK_STATE permission to your application manifest file and write a function like this
if the return value is true means internet is working or false means show an alert box 🙂