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. Force a full screen Activity to remeasure/redraw on resume?

The app I'm working on is set to NoTitleBar and Fullscreen, and the
activities are all in landscape mode. Sometimes when I return to the
application after it has been paused, the Activity looks as if it's
shifted down to make space for the title bar. If I navigate to another
Activity or even do some action that pops up a dialog, it quickly
corrects itself - the activity jumps up to full screen and remeasures
all the child views. I would like to do something like this by default
when the Activity resumes.  Is there a method in Activity that I can
call to manually retrigger the measure/layout process and possibly
applying the NoTitleBarFullScreen theme?  And if so, are there any
possible issues with doing this manually?


2. (WTCurhat) Pusing cari gadget...

bener kata om yopie sama om bernard
tambah dikit lg dapet desire tuh :D
klo saya pribadi seh lebih suka produk HTC
dari segi kualitas dan performa lebih bagus dari motorola


3. [WTA] samsung galaxy s vibrant

4. Mau tanya tentang Android yang entry level tapi yg lumayan bagus

5. how to change webview's transparency

6. live wallpaper write access for sdcard

7. BroadcastReceiver onReceive startActivity Issue