title: How to set alarm for every 10 minutes in Android Application?
body: <p>Hai am trying to set alarm for every 10 minutes.But its running first time only any Body kindly help me</p>
  
  <pre><code>Intent intent = new Intent(this, ConnectionReceiver.class);
  
  PendingIntent pendingIntent = PendingIntent.getBroadcast(this, 0,
  intent, PendingIntent.FLAG_ONE_SHOT);
  
  AlarmManager alarmManager = (AlarmManager) getSystemService(ALARM_SERVICE);
  alarmManager.set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis() + (1 * 1000),   pendingIntent);
  Toast.makeText(this, "Alarm set", Toast.LENGTH_LONG).show();//every 10 minutes i want to print the toast
  </code></pre>