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


 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?







--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. Cara logout account google kita di htc magic gmn?tolong master

Gmn caranya logout account google kita di android?ato mau ganti account gt.

Gmn cr nya?

-- 
Sent from my mobile device

--~--~---------~--~----~------------~-------~--~----~
Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to id-android@googlegroups.com

To request to subscribe to this group, please visit the following page:
 

2. How do I get a view's height to fill the space in between two other views?

If you are using XML layouts, there are a couple things you could try...

1) Set the layout to use fill_parent instead of wrap_content
2) Give the layout a weight... android:layout_weight

Thanks,
Justin

----------------------------------------------------------------------
There are only 10 types of people in the world...
Those who know binary and those who don't.
----------------------------------------------------------------------


On Sat, Oct 24, 2009 at 7:52 PM, launchpadtt




--~--~---------~--~----~------------~-------~--~----~

3. Using Notifications for new Activities in existing tasks

4. - Play video in Android Media Player from given URL

5. Cara logout account google kita di htc magic gmn?tolong master

6. Announcement: new android-x86 daily build is available

7. Why a single String.format reduce the FPS from 35 to 25 ?