Given the following situation (partially pseudo-code):
- User presses a button in Activity
A
which 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?
from Can a configuration change occur after startActivityForResult was called?
No comments:
Post a Comment