Search in sources :

Example 1 with ActivityLogger

use of org.odk.collect.android.database.ActivityLogger in project collect by opendatakit.

the class Collect method initProperties.

public void initProperties() {
    PropertyManager mgr = new PropertyManager(this);
    // Use the server username by default if the metadata username is not defined
    if ((mgr.getSingularProperty(PROPMGR_USERNAME) == null || mgr.getSingularProperty(PROPMGR_USERNAME).isEmpty())) {
        mgr.putProperty(PROPMGR_USERNAME, SCHEME_USERNAME, (String) GeneralSharedPreferences.getInstance().get(KEY_USERNAME));
    }
    FormController.initializeJavaRosa(mgr);
    activityLogger = new ActivityLogger(mgr.getSingularProperty(PropertyManager.PROPMGR_DEVICE_ID));
}
Also used : ActivityLogger(org.odk.collect.android.database.ActivityLogger) PropertyManager(org.odk.collect.android.logic.PropertyManager)

Aggregations

ActivityLogger (org.odk.collect.android.database.ActivityLogger)1 PropertyManager (org.odk.collect.android.logic.PropertyManager)1