I have the following problem:
My android application requires some setup, which can take several minutes. It is executed only once at the time of first launch. So, when a new user starts the application for the first time, a special initializing process starts and a progress dialog with caption "Preparation for the first launch" appears. When this step is complete, it isn't needed next time.
The problem is, that while this process is being executed, the user can switch to another activity - to start another application or make a call. And it entails the death of this setup process. What should I do to avoid this?
Take into account, that this setup process is run in IntentService. However it doesn't help.
Thank you in advance.