karthikr wrote: > I am submitting an application to the android developer challenge 2, > but i would like to sell my application after the competition is over. > In the terms and conditions google has mentioned that in case if i > have to sell the application after the contest is over I have to set a > timed expiry date.
1. The Terms and Conditions do not mention the use of a "timed expiry date". 2. The main ADC2 page *does* mention the use of a "timed expiration" trial version, but this is not mandatory. "If you intend to sell your application after the conclusion of the contest, you may submit a "trial" version of the application for judging. We recommend that your trial version include full functionality, but with a timed expiration, rather than including limited functionality with no expiration." http://code.google.com/android/adc/ > But while going through the steps for publishing the applications it > is mentioned that the certificate validity limit should be a minimum > of 22 October 2003. > > "1.Your application must be signed with a cryptographic private key > whose validity period ends after 22 October 2033. " Certificates have nothing to do with time-limited trial versions. > If not what is the best proccess that i should be > following to set a timed expiry period? Step #1: Figure out what the current time is (e.g., long now=System.currentTimeMillis();). Step #2: Compare the current time to your desired expiration time (e.g., if (now>KABOOM) {}) Step #3: If the current time is more recent than your desired expiration time, let the user know the trial period has expired (e.g., via an AlertDialog or Toast). Step #4: Do all of the above in onCreate() of your first activity, and finish() that activity (e.g., after the dialog is closed), so your app cannot be used. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

