]> iEval git - unical.git/blame_incremental - src/ro/ieval/unical/Application.java
AddEvent - creates calendar if it doesn't exist
[unical.git] / src / ro / ieval / unical / Application.java
... / ...
CommitLineData
1package ro.ieval.unical;
2
3import android.database.Cursor;
4
5public 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);
12 if(cur.moveToFirst()) {
13 do {
14 Utils.setAlarm(this, cur.getLong(0), cur.getLong(1));
15 cur.moveToNext();
16 } while(!cur.isAfterLast());
17 }
18 }
19}
This page took 0.019601 seconds and 4 git commands to generate.