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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T02:20:50+00:00 2026-06-02T02:20:50+00:00

i am creating login in my app. User type his info i send it

  • 0

i am creating login in my app. User type his info i send it to web service to check and get his ID. Now i need to save it somewhere in my app that i could check if he had login.

So where this info should be saved ? I know that every app have it’s settings so there should be this info ? Maybe someone could give me more info what and how this is doing.

Thanks.

I found this post:
What is the most appropriate way to store user settings in Android application

I believe my question was duplicate. But it would be nice if you have something to share more.

  • 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-02T02:20:52+00:00Added an answer on June 2, 2026 at 2:20 am

    First of all save user info like uname & password in SharedPreferences with this code.

    SharedPreferences settings = getSharedPreferences("UserInfo", 0);
    SharedPreferences.Editor editor = settings.edit();
    editor.putString("Username",txtUname.getText().toString());
    editor.putString("Password",txtPWD.getText().toString());
    editor.commit();
    

    and then get SharedPreferences from below code

    SharedPreferences settings = getSharedPreferences("UserInfo", 0);
    txtUname.setText(settings.getString("Username", "").toString());
    txtPWD.setText(settings.getString("Password", "").toString());
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating an iphone app using Facebook apis. I need to get the user's
I'm creating a web app with various classes for things like the user, Smarty
I'm creating an app where user needs to login first and only after that
I am creating a login system for a web application using PHP. My question
I'm creating an app where a user can subscribe/follow to different aspects of the
I'm working on a small app that will allow the user to login to
I'm creating an API for a Rails app and I want to return User
I have to call the web service using java script? e.g. I'm creating one
I'm simply trying to create a secure user file that will save basic login
I am creating a iPod app which will on multiple devices. For each user

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.