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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T02:50:21+00:00 2026-06-12T02:50:21+00:00

as i m new to android application development .. i m making a passwords

  • 0

as i m new to android application development ..
i m making a passwords manager type of application …
so on the first page i have asked for username and password and a button for signup.
if a person is running application for first time then he/she has to sign up and provide user id,password,security question for the case if he/she forgets his/her password.
now i want to save the user id and password which user provide during signup in the application and next time when he/she again login and enters the user id and password then application should verify it from the saved user id and password and direct it to next page if he/she entered correct user id and password else a message should toast that “incorrect username or password “.

for this what coding in eclipse should i do..?

i had already made xml files i.e layouts..

thanks

  • 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-12T02:50:22+00:00Added an answer on June 12, 2026 at 2:50 am

    You should save it in a file, i recommend using SharedPreferences and then read it from there each time they start the application, and see if the matches are correct or not.

    To save it:

    SharedPreferences sp = context.getSharedPreferences("loginSaved", Context.MODE_PRIVATE);
    SharedPreferences.Editor editor = sp.edit();
    editor.putString("username", "some user value");
    editor.putString("password", "some password value");
    editor.commit();
    

    To get it:

    SharedPreferences sp = context.getSharedPreferences("loginSaved", Context.MODE_PRIVATE);
    String username = sp.getString("username", null);
    String password = sp.getString("password", null);
    if(username != null && password != null){
        // login automatically with username and password    
    }
    else{
        // login for the first time
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey guys I am new to android development, I am currently making an application.The
I am new in Android application development, but I have programming knowledge in iOS.
I'm pretty much new to Android application development. I want my first Activity to
I want to start android tablet application development. i have created a new avd
I'm new to Android development. I have an application that allows the user to
I am new to android development and am developing my first android application. I
I am New Android development. In My application I have two ArrayLists. One ArrayList
I am new to android application development. I need a solution for setting random
i m new to this android application development i would be very much grateful
I'm new to android development. I'm developing an application for android 4.0.3 devices, in

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.