Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As for I understand from your Question is, This happen while using <code>ActivityGroup</code>. Since you are starting <code>Activity</code> for result inside a child <code>Activity</code> (i.e <code>TakePicture.class</code>), and Android will only allow single nested layer of child <code>Activity</code>(ies) (means child <code>Activity</code> cannot nest another child <code>Activity</code>). And you are probably handling the result in your child <code>Activity</code>(i.e <code>TakePicture.class</code>).</p> <p>So the <a href="https://stackoverflow.com/a/4569579/593709">solution</a> to your problem is to handle that result inside your parent <code>Activity</code> (<code>OpenBeeActivityGroup</code>)'s <code>onActivityResult()</code> and then send your result to the active <code>Activity</code>. you will use something like this. inside your child Activity start your <code>startActivityForResult()</code> from parent <code>Activity</code> like.</p> <pre><code>getParent().startActivityForResult(cameraIntent,Global.CAMERA_PIC_REQUEST); </code></pre> <p>and inside your <code>onActivityResult()</code> of <code>ActivityGroup</code> (<code>OpenBeeActivityGroup</code>):</p> <pre><code>protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (resultCode == Activity.RESULT_OK) { switch(requestCode) { case Global.CAMERA_PIC_REQUEST: // global variable to indicate camera result Activity activity = getLocalActivityManager().getCurrentActivity(); activity.onActivityResult(requestCode, resultCode, data); break; } } } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload