I have two activities. The user will select a file from activity A, then activity B is started with StartActivity(). The file is loaded and processed in Activity B. Not wanting to reload and reprocess the file every time the orientation is changed, I check for FirstTime flag and only load when it is true.
Problem comes when the user exits the second activity with the back arrow and selects a new file from activity A. The FirstTime flag remains false so the new file doesn't get loaded and processed. The example below shows the problem, using strings instead of files to illustrate.
I tried putting If UserClosed = True Then FirstTime = True but that didn't do anything. Anyway to reset the FirstTime flag?
Problem comes when the user exits the second activity with the back arrow and selects a new file from activity A. The FirstTime flag remains false so the new file doesn't get loaded and processed. The example below shows the problem, using strings instead of files to illustrate.
I tried putting If UserClosed = True Then FirstTime = True but that didn't do anything. Anyway to reset the FirstTime flag?