title: Consultation abount Reminder to calendar
body: <p>i trying to make reminder for my calendar event.</p>
  
  <p>this is my code for the event.</p>
  
  <pre><code>for (long gg=1;gg&lt;=4;gg++)
              {
                      long calID = gg;
  
                      long startMillis = 0; 
                      long endMillis = 0; 
  
                      Calendar cal = Calendar.getInstance();
                      MyDay = cal.get(Calendar.DAY_OF_MONTH);
                      MyMonth = cal.get(Calendar.MONTH);
                      MyYear = cal.get(Calendar.YEAR);
  
                      MyHoure = cal.get(Calendar.HOUR_OF_DAY);
                      MyMinute =cal.get(Calendar.MINUTE);
  
                      Calendar beginTime = Calendar.getInstance();
                      beginTime.set(MyYear,  MyMonth,  MyDay , MyHoure+1, MyMinute);
                      startMillis = beginTime.getTimeInMillis();
                      Calendar endTime = Calendar.getInstance();
                      endTime.set(MyYear,  MyMonth,  MyDay , MyHoure+1, MyMinute);
                      endMillis = endTime.getTimeInMillis();
  
                      ContentResolver cr = getContentResolver();
                      ContentValues values = new ContentValues();
                      values.put(Events.DTSTART, startMillis);
                      values.put(Events.DTEND, endMillis);
                      values.put(Events.TITLE, "Test Title");
                      values.put(Events.DESCRIPTION, "My Text ....."  );
  
                      values.put(Events.CALENDAR_ID, calID);
                      values.put(Events.EVENT_TIMEZONE, "Israel/tel-aviv");
  
                      try{
                      Uri uri = cr.insert(Events.CONTENT_URI, values);
                      }
                      catch (Exception ex)
                      {
                      }
              }
  </code></pre>
  
  <p>what i need to add to my code for making reminder for 10 minute before the event start ?</p>
  
  <p>i try something like this:</p>
  
  <pre><code> Uri REMINDERS_URI = Uri.parse(getCalendarUriBase(this) + "reminders");
           values = new ContentValues();
           values.put( "event_id", Long.parseLong(event.getLastPathSegment()));
           values.put( "method", 1 );
           values.put( "minutes", 10 );
           cr.insert( REMINDERS_URI, values );
  </code></pre>
  
  <p><strong>But it does not work.</strong></p>
  
  <p>thanks</p>