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

  • Home
  • SEARCH
  • 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 9246965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:37:00+00:00 2026-06-18T09:37:00+00:00

In desktop application, usually, to store such application configuration public class ApplicationConfiguration { public

  • 0

In desktop application, usually, to store such application configuration

public class ApplicationConfiguration
{
    public int speed;
    public boolean soundEnabled;
    public Map<Country, String> watchlistNames = new EnumMap<Country, String>(Country.class);
    public List<BrokingFirm> brokingFirms = new ArrayList<BrokingFirm>();
}

I store it in XML, by using xstream, as they handle List, Map, other data structures quite well. Even for own custom class like Country, BrokingFirm, … xstream handles them quite well too. Most of the time, we need not to provide explicit serialization code for custom class, as long as there is no fancy data structure within the custom class. xstream almost does all the hard work for us.

However, when come to Android, I’m not sure is there any good choice similar to xstream? Preferences doesn’t seem to handle collection classes and custom class well? Or at least, quite a number of custom code required to make it work.

  • 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-18T09:37:01+00:00Added an answer on June 18, 2026 at 9:37 am

    There is nothing out of the box in android to store your settings, also Shared Preferences use XML too. so you can create your own class parser/serializer and store it as string and then deserialize it whenever you want to.

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

Sidebar

Related Questions

My Desktop Application needs to store and retrieve data from files stored in ProgramData
I usually use STATIC implementation when developing Desktop Application and I just got my
Can I get latitude and longtitude on windows 7 desktop application? Usually it will
My desktop application serializes objects using XmlSerializer . I was suggested to leverage DataContractSerializer
I'm developing a desktop application in WPF, application that is manipulating a considerable amount
I have a DESKTOP application which interacts with a web service through their RESTful
I have a WPF Desktop application using Prism 4, in my bootstrapper i have
I want to build desktop application for Windows OS and use Google Drive to
I have created a desktop application which continuously changes the image on a fixed
I have a custom desktop application which invokes an ASMX web service. The Service

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.