How can I run code when my application is installed/upgraded?

by Josh » Thu, 16 Apr 2009 07:53:04 GMT


Sponsored Links
 I have an application which has notifications that disappear when the
application is closed to be reinstalled or upgraded.

How can I have my application either run code when it is first
installed or have it detect the first time it is run?

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



How can I run code when my application is installed/upgraded?

by Justin (Google Employee) » Thu, 16 Apr 2009 08:37:31 GMT


 Simply write data to the disk, perhaps the version number of the last
time the application ran. Then check this number at startup.

Cheers,
Justin
Android Team @ Google



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


Sponsored Links


Other Threads

1. Device Keyboard

T-mobile G1's device keyboard can only been seen clearly in full light
and full dark. In medium light its buttons become invisible.

-- 

2. Save messages

if i need few important messages from my android mobile.. and want to
delete rest of messages. its a no problem in other ordinary pones. But
android makes it imposiible to do this little basic action So there
must be option to save messages

-- 

3. set x-axis and y-axis for the image

4. How to know touched cube in opengl ?

5. Mp3 data has glitches, but the ARM codec seems to get rid of them ?

6. Setting preferred home activity from application code

7. How to create text file and read and write from it ?!?!