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

  • SEARCH
  • Home
  • 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 8844787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:34:29+00:00 2026-06-14T11:34:29+00:00

I’m brand new to the android developer world. I’m working through a few books

  • 0

I’m brand new to the android developer world. I’m working through a few books and some example programs to get my bearings. I have questions about an android app that I’d like to write.

My school has an open wifi network that is secured by a gatekeeper page that requires you to login with a username/password. Once a device is connected to the routers, any http request is redirected to the router-based login page. I want to automate this handshake.

I’ve so far figured that I’ll rely on the android.net.wifi.ScanResult class. I’ll want the app to check if the SSID matches the school’s network, and if so, open a page to some user-specified home page where it’ll be redirected to the sign-on page, enter the user info to complete the connection, and then quietly stop working.

I want to do this because, particularly with mobile devices set to have their wifi connection sleep on screen turn off, looking up simple things during class is infuriating. Either you turn off wifi and rely on a 3G connection or you have to type in your user/pass combo each time you want to look up a term.

What I need help with is this: I don’t know how often the wifi scans. I don’t want to write an app that monitors the connection at all times. I want it to check the wifi it’s connected to when the user unlocks the screen. If it’s the schools SSID I want the program to run and connect and then turn off. How do I achieve this simple login without unintentionally creating a battery hog that’s doing way more than it needs to?

Thanks in advance and sorry for the verbosity. I’ll get more concise when I understand better what I’m doing.

  • 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-06-14T11:34:30+00:00Added an answer on June 14, 2026 at 11:34 am

    Thinking through how it’d be done you’d probably want a service run to monitor the state of wifi:

    http://developer.android.com/reference/android/net/wifi/package-summary.html is a good starting point for an overview.
    http://developer.android.com/reference/android/net/wifi/WifiInfo.html & http://developer.android.com/reference/android/net/wifi/WifiManager.html#reconnect()

    This would let you check the state. If it’s not connected, reconnect() lets you connect. Using http://www.openintents.org/en/node/320 for Bluetooth but would be a good place to shove this. Next is the issue of authentication, that would probably best be done via a web view:

    http://developer.android.com/reference/android/webkit/WebView.html

    This will let you remote control the authentication, injecting a javascript file in to auto fill the user/password and submit it. See the near the end again for more info.

    I’d also advise keeping it flexible storing your destination in an xml/sql file. For storing the password there’s a lot of ways to crypt it Android SQlite password encryption? & http://code.google.com/p/openintents/source/browse/#svn/trunk/Safe for more information on that.

    http://www.openintents.org/en/node/36 has a WebView example.
    http://lexandera.com/2009/01/injecting-javascript-into-a-webview/ and it’s linking pages to http://jsharkey.org/blog/2008/12/15/oilcan-greasemonkey-on-steroids-for-android/ should help more with the javascript & webview.

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

Sidebar

Related Questions

I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
i got an object with contents of html markup in it, for example: string
I'm working with an upstream system that sometimes sends me text destined for HTML/XML

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.