Given the following situation (partially pseudo-code):
- User presses a button in Activity
Awhich in turn executes this code:
progressBar.setVisibility(VISIBLE) // by default is set as INVISIBLE in the layout
startActivityForResult(ActivityB)
- User rotates his device
Is it possible that step 2 (rotating device) causes a configuration change which leads to the recreation of Activity A and therefore the progressBar to be hidden before Activity B is shown?
I know that startActivityForResult is an asynchronous call, but I am not sure how it is implemented internally, therefore if the configuration change in Activity A can occur before Activity B is shown?