ساعت سخنگو برای فارسی زبانان
| 1 | package ir.hamed.klox; |
| 2 | |
| 3 | import android.content.BroadcastReceiver; |
| 4 | import android.content.Context; |
| 5 | import android.content.Intent; |
| 6 | |
| 7 | public class ReminderReceiver extends BroadcastReceiver { |
| 8 | public static final String EXTRA_SLOT = "reminder_slot"; |
| 9 | |
| 10 | @Override |
| 11 | public void onReceive(Context context, Intent intent) { |
| 12 | int slot = intent != null ? intent.getIntExtra(EXTRA_SLOT, 1) : 1; |
| 13 | ReminderService.start(context, slot); |
| 14 | ReminderManager.schedule(context); |
| 15 | } |
| 16 | } |