I’m working on an app which uses default Camera app for taking a photo. Now I want to check is there were taken the photo.
I read on SO that that could be done with this method:
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
...
}
My problem is when I put that method in my class which isnt an Activity class I got error:
“The method onActivityResult(..) must override or implement a supertype method”
I already check, my compiler is set to java 1.6. and my jre is set to 1.6.
What should I do?
You need an
Activityon order to receive the result of the camera action. Why do you want to put the code in some other class? If it is just for re-use/organisation then why not just call your other class from yourActivity?