Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6804243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:26:31+00:00 2026-05-26T19:26:31+00:00

I’ve spent several days trying to figure out what is wrong with my android

  • 0

I’ve spent several days trying to figure out what is wrong with my android phone’s wifi at school. The school wifi is 802.1x EAP using PEAP..requires username, password.

I’ve had two Android phones, and have run many different ROMs on them so I know this isn’t just a ROM specific problem. I’m currently running 2.2.1 on a Mytouch 3g fender ed. I don’t have a data plan with my phone so I keep data off. I only use wifi.

The problem I have is that after I connect to the wifi, everything is fine for a while, but soon (perhaps 15 minutes to an hour later), I’ll turn my phone on and when I see the wifi connection, it says Authenticating and it stays stuck there till I reset it. If I try to surf the Internet with normal HTTP it works fine, but if I try to run any apps that require wifi connection, they give an error saying there is a network connection (example would be Google Voice search which will say “Connection Problem”). Feeds can’t update, gmail won’t update, etc. After I reset the connection, the wifi works perfectly again. I am not sure why this happens. I think it has something to do with how the school’s wifi is set up.

To make a quick fix to the problem however, I’m writing an app that will test if the connection is authenticating and reassociate the connection if it is. I’m running into problems though.

Here is the code to see if the wifi is authenticating and also some debug output:

private void checkWifi() {

    WifiManager wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE);
    WifiInfo info = wifi.getConnectionInfo();

    SupplicantState state = info.getSupplicantState();
    Log.d(getClass().getSimpleName(), state.toString());

    NetworkInfo.DetailedState state2 = WifiInfo.getDetailedStateOf(info.getSupplicantState());
    Log.d(getClass().getSimpleName(), state2.toString());
}

And here’s the log output:

D/WifiCheckerService(24732): COMPLETED
D/WifiCheckerService(24732): OBTAINING_IPADDR

The log output is the same no matter if the wifi on the phone says Connected or Authenticating which means my program as of now cannot distinguish if it is in the funky “authentication” state or not. I need to be able to distinguish in order to be able to know when to reset the wifi. Any help is greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T19:26:32+00:00Added an answer on May 26, 2026 at 7:26 pm

    Try this.

    ConnectivityManager conn = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
    
    NetworkInfo nInfo = conn.getNetworkInfo(ConnectivityManager.TYPE_WIFI);
    
    Log.d("MY CONNECTIVITY MANAGER: NETWORK.DETAILEDSTATE", nInfo.getDetailedState().toString());
    
    Log.d("MY CONNECTIVITY MANAGER: NETWORK.STATE", nInfo.getState().toString());
    

    Here’s my Output (If you entered a wrong password while connecting).

    D/MY CONNECTIVITY MANAGER: NETWORK.DETAILEDSTATE(24732):
    AUTHENTICATING D/MY CONNECTIVITY MANAGER: NETWORK.STATE(24732):
    CONNECTING

    Second Output (While obtaining IP).

    D/MY CONNECTIVITY MANAGER: NETWORK.DETAILEDSTATE(24732): OBTAINING_IPADDR
    D/MY CONNECTIVITY MANAGER: NETWORK.STATE(24732): CONNECTED
    

    Third Output (Successfully Connected).

    D/MY CONNECTIVITY MANAGER: NETWORK.DETAILEDSTATE(24732): CONNECTED
    D/MY CONNECTIVITY MANAGER: NETWORK.STATE(24732): CONNECTED
    

    4th Output (If you entered wrong password and failed to connect).

    D/MY CONNECTIVITY MANAGER: NETWORK.DETAILEDSTATE(24732): DISCONNECTED
    D/MY CONNECTIVITY MANAGER: NETWORK.STATE(24732): DISCONNECTED
    

    5th Output (If WIFI is IDLE and DISCONNECTED).

    D/MY CONNECTIVITY MANAGER: NETWORK.DETAILEDSTATE(24732): IDLE
    D/MY CONNECTIVITY MANAGER: NETWORK.STATE(24732): DISCONNECTED
    

    // hope it helps

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I am trying to understand how to use SyndicationItem to display feed which is
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
We are using XSLT to translate a RIXML file to XML. Our RIXML contains

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.