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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:26:34+00:00 2026-06-17T15:26:34+00:00

I have an Android application that has many user preferences. Some preferences are custom,

  • 0

I have an Android application that has many user preferences. Some preferences are custom, meaning that a Preference class modifies a value a little bit. Most of the preferences have defaults, which are applied via call to PreferenceManager.setDefaultValues() that honors such custom preferences. There is a number of common usage scenarios of my application, but currently preference defaults cover only one of them. I want to ask a use about which scenario she would prefer. But I do not know how to apply defaults in the same clean and simple way based on the user choice. Any ideas?

Update

The defaults should be applied on the first run only. User is asked how he plans to use an application and defaults are applied based on his answer. He will be later able to tune each setting individually so there is no reason to reapply defaults later. And this is only a helper for users with little experience, it’s needed because I receive feedback that some settings are not obvious without having continuous experience.

  • 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-17T15:26:36+00:00Added an answer on June 17, 2026 at 3:26 pm

    I think the main question is, when should the user allowed to apply use case specific defaults (initially, any time?), and what does he expect when they will be applied (does it make any sense to switch back?, etc).

    I would assume there might be dependencies regarding any underlying data which has been collected over time, and which the user expects to keep.

    If you intend to support such a complex situation, then I’d see the model as three-layered: A set of use-case specific default values, a set of use-case specific changes which get applied, and the final projection (defaults overridden by adjustments). The intention here being that the user can switch back to his original use-case without losing individualized settings.

    Just first thoughts without deeper knowledge of your app’s nature.

    Update

    In accordance with your clarification, my suggestion is to use one preference file per use case and call PreferenceManager.setDefaultValues(Context, String, int, int, boolean).

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

Sidebar

Related Questions

I have an Android app that has an Application class and I have another
I'm developing an Android application that has many activities. I have a Logout Activity
I have an android application that has 3 activites. For the 1st and 2nd
I have an Android app, that is using the SIM Toolkit. The application has
I have an application that depends on connection It has many Activities.I need to
Folks, I have android application that presently has 1 warning, in line 80 of
I have an android application that currently has 9 tabs. Whenever a new tab
I have a TextView in my android application that has a set width on
I was developing android application that has backup to google drive feature. I have
I have an Android application that contains two Activities . Activity A has a

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.