I am using startActivityForResult()
to allow the user to choose a file form the file system in my app. After the file is chosen, OnActivityResult()
runs and I save the file path to a variable and proceed. This works fine on Android 2.3 and lower.
On Honeycomb, however, OnCreate()
runs again AFTER OnActivityReult()
, essentially restarting my activity so I am unable to hold any variables because it runs an entirely new activity after I get the result.
Any idea why this is, and what I can do about it?