title: BroadcastReceiver not being called?
body: <p>I using a Alarmmanager in the launch activity to execute something in BroadcastReceiver repeatedly, but BroadcastReceiver not being triggered. my code is as follow:</p>
  
  <p>MainActivity.class:</p>
  
  <pre><code>AlarmManager manager = (AlarmManager) getBaseContext().getSystemService(Context.ALARM_SERVICE);
  Intent gpsintent =new Intent(getBaseContext(),gps_sendback_alarm_receiver.class);
  PendingIntent.getService(getBaseContext(), 0, gpsintent, PendingIntent.FLAG_UPDATE_CURRENT);
  Calendar now = Calendar.getInstance();
  manager.setRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP, now.getTimeInMillis(), int_gps_sendback_period, pendingIntent);
  </code></pre>
  
  <p>gps_sendback_alarm_receiver.class:</p>
  
  <pre><code>public void onReceive(Context context, Intent intent) {
  //send back the GPS location
  }
  </code></pre>
  
  <p>manifest:</p>
  
  <pre><code>&lt;application&gt;
  &lt;receiver android:name="com.example.xmobiler.gps_sendback_alarm_receiver" android:enabled="true"/&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p>anybody can help?</p>