[android-developers] Re: LVL -- where to specify params for Server policies?

2010-09-29 Thread MarcoAndroid
Are you talking about VT, GT, GR?

Those you can't set in the Market/dev-console yourself. When you're
running in test mode they are not filled, so you see in the logcat
that they get set to some default value e.g 1 minute MILLIS_PER_MINUTE
for mValidityTimestamp in ServerManagedPolicy.setValidityTimestamp().
When published you'll get real more useful values (apparently).

I guess you can change the logic in setValidityTimestamp to not obey
the VT, GT, GR you get back, but why would you if they are sensible
values (are they?)?


On 28 sep, 20:23, DulcetTone dulcett...@gmail.com wrote:
 I do not see within the LVL documentation and example app who/what/
 where you specify the frequency with which license checks must be
 performed.

 I would expect that we could just new up a ServerManagedPolicy and set
 these parameters on it.

 Are we intended to modify the actual file ServerManagedPolicy.java
 (rather than subclass it) to overwrite the private final statics
 therein?

 I see that some of this comes via extras on the Intent... but that
 seems to imply to me that the Market console will have a place from
 where I specify these parameters, as it is the source of these extras
 (I'd guess?)

 Confused...

 tone

-- 
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


[android-developers] Re: LVL -- where to specify params for Server policies?

2010-09-28 Thread JonFHancock
I have modified the ServerManagedPolicy.java.  I doubt that it is the
correct way to do it, but it works.

On Sep 28, 11:23 am, DulcetTone dulcett...@gmail.com wrote:
 I do not see within the LVL documentation and example app who/what/
 where you specify the frequency with which license checks must be
 performed.

 I would expect that we could just new up a ServerManagedPolicy and set
 these parameters on it.

 Are we intended to modify the actual file ServerManagedPolicy.java
 (rather than subclass it) to overwrite the private final statics
 therein?

 I see that some of this comes via extras on the Intent... but that
 seems to imply to me that the Market console will have a place from
 where I specify these parameters, as it is the source of these extras
 (I'd guess?)

 Confused...

 tone

-- 
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