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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T11:36:55+00:00 2026-06-01T11:36:55+00:00

I just spent around an hour implementing the android market licencing tools into my

  • 0

I just spent around an hour implementing the android market licencing tools into my app.

The app in question is a widget, I want to know how I would go about stopping the widget (a button) from functioning, if the app isn’t licensed.

Does anyone know how this could be accomplishes?

  • 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-01T11:36:56+00:00Added an answer on June 1, 2026 at 11:36 am

    I assume you check for a valid license when the application is first started (say in onStart())? If so, then depending on the response from the licensing server, just set a boolean to indicate if it is licensed and use that as a check in the button’s onclick method. If it’s not licensed, then notify the user and do nothing else.

    As a side note, depending on your app’s intended use and expected user interaction frequency, you shouldn’t check for a valid license every single time the app launches. You may only need to check once and then store the result in a shared preference that you use on subsequent launches.

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

Sidebar

Related Questions

So I just spent around an hour trying to unveil and resolve a very
Enough is enough - I've just spent an hour searching around trying to find
My Eclipse crashed, and a working set which I'd just spent an hour setting
I have a large music library which I have just spent around 30 hours
I've spent the past hour digging around the Python docs and many SO questions;
Just spent a few hours trying to get my head around dependency properties (finding
I just spent far too long wandering around Oracle's website looking for the latest
This is a simple question... yet I have spent some time poking around online
I just spent way too long trying to diagnose why, in the following snippet
I just spent 5 hours by checking Google gadgets websites and FAQs, but I

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.