is there a way to access the install date of an application?

by Josh Dobbs » Thu, 29 Jan 2009 07:24:55 GMT

Sponsored Links
 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.


is there a way to access the install date of an application?

by acrosser » Thu, 05 Mar 2009 11:46:30 GMT


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?


Sponsored Links

Other Threads

1. Transmitting signals at 433Mhz


I am re-posting this because I received no response after about 3

 I am interested in transmitting to a device that only sends and
receives on 433Mhz. Is it possible to make my program send and receive
signals at this  frequency? If so, how do I access that technology. It
would not have to send or receive the signal from a distance greater
than 50 feet.

Thank you ahead of time for your responses


2. onHandleIntent(Intent) method does not get called

Hi --

I'm tryng to get an IntentService to work, and I have extended
IntentService, and I implemented a onHandletIntent(Intent) method.  I
put some logging in there, but this method never gets called.

I must be doing something really dumb, but I don't know what it is.

Is there something else I need to implement or override, or whatever,
to make this work?


3. Accessing Resources in a ProviderTestCase2

4. New iPhone 4 camera test reveals impressive pictures and video - news

5. Samsung Galaxy S Live Wallpaper

6. flac player on android

7. ListView Out Of Memory Problem