package com.martin.simpledevelop.utils.global; /** * @Description 初始设置类. * @File SaAppConfig.java * @Package com.martin.simpledevelop.utils.global * @Date 2015年6月26日上午1:09:51 * @Author Donghongyu 1358506549@qq.com * @Version v1.0.0 */ public class SaAppConfig { /** UI设计的基准宽度. */ public static int UI_WIDTH = 720; /** UI设计的基准高度. */ public static int UI_HEIGHT = 1080; /** 数据库名. */ public static final String DBNAME = "andbase.db"; /** 数据库版本. */ public static final int VERSION = 1; /** 默认 SharePreferences文件名. */ public static String SHARED_PATH = "app_share"; /** 默认下载文件地址. */ public static String DOWNLOAD_ROOT_DIR = "download"; /** 默认下载图片文件地址. */ public static String DOWNLOAD_IMAGE_DIR = "images"; /** 默认下载文件地址. */ public static String DOWNLOAD_FILE_DIR = "files"; /** APP缓存目录. */ public static String CACHE_DIR = "cache"; /** DB目录. */ public static String DB_DIR = "db"; /** 缓存大小 单位10M. */ public static int MAX_CACHE_SIZE_INBYTES = 10 * 1024 * 1024; /** The Constant CONNECTEXCEPTION. */ public static String CONNECT_EXCEPTION = "无法连接到网络"; /** The Constant UNKNOWNHOSTEXCEPTION. */ public static String UNKNOWN_HOST_EXCEPTION = "连接远程地址失败"; /** The Constant SOCKETEXCEPTION. */ public static String SOCKET_EXCEPTION = "网络连接出错,请重试"; /** The Constant SOCKETTIMEOUTEXCEPTION. */ public static String SOCKET_TIMEOUT_EXCEPTION = "连接超时,请重试"; /** The Constant NULLPOINTEREXCEPTION. */ public static String NULL_POINTER_EXCEPTION = "抱歉,远程服务出错了"; /** The Constant NULLMESSAGEEXCEPTION. */ public static String NULL_MESSAGE_EXCEPTION = "抱歉,程序出错了"; /** The Constant CLIENTPROTOCOLEXCEPTION. */ public static String CLIENTP_ROTOCOL_EXCEPTION = "Http请求参数错误"; /** 参数个数不够. */ public static String MISSING_PARAMETERS = "参数没有包含足够的值"; /** The Constant REMOTESERVICEEXCEPTION. */ public static String REMOTE_SERVICE_EXCEPTION = "抱歉,远程服务出错了"; /** 页面未找到. */ public static String NOT_FOUND_EXCEPTION = "页面未找到"; /** 其他异常. */ public static String UNTREATED_EXCEPTION = "未处理的异常"; /** UI设计的密度. */ public static int UI_DENSITY = 2; /** 默认缓存超时时间设置,毫秒. */ public static int IMAGE_CACHE_EXPIRES_TIME = 60 * 10000; /** 磁盘缓存大小 单位10M. */ public static int MAX_DISK_USAGE_INBYTES = 10 * 1024 * 1024; /** The Constant CLIENTPROTOCOLEXCEPTION. */ public static String CLIENT_PROTOCOL_EXCEPTION = "Http请求参数错误"; /** 没有权限访问资源. */ public static String FORBIDDEN_EXCEPTION = "没有权限访问资源"; /** 二维码扫描结果标识 */ public static final String QR_RESULT = "RESULT"; /** 打开二维码扫描标识 */ public static final int QR_REQUESTCODE = 0001; }