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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:09:38+00:00 2026-06-05T14:09:38+00:00

I have an app that generates five strings every time I use it and

  • 0

I have an app that generates five strings every time I use it and I want these strings saved for use later, ie. when I open and run the app again. When I use the app the second time I want to save the new five stings for use later along with the first five strings I generated the first time I ran the app. On and on until I have say 10 sets of these five strings.

I and confused as to what it the best way to do this, Internal Memory, sql database, etc. could someone point me to a good example on the best practices for this. My experience with sql databases is very limited.

  • 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-05T14:09:39+00:00Added an answer on June 5, 2026 at 2:09 pm

    From the android website: http://developer.android.com/guide/topics/data/data-storage.html#pref

    To save:

    // We need an Editor object to make preference changes. 
    // All objects are from android.context.Context
    SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);
    SharedPreferences.Editor editor = settings.edit();
    editor.putBoolean("silentMode", mSilentMode);
    
    // Commit the edits!
    editor.commit();
    

    To load:

    SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);
    boolean silent = settings.getBoolean("silentMode", false);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have inherited an app that generates a large array for every user that
I have an app that generates invoices in the form of PDF files stored
Hello I have a WinForm app that generates a ton of data. Currently I
I have a Tcl/Tk app that generates many forms and would like to be
Let's say I have a solution involving an iPhone app that generates some information
I have a c++ app that generates 6x relatively small image-like integer arrays per
I have a PHP web app that generates a somewhat complex report from our
I have a Workflow 4.0 app that generates emails. In a dialog for creating
I have a framework that generates the DOM of an app completely using document.createElement
I have a VB.NET app that generates KML to show within Google Earth. 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.