Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am making an android game with both a demo version and a paid version. I want users who decide to buy the paid version to continue from where they left off, with all their old data and settings.

I've set a shared user id between both applications, and now I'm wondering if it's possible to use libgdx preferences across both versions.

I am also open to other ideas on how to implement this.

share|improve this question
up vote 2 down vote accepted

You will not be able to do this with the libgdx API because this is more closely related to how android handles preferences.

Internally, libgdx uses android.content.SharedPreferences to store the preference data. You will have to write android code to make the preferences globally readable and then you will be able to access it across applications. An example of how to do this can be found on a stackoverflow question here.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.