public boolean dataSyncEnabled() { // Log.d("study url", AppPreferences.schema.aware_study_url); if (AppPreferences.schema.aware_study_url != null && Aware.getSetting(NotificationService.getContext(), Aware.STUDY_ID).length() > 0) { // Log.d("settings", "joined study"); Aware.joinStudy(NotificationService.getContext(), AppPreferences.schema.aware_study_url); } return (Aware.getSetting(NotificationService.getContext(), Aware.STUDY_ID).length() > 0); }