Josh,

On every run of your app you could check for a YourApp.cfg file in
your app's directory. If the file does not exist then this is the
first run of your app, so you could create YourApp.cfg and write the
current date to it.

If the file does exist then this is a subsequent run of your app, and
then you could read YourApp.cfg and retrieve the date from it.

Of course, this wouldn't necessarily be the Install Date of the app,
but rather the First Run Date. But in most cases those would be one
and the same.

I was thinking of doing something like this for purposes of
implementing a Trial Period feature, where my app would have reduced
functionality if Current Date - First Run Date > 30 days. But what's
to stop the user from uninstalling and reinstalling the app, thus
creating a new YourApp.cfg?



On Jan 28, 4:12 pm, Dianne Hackborn <[email protected]> wrote:
> No there is currently no such thing.
>
> On Wed, Jan 28, 2009 at 3:24 PM, Josh Dobbs <[email protected]> wrote:
> > I know that i can write something to take care of this but i was just
> > wondering if there's already something available in android that would give
> > me the date when the application was installed.
>
> --
> Dianne Hackborn
> Android framework engineer
> [email protected]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support.  All such questions should be posted on public
> forums, where I and others can see and answer them.

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