I want to make a call, but before this operation I must be sure the mobile network is available and that the phone is not in flight mode.
How can I do this?
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.
You need to use
ACCESS_NETWORK_STATEpermission in your manifest and then use this:For all types of connections you can try to use this(
java script) :References:
vogelle-de
how to programmatically check availability of internet connection using jquery