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. Should activities take gtalk login/password as input ?

Or simply use getDefaultSession(). Note that in later case we are assuming
that judges/users will have there gtalk thingie setup using DevTools or
something else ?

Regards,
Harsh

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

2. Problem with KML Settings (Speed,Bearing,...)

Hi all,
I wanted to know how I can calculate Speed, Bearing and other settings
if I define a KML-TRack

I have defined my properties file and it looks like so

Code:
requiresNetwork false
requiresSatellite false
requiresCell false
hasMonetaryCost false
supportsAltitude true
supportsBearing true
supportsSpeed true
repeat true
powerRequirement 1
hasSpeed true
hasAltitude true
hasBearing true
accuracy 10
trackSpeed 10


I call the method getSpeed like so myLocation.getSpeed() and I get
always 0,0 as speed, why?

Why doesn't it work?

Thank in advance
--~--~---------~--~----~------------~-------~--~----~

3. APIDemos Gallery1 Modification

4. Trouble with View.OnKeyListener

5. Plugin for NetBeans

6. Accessing resources in 3rd party jar file

7. Special Actions for IGTalkSession.sendDataMessage()