How to set multiple alarms in android? Using Sqlite3 or Mysql database
<pre><code>    array= new String[list.size()];
    array=list.toArray(array);
    AlarmManager[] alarmManager=new AlarmManager[24];
    for(int ii=0;ii&lt;array.length;ii++)
    {
       alarmManager[ii] = (AlarmManager) getSystemService(ALARM_SERVICE);                 

      Intent i = new Intent("com.DisplayNotification");

      i.putExtra("NotifID",ii);                                
      PendingIntent displayIntent=PendingIntent.getActivity(getBaseContext(),ii,i,0); 0);  

      alarmManager[ii].set(AlarmManager.RTC_WAKEUP,Long.parseLong(array[ii]), displayIntent);
    }
</code></pre>

<p>In an arrayList I'm getting time values from a database.  But when I run the app it will take the first value, giving Number Format Exception from second values onwards.</p>

<p>Can anybody give the answer?</p>

<p>Thanks in advance....</p>
