title: Alarm Manager Not Working... android.app.ReceiverRestrictedContext
body: <p>I want to invoke a method of an object from user defined class for a particular interval of time for say 2 hours. The input parameter is a Context object.</p>
  
  <p>I have used AlarmReceiver Broadcast Receiver which I registered in manifest</p>
  
  <pre><code>&lt;receiver android:name=".AlarmReceiver" android:process=":remote"&gt;&lt;/receiver&gt;
  </code></pre>
  
  <p>I am trying to start alarm manager through a Broadcast Receiver when a particular activity occurs. For receiving the alarm broadcasts I have created alarmReceiver. Do I need any kind of intent-filter for receiving alarm intents???</p>
  
  <p>My problem is I want the application context inside alarmreceiver, I tried using the context of onReceive method of AlarmReceiver but it throws</p>
  
  <pre><code>    android.app.ReceiverRestrictedContext
  </code></pre>
  
  <p>error.</p>
  
  <p>Any solution for this error? If needed I will publish my full code...</p>