As I understand from your question, This happens when using an ActivityGroup . Since you start an Activity for the result inside the child Activity (i.e. TakePicture.class ), and Android will only allow one nested level of the child Activity (ies) (means that the child Activity cannot nest another child of the Activity ). You are probably processing the result in your child Activity ( TakePicture.class ).
So, the solution for your problem is to process this result inside the parent Activity ( OpenBeeActivityGroup ) onActivityResult() , and then send the result to the active Activity . you will use something like this. inside your baby. Run your startActivityForResult() from the parent Activity .
getParent().startActivityForResult(cameraIntent,Global.CAMERA_PIC_REQUEST);
and inside onActivityResult() ActivityGroup ( OpenBeeActivityGroup ):
protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (resultCode == Activity.RESULT_OK) { switch(requestCode) { case Global.CAMERA_PIC_REQUEST:
source share