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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:30:40+00:00 2026-05-22T16:30:40+00:00

I need screen to setup typical stuff. But I have couple requirements: Preferences stored

  • 0

I need screen to setup typical stuff. But I have couple requirements:

  1. Preferences stored in DB
  2. I need to have some preferences read/only if administrator sets them and prohibit user from changing (from server side)

So, I like built-in functionality but want to save/load from DB and want to disable controls if needed.

Can I do stuff like this or I’m better off with my own activity and Dialogs?

  • 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-22T16:30:40+00:00Added an answer on May 22, 2026 at 4:30 pm

    Yes to both of those. You can extend a PreferenceActivity and then override the getSharedPreferences() method to return your own implementation of SharedPreferences that saves data into the database instead of into the shared preferences XML. You can provide a preference XML just like you would in the “normal” case, you would just add some code to enable/disable the preferences that you need.

    It will take a bit of work to figure out all the parts, but you will save time trying to implement the UI and deal with all the interactions.

    See also this question.

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

Sidebar

Related Questions

I just setup flowplayer to play rtmp streams, but for some reason I need
I sometimes need to use Visual Studio when I have limited screen real estate
I have several UITableViews, with different datasources in a iPad screen. I need to
I have an app that has a few setup screens that need to be
So I am creating a module and I have a screen that I need
I am trying make long screen to vertical direction. So, I need a screen
I need to show a screen or something, saying 'Loading' or whatever while long
I need to know active screen DPI on Linux and Mac OS. I think
I need a tool that handle both on-screen and printed reports, via my C#
I need to render quite alot (tens of thousands) images off-screen using OpenGL. 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.