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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:34:25+00:00 2026-05-31T06:34:25+00:00

I would like my application after making it five calculations. That is, using 5

  • 0

I would like my application after making it five calculations.
That is, using 5 times.
After using it to block five times, and would show the message to buy the PRO version

How does my application I calculate, calculate and use the button, I guess I could count how many times the compute button is pressed, just do not know how to lock after 5 times.

Someone help me, 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-05-31T06:34:27+00:00Added an answer on May 31, 2026 at 6:34 am

    Create a Class that keeps track of your app loads and saves them in the SharePreferences

    public static Boolean app_launched(Context mContext) {
                SharedPreferences prefs = mContext.getSharedPreferences("loadCounter", 0);
                SharedPreferences.Editor editor = prefs.edit();
    
                // Increment launch counter
                long launch_count = prefs.getLong("launch_count", 0) + 1;
                editor.putLong("launch_count", launch_count);
                editor.commit();
    
                if(launch_count > 5)
                    return false;
    
                return true;
    }
    

    call that function in the onCreate of your Start Activity.

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

Sidebar

Related Questions

I would like to create an application that runs on XBox 360 (downloaded using
I'm making a web application that's focused around watching embedded content. I would like
I would like my application to look similar to that of the Windows version:
I would like a web application to learn things about its environment so that
We have a customer that would like to modify application user messages that we
I would like to make my application somewhat REST compliant. I am using Rails
I would like to create an application that downloads a PDF document from the
I am making a small application and would like a small popup to come
Im making an application which uses few languages. I would like to have possibility
we have a classic JSP + Servlets application and would like to show Content

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.