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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T13:53:46+00:00 2026-06-17T13:53:46+00:00

I already know how to persist normal data throughout Android activities, but I’m wondering

  • 0

I already know how to persist normal data throughout Android activities, but I’m wondering if the same methods are safe to use for Android purchase data.

I’m making a free app that uses in-app purchases to unlock all the content. This is something that I’m currently checking in the splash screen activity in order to customize the UI, however I would also need this information throughout the app.

Is it best to query in each activity, or is a Shared Pref safe enough?

As a note, I’m using v3 of Android’ billing library.

Thanks

  • 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-17T13:53:47+00:00Added an answer on June 17, 2026 at 1:53 pm

    Shared Preferences are OK for this. Your data is sandboxed the same as if it were a database. (Security-wise, both are just as safe)

    You will need to query either the database, or SharedPreferences to get this data in your Activity regardless. Doesn’t really matter from which data store you retrieve it.

    You don’t have to worry about users changing your data (somehow changing their local status to ‘paid’) as they aren’t able to change your SharedPrefs (or database values) – since they don’t have access to these secure data stores.

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

Sidebar

Related Questions

I already know about Ghostscript front end viewers; but I was wondering how gs
I already know that most implementations use a single thread, but is there anything
I already know quite a few tricks with Android java and I have an
I think I already know the answer to this one, but i hope maybe
I think I already know the answer to this but thought I would ask
We use .net binary serialization right now to serialize data to persist. It does
I already know to skype call using phone number but i can't do skype
I already know of include guards, but here are some issues i'd like to
I already know the jQuery plugin ScrollTo, but I didn't find any way up
I know this sounds similar to many questions already asked, but those were answered

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.