title: Issues alarm manager in every 1 min Android?
body: <p>I want to make a service which fire alarm manager in every 1 min interval..But 
   my Alarm run once(first time only).
  I follow  <a href="https://stackoverflow.com/questions/8624270/autostart-application-not-working-properly">Lalit Answer</a></p>
  
  <pre><code>private class Receiver extends BroadcastReceiver{
  
          @Override
          public void onReceive(Context context, Intent intent) {
  
              Toast.makeText(getBaseContext(), "Alarm", Toast.LENGTH_LONG).show();
              NetworkInfo info = intent.getParcelableExtra(ConnectivityManager.EXTRA_NETWORK_INFO); 
              AlarmManager mgr=(AlarmManager)context.getSystemService(Context.ALARM_SERVICE);
              Intent i=new Intent(context, ConnectionReceiver.class);
              PendingIntent pi=PendingIntent.getBroadcast(context, 0, i, 0);
              mgr.setRepeating(AlarmManager.RTC_WAKEUP, System.currentTimeMillis(), 1*60*1000, pi);
          }
  }
  </code></pre>