I have some DB work that I need to be done once when the app is installed and ran the first time.
I know I need to use the SharedPreferences
to track this to make sure it is done once. But my question is when this work should be done (or the methods that do that should be called). Is it done on the OnCreate()
of the home page of the app (first screen) or is done in a derived class from the Application class?
Right now I am doing it in the application class, however the only down side is that the I can't display ProgressBar
to indicate things are being worked on (probably because there is not Context
attached yet). But I want to confirm that this is a correct place to do preliminary things in the first place
Thank you