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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T22:47:58+00:00 2026-06-08T22:47:58+00:00

I realize that this problem can be solved in the future by using some

  • 0

I realize that this problem can be solved in the future by using some sort of SharedPreferences value that contains the app version and is set only on the very first run. However, I’m considering adding ads to one of my apps and I’d like to not bombard existing users with ads without offering more value to them.

I was wondering, therefore, if there is some sort of innate property that would let me detect this, or if it’s too late to do it for this version as I would have needed to implement that beforehand. Unfortunately, the app is very simple and so at the moment I haven’t even used any preferences. Thanks!

(I considered asking this on AndroidEnthusiasts, but I reasoned that it really is an SDK question that devs would be better able to answer)

  • 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-08T22:48:02+00:00Added an answer on June 8, 2026 at 10:48 pm

    No, you cannot detect the app version of a previously downloaded or initially downloaded APK. You can only detect the app version of the current app.

    The only way I can think of for you to get around this would be to implement an update in which you have SharedPreferences, which sets something like "has_downloaded" = true. Once all the users have updated, you update, stop setting the "has_downloaded" variable, and check it instead. If it’s true, it’s one of your initial users, otherwise, show an ad.

    This is far from a feasible solution, though, if you have a large userbase. I still have users using versions that are 2+ months old. Additionally, if they ever have to reinstall (or if they clear the app data), this data will be lost.

    If your app had, previous to now, been saving data, you could check for the presence of this data, and in all future versions, save it under a different name. You still run into the reinstall issue with this method, though.

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

Sidebar

Related Questions

I realize that this question has been asked 100times but none that I have
Note: I realize that this is probably an open-ended question, so go ahead and
While I realize that this question has been asked once or twice ago but
I realize that the answer to this question is likely quite obvious (if somewhat
I realize that a SO user has formerly asked this question but it was
I asked this question in the restkit google group, but realize now that it
i want to realize a construct in MS SQL that would look like this
How can I inject the value of an appSettings entry (from app.config or web.config)
Recently working on my company i'm realize that start to having troubles with some
I realize the knee-jerk response to this question is that you dont., but hear

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.