]>
Commit | Line | Data |
---|---|---|
57ca4051 MG |
1 | package ro.ieval.unical; |
2 | ||
3 | import android.database.Cursor; | |
4 | ||
5 | public final class Application extends android.app.Application { | |
6 | public AlarmOpenHelper alarmOpenHelper; | |
7 | ||
8 | @Override | |
9 | public void onCreate(){ | |
10 | alarmOpenHelper = new AlarmOpenHelper(this); | |
11 | final Cursor cur = alarmOpenHelper.getReadableDatabase().query(AlarmOpenHelper.TABLE, null, null, null, null, null, null); | |
50bd7c7a MG |
12 | if(cur.moveToFirst()) { |
13 | do { | |
14 | Utils.setAlarm(this, cur.getLong(0), cur.getLong(1)); | |
15 | cur.moveToNext(); | |
16 | } while(!cur.isAfterLast()); | |
17 | } | |
57ca4051 MG |
18 | } |
19 | } |