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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T22:49:55+00:00 2026-06-03T22:49:55+00:00

When my android app starts there will be a prompt that asks user whether

  • 0

When my android app starts there will be a prompt that asks user whether to upgrade to newer version or not.I used an alertbox to display it.I have two buttons in it, “Upgrade” and “No thanks”.Then I added a checkbox to it.And the label for that check box is “Dont ask me again”. When user click on that checkbox,that should be remembered and the prompt shouldnt asked again.Can anyone suggest me a solution to achieve this?

  • 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-03T22:49:57+00:00Added an answer on June 3, 2026 at 10:49 pm

    The Best option you can go for is of SharedPreference. You can Save the in Internal Database.

            PackageInfo info = getPackageManager().getPackageInfo(PACKAGE_NAME, 0);
            int currentVersion = info.versionCode;
            // version name here for display in the about box later.
            this.sVersionName = info.versionName;
            SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
            int lastVersion = prefs.getInt("Key", 0);
    
            if (currentVersion > lastVersion) {
    
                prefs.edit().putInt("key",currentVersion).commit();
                Intent intent = new Intent(this, StartUp.class);
                intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET)
    
               //  Your Code goes here if you want to Display it Only Once.
    
                return true;
            }
    

    EDIT

    SavePreferences("MEMORY1","Your String Here");   
    
    private void SavePreferences(String key, String value) {
        SharedPreferences settings = getSharedPreferences(pref, 0);
        SharedPreferences.Editor editor = settings.edit();
        editor.putString(key, value);
        editor.commit();
    }
    
    private void LoadPreferences() {
        SharedPreferences settings = getSharedPreferences(Settings.pref, 0);
        String sDefault_Card = settings.getString("MEMORY1", "");
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently building an app that will play sounds. When a user starts a
I have a custom home replacement App, that will not be published on the
I am building an app that starts when a user takes a picture using
I've started work on an Android App that will work with Google Docs. UPDATE
I have PhoneGap app running in Android. When the app starts, it inserts approximately
I have an Android app project that contains all of my code. I've made
In my Android app I should store the data from user in simple text-file,
Is this possible in an Android app? I want to make it so that
I'm creating a gallery section for my app which will be used to show
I am writing an Android app that initializes a DatagramSocket to connect to a

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.