title: Working repeating alarmmanager doesn't work, receiver doesn't start
body: <pre><code>public void schedule()
  {
      Long time = new GregorianCalendar().getTimeInMillis()+10*1000;
      Intent intent = new Intent(getActivity(), AlarmReceiver.class);
      AlarmManager alarmManager = (AlarmManager) getActivity().getSystemService(Context.ALARM_SERVICE);
      alarmManager.setInexactRepeating(AlarmManager.RTC_WAKEUP, time, 10*1000, PendingIntent.getBroadcast(getActivity(), 1,  intent, PendingIntent.FLAG_UPDATE_CURRENT));
  }
  </code></pre>
  
  <p>Above this is my method in a Fragment. Also tried in Activity. Weirdly this code works on an empty test project. The problem as I've seen here is that the last part, <code>alarmManager.setInexactRepeating()</code> does not start the <code>AlarmReceiver.class</code> at all. </p>
  
  <p>What am I doing wrong here?</p>
  
  <p>my Manifest file:</p>
  
  <pre><code>    &lt;receiver android:name=".AlarmReceiver"/&gt; 
      &lt;uses-permission android:name="com.android.alarm.permission.SET_ALARM"/&gt;
  </code></pre>
  
  <p>also my receiver:</p>
  
  <pre><code>public class AlarmReceiver extends BroadcastReceiver {
      @Override
      public void onReceive(Context context, Intent intent){
          Toast.makeText(context, "Alarm Triggered and SMS Sent", Toast.LENGTH_LONG).show();
      }
  }
  </code></pre>