Adding Camera Intent to AlarmManager
<p>I want to setup AlarmManager that it will take a picture every hour.</p>

<p>So many standard get started AlarmManager examples that usually setup a BroadcastReceiver such as</p>

<pre><code>public class MyAlarmReceiver extends BroadcastReceiver { 
 @Override
 public void onReceive(Context context, Intent intent) {
     Toast.makeText(context, "Alarm went off", Toast.LENGTH_SHORT).show();
 }
</code></pre>

<p>}</p>

<p>Is there a way to add the camera intent inside the BroadcastReciever. For instance is won't take the command startActivityForResult()</p>

<p>Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(intent, 0);</p>