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 7828997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T10:34:31+00:00 2026-06-02T10:34:31+00:00

I’m new in Android development and I need some help coming with a solution

  • 0

I’m new in Android development and I need some help coming with a solution for the following problem: My college’s Wi-Fi network has a captive portal that ask for your username and password to access the school’s system, so I thought I could automatize the process of logging in the network by sending an HTTP post request to the portal with the user data everytime the phone detects a connection to the school’s network (checking the SSID), easy cake, right? The thing is I don’t know where to start, Android is a very extensive environment so I’m here to ask you for guidance. I did some homework about it and this is what I’ve got so far:

  • I can start the app using a BroadcastReceiver with the Connectivity Manager Intent. I think it might give me too much intents I don’t need, as I just need the Wifi. I read about it here
  • I can make HTTP Request using the AndroidHTTPClient.

The flow I’m planning is the following: User opens the application for the first time, and he enters the username and password, there’s a toggle button for Auto-Connect that changes to “Disconnect” when you press it (as you can only connect one device at a time with the same credentials, it sends a request to the network’s logout page). With the system in Auto-Connect mode, everytime the phone connects to the school network, it should send the request, even if the app is not running.

  • First, what’s the best approach for this kind of problem??
  • Where (and when) should I store the credentials?
  • Where should I make the Requests? in the Receiver’s onRecive()? in the activity?

I know it’s like asking you to solve my problem, but I’m trying to learn here, and I need guidance to make the best I can with this software. I very much appreciate your input 🙂

  • 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-02T10:34:32+00:00Added an answer on June 2, 2026 at 10:34 am

    I would implement a Service that implements a BroadcastReceiver to check for changes in the internet connectivity which configures an AsyncTask and executes it to make the right request to the login service.

    Did you check if this is actually possible? Did you learn about the right parameters for the HTTP request? Can you use curl to authenticate?

    I don’t know if Android has a decent mechanism for valuable information storage, but essentially where you keep the credentials depends on the level of security risk. I wouldn’t give much attention to this for now -assuming that these passwords are not valuable and the application will not be wide-spread. Anyways, you can just store a binary sequence in a static variable and XOR it with the user’s password and store it in another static variable. That should be enough for simple memory scanning. I’m not mentioning writing to a file because I think that way is way too risky in terms of security.

    By the way, this looks like a good application idea. Did you check whether someone already had made this?

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

Sidebar

Related Questions

In my XML file chapters tag has more chapter tag.i need to display chapters
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I am currently running into a problem where an element is coming back from
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
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 have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text

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.