I need a simple statement with an "if condition" that does this: "if you didn't download from market then finish()". If I understood well there are two types of control: I need that the control is done strictly everytime connecting to the Android market server, storing data nowhere in the phone for further offline checks. Thanks, as usual, to the Stack citizens!
LVL - A statement for: "if you didn't download from market then finish()"
397 views Asked by Geltrude At
2
There are 2 answers
0
arkon
On
In addition to what David suggested, you could also watch for the ERROR_NOT_MARKET_MANAGED response code.
ERROR_NOT_MARKET_MANAGED — the application (package name) was not recognized by Android Market. Do not retry the license check. Can indicate that the application was not published through Android Market or that there is an development error in the licensing implementation.
Also, David makes a good point. Apps are guaranteed to fail communicating with the licensing server from time to time. This could drive your users mad.
Related Questions in ANDROID
- Creating global Class holder
- Flutter + Dart: Editing name of a tab shows up a black screen
- android-pdf-viewer Received status code 401 from server: Unauthorized
- Sdk 34 WRITE_EXTERNAL_STORAGE not working
- ussd reader in Recket Native module
- Incorrect display of LinearGradientBrush in IOS
- The Binary Version Of its metadata is 1.8.0, expected Version is 1.6.0 build error
- I can't make TextInput to auto expand properly in Android
- Creating multiple instances of a class with different initializing values in Flutter
- How to create a lottie animation
- making android analyze with coverity sast tool
- Flutter plugin development android src not opening after opening example
- I initialize my ViewModel in the Activity with several fragments as tabs, but the fragments(tabs) return null for the updated livedata
- Node.js Server + Socket.IO + Android Mobile Applicatoin XHR Polling Error...?
- How I can use the shared preferences class?
Related Questions in AUTHENTICATION
- Authenticate Flask rest API
- Sends a personalised error message from the back-end to the front-end with Nuxt-auth
- How to connect Spotify PKCE Authorization Boilerplate to Login-Button in React
- Laravel SPA auth with Sanctum
- _supabaseClient__WEBPACK_IMPORTED_MODULE_1__.supabase.auth.signIn is not a function
- My openID Authentication return 'You must have either https wrappers or curl enabled.'
- How to detect the Minimization of Custom Chrome Tabs on Android?
- Wordpress redirect to homepage after successfully logged in
- How to modify the prebuilt UI of authentication in aws amplify version 6 in React Native
- Creating a login system for my website, navlist not working?
- Receiving 400 bad request on post when customer auth handler is used
- Creating Azure B2B login system with Vue.js frontend & Python Django backend
- Gradio chatbot: how to export individual conversation histories?
- Set-Cookie header not forwarded by nginx to the client
- git asking for authentication when auth.json is present while running composer update
Related Questions in GOOGLE-PLAY
- how to Delete app bundle from play store in 2024?
- Как подтвердить свой адрес в Google Play Console в Беларуси?
- Flutter app ANR bad behavior in Play Store
- App is not visible after after full rollout on google play store
- Google Play Scraper reviews_all is inconsistent
- App removed from google play store because of MANAGE_EXTERNAL_STORAGE
- React Native Expo published app not displaying logo properly
- Android Managed Google Play Console
- Debugging MAUI issues from android playstore Crash details stacks
- Play Billing Library prevents uploading my App
- Doesn't work closed testing links for Play Console
- ou have imported an APK or an app bundle signed with a certificate that is not yet valid You must sign either with a valid certificate
- I couldn't verify my identity in Google Play console even though I used my passport and ID card
- "High Risk Behavior" mark on Google Play
- Google Warning: There is no deobfuscation file associated with this App Bundle
Related Questions in STRICT
- How can I access function caller in strict mode at JavaScript
- Disable warnings from base module + load Moose/Test2::V0
- Enforcing strict comparison for bool return type functions in PHP
- TypeScript Argument Error with strictNullChecks when Checking Nested Object Property
- How to make ANTLR parser strict?
- PHP why is array_filter ignoring strict_types?
- Script to automate the strict compiler option
- Save complete complier output to txt or csv with "strict":true compiler option in typescript
- in perl, get() works with string, but not with a variable containing the string
- MatMenuTrigger while using strict settings
- React issue. Rendering twice with strictMode
- why am I getting javascript error: use strict: not found and Syntax error: word unexpected (expecting ")")
- Where to set angular strictness flags that configure how strict strictTemplates is?
- Strict mode in recycler view adapter -> inflate method
- Selected value being read with lag
Related Questions in ANDROID-LVL
- Android: Check a license status of app A from app B?
- Android - LVL library always returns NOT_LICENSED
- How far is Google Play Billing Library a replacement for Application Licensing (LVL)
- Importing module from source (google play licensing) doesn't actually import anything
- My app from Play Store with License Verfication Library crashes when internet is on, on newer versions of Android
- My app started to crash after implementing Licence Verfication Library
- Can you check the licensing status of one application from a different application using the android lvl library?
- Avoid sharing paid app with google account
- Google Play Licencing for an Android app in Android Studio
- Unity Google Play License Verification (LVL)
- Android LVL : how to modify/recompile ServerManagedPolicy.java in the licensing module?
- Migrating paid app to In App Purchase on Google Play
- LVL responding with LICENSED for free users
- Google Play License Verification Library with flutter
- LicenseCheckerCallback response issue
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
You should implement licensing as per the Application Licensing Dev Guide and use the StrictPolicy detailed under policies.
StrictPolicy does not allow the caching of responses and I would think carefully about whether it is a good idea to demand that your users are online to use your application.