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()"
395 Views Asked by Geltrude At
2
There are 2 best solutions below
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
- Delay in loading Html Page(WebView) from assets folder in real android device
- MPAndroidChart method setWordWrapEnabled() not found
- Designing a 'new post' android activity
- Android :EditText inside ListView always update first item in the listview
- Android: Transferring Data via ContentIntent
- Wrong xml being inflated android
- AsyncTask Class
- Unable to receive extras in Android Intent
- Website zoomed out on Android default browser
- Square FloatingActionButton with Android Design Library
- Google Maps API Re-size
- Push toolbar content below statusbar
- Android FragmentPagerAdapter Circular listview
- Layout not shifting up when keyboard is open
- auDIO_OUTPUT_FLAG_FAST denied by client can't connect to localhost
Related Questions in AUTHENTICATION
- Access roles from multiple applications
- Different storyboard's entry points depending on a parameter
- SoundCloud Authentication Consistently Returns 401 invalid_grant For Some Users
- sendxmpp not authorized failure (Error AuthSend)
- Retrieve user information from Active Directory on login
- Log in through active directory
- Ember.js REST Auth Headers
- Validate Deezer access token on server
- Why does IIS Anonymous Authentication turn on by itself after I publish my project to server?
- Laravel - session data survives log-out/log-in, even for different users
- How can I share Azure Active Directory authentication between server side and client script?
- django rest framework - token authentication logout
- NameValuePair, HttpParams, HttpConnection Params deprecated on server request class for login app
- How to delete user from _User through Parse REST API
- Cannot login with new SQL User - SQL 2014
Related Questions in GOOGLE-PLAY
- Android bundle identifier for different appstores
- Android app versionCode too large
- Android: Publishing and Signing same application for many customers
- Google play services doesnt displays leaderboard after Auth
- Black screen after updating Google Play Services:7.5.0
- Unity3D 5 packages conflict
- Google Play Alpha test links to production APK
- Google App indexing for games
- How to remove Rejected Apps from Developer Console
- Deploying an Android app on devices without Play Store account
- Android app install verification
- not able to get advertising id in android
- Is it possible to have multiple APK support according to countries in google play?
- Different app name in play store
- Android - Bypassing install permission programmatically for enterprise apps from third-party sources
Related Questions in STRICT
- Vb.NET Architecture with Option Strict On
- How to correctly execte function from external file onload?
- Google Closure using ES5 strict mode even though I specified non-strict mode (in minify-maven-plugin configuration)
- Is the function form of "use strict" necessary in a web worker
- Strict Standards Error - passing by reference
- global initalization of oop function in javascript strict mode
- Strict Standards: Only variables should be passed by reference & Strict Standards: Non-static method
- Non-strict vs. strict OR-operator
- Joomla 1.6 problem
- ActionScript: Should I always use strict equality ("===")?
- LVL - A statement for: "if you didn't download from market then finish()"
- Sql Server strict convert from varchar to datetime
- JavaScript: Can ECMAScript 5's Strict Mode ("use strict") be enabled using single quotes ('use strict')?
- SQL Only return value if condition is met with duplicate info
- Joomla Strict Standards Error
Related Questions in ANDROID-LVL
- How to limit my paid app for only one device on same account in Android and iOS
- Android 5.0 License Check always returning NOT_LICENSED
- Lollipop 5.0 Sample License Checker App crashes on Emulator (AVD)
- Google Play unlicensed response when app is bought
- Can I query the Android Market License server from application A in order to see if application B was bought legitimately from the market?
- LVL behavior on client side license validity check for free apps
- Android App not allow licensed access to my own App (using the developer account)
- If i use app licensing on my app's update what happens to user already installed application?
- Market licensing API on Android emulator issues
- App protection with LVL and explicit intents?
- License verification for non-Market distribution channels?
- Simple Android Licensing
- LVL - A statement for: "if you didn't download from market then finish()"
- Adding custom fields to license check requests using Android LVL
- Running Android App From Emulator
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)
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?
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.