[android-developers] Re: Timed trial expiry?

2009-02-21 Thread Al Sutton

Just to expand a bit; you can use the code in 4(c)(ii) to check for an 
expiry date, and in your onCreate method, you look for a file on the SD 
card, if it doesn't exist create it to containing the expiry date, if it 
does exist read it and check if the app has expired.

Yes, it means that the user could delete the file from the SD card if 
they wanted to, but Android is designed to leave nothing behind when an 
app is uninstalled, so it's probably the best option you have.

Al.

Al Sutton wrote:
> http://andappstore.com/AndroidPhoneApplications/licensing.jsp
>
> Al.
>
> Craig wrote:
>   
>> Does anyone have a somewhat secure method of expiring a trial version
>> of an app a certain amount of time after an install?
>>
>> I do not want to use a server, because I am making a game that
>> shouldn't need permissions.
>>
>> I would like the expiration data to survive an uninstall, but I am ok
>> if it doesn't survive a manual edit of the database. Do an
>> application's database entries get deleted when an app is uninstalled?
>> How about preferences? Local files? Other methods?
>>
>> 
>>   
>> 
>
>
>   


-- 
==
Funky Android Limited is registered in England & Wales with the 
company number  6741909. The registered head office is Kemp House, 
152-160 City Road, London,  EC1V 2NX, UK. 

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 
subsidiaries.


--~--~-~--~~~---~--~~
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: Timed trial expiry?

2009-02-21 Thread Al Sutton

http://andappstore.com/AndroidPhoneApplications/licensing.jsp

Al.

Craig wrote:
> Does anyone have a somewhat secure method of expiring a trial version
> of an app a certain amount of time after an install?
>
> I do not want to use a server, because I am making a game that
> shouldn't need permissions.
>
> I would like the expiration data to survive an uninstall, but I am ok
> if it doesn't survive a manual edit of the database. Do an
> application's database entries get deleted when an app is uninstalled?
> How about preferences? Local files? Other methods?
>
> >
>   


-- 
==
Funky Android Limited is registered in England & Wales with the 
company number  6741909. The registered head office is Kemp House, 
152-160 City Road, London,  EC1V 2NX, UK. 

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 
subsidiaries.


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