You cannot set those values. They're dynamically computed by the license server based on a number of factors. For one, we use this as one level of rate limiting. It is a managed policy, but it's managed by us. ;)
If you want different behavior, just subclass ServerManagedPolicy or, if that doesn't make sense, write a completely custom policy. We fully intended for developers to do this, and it's not difficult. As for testing it in the field, our recommendation is to just register an anonymous Google account and buy your own app. You can always return it within 24 hours and not get charged. FWIW, you shouldn't be getting NOT_LICENSED if you have LICENSED set -- unless you're testing too frequently, in which case you'll start getting HTTP 503 errors (which is our rate limiting mechanism for misbehaving applications). -- Trevor Johns Google Developer Programs, Android http://developer.android.com On Thu, Aug 5, 2010 at 2:07 PM, oldskool73 <oldskoo...@gmail.com> wrote: > Hi, > > So I've just published my first paid app to the Market and I used the > new LVL with the default ServerManagedPolicy. > > On working through the docs and getting it set up I noted the > references to the server response extras VT, GT, GR & UT, and the > impression I got from quotes such as "a typical value would be 5 or > more days.", "a typical value would be "10" or higher." etc was that > we would have some way of setting these server response values per app > when we upload them to the Market. > > Either I'm missing something, or there does not seem to be a way to > set these in the Developer Console that I can see? > > If we can't set these, it's not really a 'managed' policy at all, but > a random 'whatever the server decides to respond with' policy, > particularly given the vagueness of the documentation. > > I really hate phone home licensing, and am only using it because it > seems to be the only option to combat Android piracy. Ideally I want > to just check once when the app is first launched, once a day or two > later to check they didn't return it, then cache that for 6 months > (forever?) to minimize disruption to my users. Is this kind of thing > possible with the ServerManagedPolicy or do I have the wrong end of > the stick about the 'management' features and have to roll my own? > > On a side note, if I can't buy my own app, how can I test my licensing > is working in the wild? I got several 'NOT_LICENSED' responses in > testing even when I set it to return 'LICENSED' in the console, so I'm > not 100% convinced of its stability and want to actually see how well > it works outside the testing environment, but apparently can't buy my > own app to do so! > > Cheers, > A > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en