Android camera intent and get the pic from the camera
<p>i have a question trouble me very long,in my app  i using a built-in  camera, i want to take a pic.if i am only a common activity i can use:</p>

<pre><code> Intent intent = new 
 Intent("android.media.action.IMAGE_CAPTURE");

 startActivityForResult(intent, 0);
</code></pre>

<p>// ...</p>

<pre><code>@Override
public void onActivityResult(int requestCode, int   resultCode, Intent data) {

if (resultCode == Activity.RESULT_OK &amp;&amp; requestCode == 0) {
String result = data.toURI();

 }
}
</code></pre>

<p>because my app have Nested many layer,my takepic activity at one tab of tabactivity of tabactivity.so onActivityResult cannot get any value. so i want to use broadcast to get the pic but in the built-in  camera app,i cannot write code to send broadcast. so my question how to get the pic not use onActivityResult methods.thank you</p>

<p>Edit：solved  <a href="http://stackoverflow.com/questions/4571461/broadcast-receiver-wont-receive-camera-event">broadcast receiver wont receive camera event</a></p>
