
package com.efounder.chat.app;

import com.efounder.util.AppContext;



/**
 * @author lch
 */
public class ESPApplication extends AppContext {
	@Override
	public void onCreate() {
	/*	if (Constants.Config.DEVELOPER_MODE && Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) {
			StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder().detectAll().penaltyDialog().build());
			StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder().detectAll().penaltyDeath().build());
		}*/

		super.onCreate();
		initFloder();
//		initImageLoader(getApplicationContext());
	}

	private void initFloder() {
//		String filePath = Environment
//				.getExternalStorageDirectory().getPath()
//				+ "/Espmobile/";
//		File file = new File(filePath);
//		if (!file.exists()) {
//			file.mkdirs();
//		}
		
	}

//	public static void initImageLoader(Context context) {
//		// This configuration tuning is custom. You can tune every option, you may tune some of them,
//		// or you can create default configuration by
//		//  ImageLoaderConfiguration.createDefault(this);
//		// method.
//		ImageLoaderConfiguration.Builder config = new ImageLoaderConfiguration.Builder(context);
//		config.threadPriority(Thread.NORM_PRIORITY - 2);
//		config.denyCacheImageMultipleSizesInMemory();
//		config.diskCacheFileNameGenerator(new Md5FileNameGenerator());
//		config.diskCacheSize(50 * 1024 * 1024); // 50 MiB
//		config.discCacheFileCount(60);// 缓存文件的最大个数
//		config.tasksProcessingOrder(QueueProcessingType.LIFO);
//		config.writeDebugLogs(); // Remove for release app
//
//		// Initialize ImageLoader with configuration.
//		ImageLoader.getInstance().init(config.build());
//	}
	
	
}