Android Open Source - SurveySDK_android Constant Data






From Project

Back to project page SurveySDK_android.

License

The source code is released under:

Apache License

If you think the Android project SurveySDK_android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.survey.android.util;
//from  w w  w. j a v a2 s  . c  o m
import android.os.Environment;
import android.text.format.DateUtils;

public class ConstantData {

    // *********************** white label constants *****************************************
  public static final WhiteLabel WHITE_LABEL_APP = WhiteLabel.SURVEY;
    // ****************************************************************************************    
    
  // *********************** question type constants ***************************************
  public static final Object RESPONSE_TYPE_AUDIO = "audio";
  public static final String RESPONSE_TYPE_FREE_TEXT = "free_text";
  public static final String RESPONSE_TYPE_OPEN_ENDED_TEXT = "open_ended_text";
  public static final String RESPONSE_TYPE_RATING_SCALE = "rating_scale";
  public static final String RESPONSE_TYPE_SINGLE_SELECT = "single_select";
  public static final String RESPONSE_TYPE_MULTIPLE_SELECT = "multiple_select";
  public static final String RESPONSE_TYPE_PHOTO = "photo";
  public static final String RESPONSE_TYPE_VIDEO = "video";
  public static final String RESPONSE_TYPE_NUMERIC_INTEGER = "integer";
  public static final String RESPONSE_TYPE_NUMERIC_DECIMAL = "decimal";
  public static final String RESPONSE_TYPE_READ_ONLY="readonly";
  public static final String RESPONSE_TYPE_RATING_SCALE_LABELED="rating_scale_with_labels";
  public static final String RESPONSE_TYPE_COMPLETED = "completed";
  public static final String RESPONSE_TYPE_FINISHED = "finished";
  public static final String RESPONSE_TYPE_DISQUALIFIED = "disqualified";
  public static final String RESPONSE_TYPE_NULL_SECTION = "empty";
  public static final String RESPONSE_TYPE_CONNECTION_FAILED = "connection_failed";
  public static final String RESPONSE_TYPE_UPLOADING_FAILED = "uploading failed";
  public static final String RESPONSE_TYPE_INCOMPLETE = "incomplete";
  // ****************************************************************************************

  public static final int MB = 1024;
  public static final int MAX_TIME = 1000 * 60 * 10; // 10 mins in milliseconds
  public static final int MAX_NUMBER_ATTEMPTS_FOR_UPLOAD = 5;
  public static final int SECOND = 1000; // 1000ms
  public static final int HALF_MINUTE = 30000; // 30s=30000ms
  public static final int FIVE_SECONDS = 5000;
  public static final int MAX_NUM_GEOTRIGGERS = 100;
  public static final long GEO_POLL_CHECK_INTERVAL = 1000 * 60 * 10; // 10 mins in milliseconds  
  public static final long GEO_POLL_SERVICE_INTERVAL = 1000 * 60 * 20; // 20 mins in milliseconds
  public static final long PUSH_CHECK_INTERVAL = 1000 * 60 * 30; // 30 mins in milliseconds
  public static final long LOCATIONLOG_INTERVAL = 1000 * 60 * 10; // 10 mins in milliseconds
  
  public static final long GEOFENCE_EXPIRATION_IN_HOURS = 12;
  public static final long GEOFENCE_EXPIRATION_IN_MILLISECONDS =
            GEOFENCE_EXPIRATION_IN_HOURS * DateUtils.HOUR_IN_MILLIS;  

  public final static int SINGLE_PHOTO_REQUEST = 1337;
  public final static int GALLERY_PHOTO_REQUEST = 1338;
  public final static int VIDEO_REQUEST = 1339;
  public final static int EMAIL_REQUEST = 1340;
  
  public static final String IMAGE_FOLDER_ROOT = Environment.getExternalStorageDirectory() + "/SurveyImages/";
  public static final String VIDEO_FOLDER_ROOT = Environment.getExternalStorageDirectory()+ "/SurveyVideos/";
  public static final String DEFAULT_IMAGE_URI="";
  
  public static final String INTERNAL_STORAGE_FOLDER_NAME = "capturedPhotos";

  public static final String CERTSTORE_KEY = Toiler.Keyphrase_Decrypt(com.survey.surveydata.SecureData.CERTSTORE_KEY);
  // ******************** GCM **************************************************************
  public static final int PENDINGINTENT_REQUEST_CODE = 192837;
  
  // ******************** S3 ********************************************************************
  public static final String ACCESS_KEY_ID = Toiler.Keyphrase_Decrypt(com.survey.surveydata.SecureData.ACCESS_KEY_ID);
  public static final String SECRET_KEY = Toiler.Keyphrase_Decrypt(com.survey.surveydata.SecureData.SECRET_KEY);
  public static final String BUCKET = Toiler.Keyphrase_Decrypt(com.survey.surveydata.SecureData.BUCKET);
  public static String getPictureBucket() {
    return Toiler.Keyphrase_Decrypt(com.survey.surveydata.SecureData.BUCKET) + ".s3";
  }
  
  public static final String TAG = "AndroidWidgetSample";
  public static final String INTENT_EXTRA_WIDGET_TEXT = "INTENT_EXTRA_WIDGET TEXT";
  public static final String ACTION_WIDGET_UPDATE_FROM_ACTIVITY = "ACTION_WIDGET_UPDATE_FROM_ACTIVITY";
  public static final String ACTION_WIDGET_UPDATE_FROM_ALARM = "ACTION_WIDGET_UPDATE_FROM_ALARM";
  public static final String ACTION_WIDGET_UPDATE_FROM_WIDGET = "ACTION_WIDGET_UPDATE_FROM_WIDGET";
  public static final String ALARM_STATUS = "ALARM_STATUS";
  // *********************************************************************************************

  public static final String AUDIO_QUESTION_FILE_EXTENSION = "amr";
  public static final String AUDIO_QUESTION_CONTENT_TYPE = "audio/amr";
  
  public static final String PUBLIC_KEY = Toiler.Keyphrase_Decrypt(com.survey.surveydata.SecureData.SYMMETRIC_KEY);
  public static final String SALT = "afacf@!92de&0a69^1694a";  
}




Java Source Code List

android.UnusedStub.java
com.google.android.gms.BuildConfig.java
com.google.android.gms.BuildConfig.java
com.survey.android.UnusedStub.java
com.survey.android.c2dm.C2DMRegistrationReceiver.java
com.survey.android.c2dm.C2DMTokenRefresher.java
com.survey.android.c2dm.GcmBroadcastReceiver.java
com.survey.android.c2dm.GcmNotificationReceiver.java
com.survey.android.c2dm.GcmRegistrationService.java
com.survey.android.c2dm.RegService.java
com.survey.android.common.PlacesAutoCompleteAdapter.java
com.survey.android.common.Themes.java
com.survey.android.containers.AppContainer.java
com.survey.android.containers.PollContainer.java
com.survey.android.custom_widgets.FontTextView.java
com.survey.android.custom_widgets.PollRatingsScaleLabeled.java
com.survey.android.custom_widgets.PollRatings.java
com.survey.android.custom_widgets.PollSelectionTable.java
com.survey.android.db.SerializationHelper.java
com.survey.android.db.SerializationManager.java
com.survey.android.fragment.AudioRecorderFragment.java
com.survey.android.geofence.GeofenceRemover.java
com.survey.android.geofence.GeofenceRequester.java
com.survey.android.geofence.GeofenceUtils.java
com.survey.android.geofence.LocationServiceErrorMessages.java
com.survey.android.geofence.ReceiveTransitionsIntentService.java
com.survey.android.geofence.SimpleGeofenceStore.java
com.survey.android.geofence.SimpleGeofence.java
com.survey.android.model.AnswerModel.java
com.survey.android.model.CategoryModel.java
com.survey.android.model.CurrentSectionModel.java
com.survey.android.model.Prefs.java
com.survey.android.model.QuestionModel.java
com.survey.android.model.ResponseModel.java
com.survey.android.model.SurveyModel.java
com.survey.android.model.UserModel.java
com.survey.android.services.BackgroundUploader.java
com.survey.android.services.DataBroadcastReceiver.java
com.survey.android.services.DeviceStartUpReceiver.java
com.survey.android.services.GeoSurveyPollService.java
com.survey.android.services.LocationTesterService.java
com.survey.android.services.ReferrerCatcher.java
com.survey.android.session.Configuration.java
com.survey.android.session.Session.java
com.survey.android.util.Base64.java
com.survey.android.util.ConstantData.java
com.survey.android.util.GeoPush.java
com.survey.android.util.GeoTriggerBroadcastReceiver.java
com.survey.android.util.GeoTrigger.java
com.survey.android.util.LocationLog.java
com.survey.android.util.Log.java
com.survey.android.util.StrToIntMap.java
com.survey.android.util.StrToStrMap.java
com.survey.android.util.Toiler.java
com.survey.android.util.WhiteLabel.java
com.survey.android.view.Dashboard.java
com.survey.android.view.Gallery.java
com.survey.android.view.LocalizedFragmentActivity.java
com.survey.android.view.Main.java
com.survey.android.view.Notification.java
com.survey.android.view.Question.java
com.survey.android.view.Survey.java
com.survey.android.view.ThemeCustomizer.java
com.survey.android.view.themed.DashboardThemed.java
com.survey.android.view.themed.MainThemed.java
com.survey.android.view.themed.NotificationThemed.java
com.survey.android.view.themed.QuestionThemed.java
com.survey.android.view.themed.SurveyThemed.java
com.survey.android.webclient.HttpRequest.java
com.survey.android.webclient.HttpsClient.java
com.survey.android.webclient.RestClient.java
com.survey.android.webclient.SurveyHttpClient.java
com.survey.android.webclient.SurveyRequest.java
com.survey.android.webclient.SurveySSLSocketFactory.java
com.survey.android.webclient.SurveyX509TrustManager.java
com.survey.android.widget.Widget.java
com.survey.androiddemo.AppContainer.java
com.survey.androiddemo.LoginActivity.java
com.survey.androiddemo.MainActivity.java
com.survey.androiddemo.SDKConfigSettings.java