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));
}
Aggregations