~dhis2-academy/dhis2-academy/android

« back to all changes in this revision

Viewing changes to dhis-mobile/dhis-androidApp/src/org/hisp/dhis/OrgUnitPick.java

  • Committer: Simen Sægrov
  • Date: 2010-11-24 01:19:41 UTC
  • Revision ID: simesae@simesae-barbar-20101124011941-x3zvg907l9lo86wl
The Android app can now authenticate with the server, and also download org units from the server. Note that ipaddress to the server is still hardcoded.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
        
39
39
        //SetsampleData:
40
40
        //Run OrgUnitPick once on your device to give some data to the DB
 
41
        /*
41
42
        mDbHelper.createOrgUnit(1, "SIERA", "NULL");
42
43
        mDbHelper.createOrgUnit(2, "SIERRABla", "1");
43
44
        mDbHelper.createOrgUnit(3, "SIERRABlub", "1");
44
45
        mDbHelper.createOrgUnit(4, "SIERRABlaAUA", "2");
45
46
        mDbHelper.createOrgUnit(5, "SIERRABlaAUALEONE", "4");
46
47
        mDbHelper.createOrgUnit(6, "SIERRABlaAUALEONE2", "4");
47
 
        
 
48
        */
48
49
        fillData();
49
50
        registerForContextMenu(getListView());
50
51