You can also try using licensing (lvl)

http://developer.android.com/guide/google/play/licensing/index.html

https://github.com/mattleibow/Android.Play.ExpansionLibrary

www.digipom.com/how-the-android-license-verification-library-is-lulling-you-into-a-false-sense-of-security/
On Aug 23, 2012 5:15 PM, "Sayed Arian Kooshesh" <[email protected]> wrote:

> So I've been interested in putting a referral system into my app. The
> first problem I ran into is, well people can just buy you app, refund, then
> restore from the sd card and bam! no payment.
>
> well, I was considering this code (minus the calls to a, that's my parse
> object (http://parse.com))
>
>
>
>
>
>
>     try{
>         PackageManager pm = getPackageManager();
>         String installationSource =
> pm.getInstallerPackageName(getPackageName());
>         if(installationSource==null)
>             installationSource = "nosource";
>         a.put("installsource", installationSource);
>         }catch(Exception ex)
>         {
>             a.put("installsource", "no source");
>         }
>
>
> does anyone have any experience with this. It'll be null if they installed
> it off the sdcard (or onto an emulator). I'm attempting to prevent fraud. I
> thought I'd just share this tidbit (code is java, but easily converted)
>
>
>
> --
> Extreme Knowledge is not something for which he programs a computer but
> for which his computer is programming him.
>
> -Wozniak
>
>
>    - if my programming advice has helped you, feel free to donate to : 
> <https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KYUXV2PG88YQQ>
>
> <https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KYUXV2PG88YQQ>
> <https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KYUXV2PG88YQQ>
>
> _______________________________________________
> Monodroid mailing list
> [email protected]
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>
>
_______________________________________________
Monodroid mailing list
[email protected]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to