Android Question What is the "install" event in Android?

Heintjie

New Member
Licensed User
What is the "install" event in Android that I can use to to display a Status Message? Say I'm installing an app for the first time, I want to display a welcome status message for that time only. Right now I am able to implement this from the "Activity_Create" event.
 

canalrun

Well-Known Member
Licensed User
Longtime User
I accomplish this by having a Map file of parameters that I store in the DirDefaultExternal (some people say DirDefaultInternal is a better choice) directory.

In Activity_Create, if the Map file does not exist I initialize it (including setting NewInstall=True), otherwise I read it using File.ReadMap.

In Activity_Resume I show the status message if NewInstall is true, then set NewInstall to false.

In Activity_Pause I save the map file using File.WriteMap
 
Upvote 0

trueboss323

Active Member
Licensed User
Longtime User
When your app launches for the first time, try creating a small file (like update.txt). If it already exists then that must mean it is an update.
 
Upvote 0
Top