package com.amplitude.api;

public class Constants {
	public static final String EVENT_LOG_URL = "https://api.amplitude.com/";

	public static final String PACKAGE_NAME = Constants.class.getPackage().getName();

	public static final int API_VERSION = 2;

	public static final String DATABASE_NAME = PACKAGE_NAME;
	public static final int DATABASE_VERSION = 1;

	public static final String EVENT_TABLE_NAME = "events";

	public static final String ID_FIELD = "id";
	public static final String EVENT_FIELD = "event";
	public static final String[] TABLE_FIELD_NAMES = { ID_FIELD, EVENT_FIELD };

	public static final int EVENT_UPLOAD_THRESHOLD = 30;
	public static final int EVENT_UPLOAD_MAX_BATCH_SIZE = 100;
	public static final int EVENT_MAX_COUNT = 1000;
	public static final int EVENT_REMOVE_BATCH_SIZE = 20;
	public static final long EVENT_UPLOAD_PERIOD_MILLIS = 30 * 1000; // 30
																		// seconds
	public static final long MIN_TIME_BETWEEN_SESSIONS_MILLIS = 15 * 1000; // 15
																			// seconds
	public static final long SESSION_TIMEOUT_MILLIS = 5 * 60 * 1000; // 5
																		// minutes

	public static final String SHARED_PREFERENCES_NAME_PREFIX = PACKAGE_NAME;
	public static final String PREFKEY_PREVIOUS_SESSION_TIME = PACKAGE_NAME
			+ ".previousSessionTime";
	public static final String PREFKEY_PREVIOUS_SESSION_ID = PACKAGE_NAME + ".previousSessionId";
	public static final String PREFKEY_DEVICE_ID = PACKAGE_NAME + ".deviceId";
	public static final String PREFKEY_USER_ID = PACKAGE_NAME + ".userId";

	public static final String PERMISSION_GET_ACCOUNTS = "android.permission.GET_ACCOUNTS";
	public static final String PERMISSION_READ_PHONE_STATE = "android.permission.READ_PHONE_STATE";
	public static final String PERMISSION_FINE_LOCATION = "android.permission.ACCESS_FINE_LOCATION";
	public static final String PERMISSION_COARSE_LOCATION = "android.permission.ACCESS_COARSE_LOCATION";

}

@@ -879,36 +879,8 @@
 / 30
-%0A%09%09%09%09%09%09%09%09%09%09%09%09%09%09%09%09%09%09// second
 s%0A%09p
@@ -958,37 +958,8 @@
 / 15
-%0A%09%09%09%09%09%09%09%09%09%09%09%09%09%09%09%09%09%09%09// second
 s%0A%09p
@@ -1007,17 +1007,18 @@
 ILLIS = 
-5
+30
  * 60 * 
@@ -1030,38 +1030,11 @@
  // 
-5%0A%09%09%09%09%09%09%09%09%09%09%09%09%09%09%09%09%09%09// minutes
+30m
 %0A%0A%09p

Change session timeout default to 30 minutes