How to save AlarmManager events in database?
<p>I am setting some events through AlarmManager. below is the code.</p>

<pre><code>  AlarmManager AM =(AlarmManager)getSystemService(Context.ALARM_SERVICE);
  Intent intent = new Intent();
  intent.setAction(Constants.ALARM_ACTION);
  intent.putExtra(Constants.EXTRA_DATA1, data[0]);
  intent.putExtra(Constants.EXTRA_DATA2, data[1]);
  long selectedTime = Long.parseLong(data[2]);
  PendingIntent pi = PendingIntent.getBroadcast(mContext, 0, intent,0);
  AM.set(AlarmManager.RTC,selectedTime, pi);
</code></pre>

<p>I want to save each event into database. and when user want to see history of events from the app i can show all the events, when if user choose one event i can be able to delete/reset it.</p>
