Well I've read the tutorials and I thought I understood how Android worked - but apparently not!
On startup I want to check for the existence of a database and if it does not exist, suspend the Main Activity and enter a configuration activity so the user can set up file locations.
On startup, if the database exists, I then want to check for the existence of a database update file, and if it exists, pause the Main Activity and enter an Update Activity.
In both of the above cases, I wanted to suspend the "First Time" code in the Main Activity while the other activities were opened, completed and closed; continuing the Main Activity before these "diversions" will otherwise produce errors and essentially crash the application.
What I am finding is that by the time the Setup or Update Activities are started, the rest of the Main startup activity has still been attempted - which was not my intention. I don't want to put everything in one big Main Activity - that doesn't feel right.
Can anyone help me out here? What is a better way to approach this?
On startup I want to check for the existence of a database and if it does not exist, suspend the Main Activity and enter a configuration activity so the user can set up file locations.
On startup, if the database exists, I then want to check for the existence of a database update file, and if it exists, pause the Main Activity and enter an Update Activity.
In both of the above cases, I wanted to suspend the "First Time" code in the Main Activity while the other activities were opened, completed and closed; continuing the Main Activity before these "diversions" will otherwise produce errors and essentially crash the application.
What I am finding is that by the time the Setup or Update Activities are started, the rest of the Main startup activity has still been attempted - which was not my intention. I don't want to put everything in one big Main Activity - that doesn't feel right.
Can anyone help me out here? What is a better way to approach this?