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

Reply via email to