On Thu, Nov 24, 2011 at 2:51 AM, Ricardo Amaral
<[email protected]> wrote:
>
> Online validation is something I really wanted to avoid. I know that most
> people have an internet connection always on, but when they don't, I really
> don't want to downgrade my app or prevent them from using it. I'm not very
> comfortable with such policy. That doesn't leave me with any other options
> does it?

* option 1: don't do online validation. You can even get away without a
server component at all: find a deterministic coupon generation algorithm and
implement it in your app. Say, all 8 char strings that have 2 odd numbers and
2 vowels are valid coupons (don't use this!). Assume some people will find
what how this works and abuse it. If the number is relatively small,
just ignore
them. (Real world example: Windows license keys had no online validation
for years)
* option 2: do online validation once a week/month, etc, only when Internet
connection is available
* option 3: come up with some other (reasonable for your app) policy

Bottom line: you need to decide how far you are willing to go with this first
and if it is worth your time. Then decide on a policy and implement it.

>
> I guess this means the coupon system I found is not that useful. It uses
> shared preferences to control if the app is unblocked (ie: a coupon code was
> inserted and validated):
> https://github.com/zemariamm/Coupons/blob/master/src/com/zemariamm/coupons/CouponPreferences.java
>
> Still, someone requested the link to the whole thing:
> http://zemariamm.posterous.com/using-coupons-to-giveaway-paid-android-apps
>

Thanks. This is very basic, so if you decide to use it, you may want to
improve/tweak it. At least you need to decide how you manage coupons:
 by device (how do you identify devices?), user (google account, email), etc.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to