Reputation: 4561
I am calling camera:
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(new File(mImagesFolder, TEMP_PHOTO_FILENAME)));
startActivityForResult(intent, REQUEST_CODE_CAMERA);
The camera window shows, a photo is taken and everything looks OK, but in fact onActivityResult
is not called at all in my activity! I have put a log output between
public void onActivityResult(int requestCode, int resultCode, Intent data) {
and super.onActivityResult(requestCode, resultCode, data);
so I know for sure.
Instead, onCreate() and onResume() are called.
This happens on LG E975 device only.
How can I make it work?
Upvotes: 2
Views: 887
Reputation: 107
I was stuck on this issue too. Check if you have android:noHistory="true"
in your AndroidManifest.xml file.
Removing that property from the AndroidManifest.xml did the trick for me.
Upvotes: 1
Reputation: 11333
I was using android:launchMode="singleInstance"
in my activity in manifest.xml.
Removed it and it started working again. Hope it helps.
Upvotes: 4