mWifi = connManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI);
TYPE_WIFI canot be resolved or is not a field
i get this error can anyone help me to fix 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.
try this Code :
i think you have something wrong with your imports , or the variable mWifi should be a
NetworkInfotype.i’ve tried it and it works for me , so you have something wrong just with your imports , and exaclty the
ConnectivityManager