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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T23:28:21+00:00 2026-06-10T23:28:21+00:00

I am trying to do this, and I really need help from expirienced fellows.

  • 0

I am trying to do this, and I really need help from expirienced fellows.

  1. App with 2 texboxes. One for username, and one for password.
  2. Button for login.
  3. When user press button, login information is sent to webpage (m.bonbon.hr), and that webpage is opened in browser.
  4. After first login, login information is saved so that user doesn’t have to enter that information again.

Where to start from, please any guidelines, advices, i’ll take anything.

EDIT:

I created this in my main acctivity

DefaultHttpClient httpclient = new DefaultHttpClient();
        HttpPost httpost = new HttpPost("https://www.bonbon.hr/registracija?direct=1");

      try {
        List<NameValuePair> nvps = new ArrayList<NameValuePair>();
        nvps.add(new BasicNameValuePair("email", "login"));
        nvps.add(new BasicNameValuePair("password", "pw"));
        nvps.add(new BasicNameValuePair("autologin", "true"));
        httpost.setEntity(new UrlEncodedFormEntity(nvps));

        }
        catch (UnsupportedEncodingException e) {
            // writing error to Log
            e.printStackTrace();
        }
        try {
            HttpResponse response = httpclient.execute(httpost);

            // writing response to log
            Log.d("Http Response:", response.toString());

        } catch (ClientProtocolException e) {
            // writing exception to log
            e.printStackTrace();

        } catch (IOException e) {
            // writing exception to log
            e.printStackTrace();
        }

Under the onCreate part. So now , when i click on my button (already created and ready for use) i need to login to given URL with given information… But I don’t know how to makle it happen using asyntask 🙁

  • 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-10T23:28:22+00:00Added an answer on June 10, 2026 at 11:28 pm

    Design the layout of the appliaction with the two text boxes and one button to login.

    Now, when that button is pressed get the text entered in the two TextBoxes using getText() and make POST request to the webpage URL and maintain a session using HttpClient.

    If you are planning to save user login information, SharedPreferences is the best way to do it and you can store the username and the password in the SharedPreference variables and use them later to make later requests to log in.

    And in case you want to know more about how to use HttpClient to establish a session, this question would provide you with a lot of answers.

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

Sidebar

Related Questions

I am trying to convert this to python. I just really need help with
I really need some help with this as I have been trying to fix
this one is really easy. I'm trying to create a Regular Expression that will
Been trying to sort this one out for a while. I'd really appreciate any
I really desperately need help with this issue and am more than a little
I need help, This is what am actually trying to do. I have two
I really need some help here, we are trying to use our player over
I really need someones help with this. Here is my uploadify code: $('#file_upload').uploadify({ 'swf'
I need help solving problem N from this earlier competition : Problem N: Digit
this problem has driven me crazy and I really need you guys help. I

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.