Android: Alarm Manager
<p>this is the code</p>

<pre><code>public void startAlarm(Context context) {
    Intent intent = new Intent(context, SyncService.class);
    PendingIntent sender = PendingIntent.getService(context, 0, intent, 0);

    AlarmManager am = (AlarmManager) getSystemService(ALARM_SERVICE);
        am.setRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP,
                10 min, 20 min, sender);

}
</code></pre>

<p>This is my method where i start my alarm...I use it in my main activity in onCreate method...What if i change something in settings, and I want to change a time of Repeating ? How to do that ? I should kill that one and start new one ?</p>
