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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T12:59:31+00:00 2026-06-05T12:59:31+00:00

I am developing an Android app. This app stores preferences (user settings) relative to

  • 0

I am developing an Android app. This app stores preferences (user settings) relative to its functioning, such as preferred image quality, etc. etc.. And purchases too.

My question is: How to store these settings in Android in a way that they remain persistent even if the application is removed.

Specifically purchases. I want the user to be able to purchase an in-app feature, uninstall the app, and if he reinstalls the app and presses a “Restore Purchases” button, the previously purchased feature will be restored.

I am currently using Android’s SharedPreferences to store these settings. I would like some comment on if this will work for my purpose or not.

  • 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-05T12:59:32+00:00Added an answer on June 5, 2026 at 12:59 pm

    The short answer for your specific case is to use the “managed by user account” purchase type when you set up in-app billing.

    Regarding the general case, your app’s SharedPreferences are deleted when your app is uninstalled, so no, this will not work. The only data that is kept around after uninstallation is that stored in a public directory in external storage (usually but not always an SD card). Your app’s private directory on external storage is deleted, along with your databases, SharedPreferences, etc. during uninstallation.

    It would be in poor form (and not very reliable) to use a public area of external storage to try to save user data for this purpose. The correct solution to the general problem of storing user data across devices or uninstall/reinstall cycles is, as @anoop suggested, to send it to a server.

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

Sidebar

Related Questions

The scenario is, i'm developing an android app that uses the internet. This is
I am developing an Android application. This app deals with contact information (name, number,
I am very new to android and I am developing this app which allows
im developing a app in Android. in this project im using a List of
I am developing a simple sip-based voip app for android. I used this sample
I am developing an android app where I have to rotate a circular image
I'm developing android app. It's some sort of social network. Where user can add
I'm developing on an app for Android where the user is able to login
I am developing Android TextToSpeech app. This application is not working in Android 1.5
I am developing an android app in which I have to present the user

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.