Passing intent data to another class
i have two Android activity classes, say class A and class B. In class A, i create an object for class B and call a method of class B. In the method of class B, i call the camera intent and launch the camera(using startactivityforresult). But when i write onActivityForResult in class B, it is not called. Also the activity does not wait for the camera button to be clicked. It goes back to the class which called the method(class A). Now if i take a photo, how do i get the intent.getExtras() data?

Thank you.
Passing intent data to another class
===

i have two Android activity classes, say class A and class B. In class A, i create an object for class B and call a method of class B. In the method of class B, i call the camera intent and launch the camera(using startactivityforresult). But when i write onActivityForResult in class B, it is not called. Also the activity does not wait for the camera button to be clicked. It goes back to the class which called the method(class A). Now if i take a photo, how do i get the intent.getExtras() data?

Thank you.