In my application i am using XML file from server.
So during start up of application i want to check internet connectivity.
If internet connectivity is not there then i want to show screen which tells user to exit .
How can i implement that.
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.
Import the “Reachability” files from the Apple sample code project and start it up like this:
Then check for internet connection as below. It is very convenient, as you can always check the connection on the fly when you need it.
Don’t worry about this slowing you down – it is asynchronous. You can react to the Internet being up or down after making sure the UI does what the user expects.