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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:09:12+00:00 2026-05-25T14:09:12+00:00

I notice that when I call sharedpreferences file, I have to supply the name

  • 0

I notice that when I call sharedpreferences file, I have to supply the name of the string name of the file. Does that mean that I can have multiple shared preferences files?

Secondly, if I wanted to store multiple values (instead of using an sql database with many columns) could I theoretically have multiple sharedpreferences files, where each element is a key, value pair, and the value from the first file is a key to the second file, and the value returned from the second file is a key to the third file… to return more and more specific information (albiet inefficiently)

Are there any I/O limits to sharedpreferences, such as with SQL databases?

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

    Your shared preferences are stored inside

    /data/data/package.name/shared_prefs/prefsname.xml
    

    The SharedPreferences class is just an “xml” data parser/writer.

    I don’t think there are any specific limit but consider using SQLlite which is much faster (even 1000x times more) and provides easier select/sort being transaction friendly at the same time, sharedpres are useful just for storing user options for everything else i would look elsewhere.

    BTW i don’t know any limit with SQLITE, if you exceed maximum DB side you can always use “ATTACH” clause to use more DB at the same tame (and if you have so much data to reach SQLite limits than XML / SharedPreferences is not for you at all)

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

Sidebar

Related Questions

I have noticed that when I call lseek64 on my block device driver file
I have just noticed that my ViewController does not call init (See below) when
I have a form that does an ajax call, and on success, reloads the
While using File.mkdir , and friends I notice that they don't throw exceptions on
I have a utility that compares a source and destination file date/time. This works
I noticed that when you call a superclass's methods, you need to do something
I noticed that if you call FindWindowEx or EnumChildWindows against a hWnd that belongs
While following path for wait system call, noticed that before calling do_wait_thread we get
Notice that I am asking for little-o here (see similar question here ) -
I notice that Growl allows for the possibility of Growl notifications from a website.

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.