I'm trying to access a variable from onActiviyResult
, but I do not get the latest value
I'm using a camera EXTRA_OUTPUT
intent - (not trying to get the intent data, trying to locate the path)
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == REQUEST_IMAGE1) {
if (resultCode == RESULT_OK) {
Log.e ("TAG","file path = "+imageFilePath1);
imageFilePath1
is declared under the screen main activity:
String imageFilePath1 = "";
After creating the image file, imageFilePath1
has the correct path.
what is the problem and what are the solutions?