@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
//		setContentView(R.layout.activity_main);

		credentials = new BCSCredentials(accessKey, secretKey);
		baiduBCS = new BaiduBCS(credentials, host);
		baiduBCS.setDefaultEncoding("UTF-8"); // Default UTF-8
		ExecutorService e = Executors.newCachedThreadPool();
		e.submit(new Runnable() {

			@Override
			public void run() {
				try {
					// listBucket(baiduBCS);
					getBucketPolicy(baiduBCS);
					// createBucket(baiduBCS);
					// deleteBucket(baiduBCS);
					// listObject(baiduBCS);
					// putObjectByFile(baiduBCS);
				} catch (BCSServiceException e) {

				} catch (BCSClientException e) {
					e.printStackTrace();
				}
			}
		});
		// -------------bucket-------------
		// getBucketPolicy(baiduBCS);
		// putBucketPolicyByPolicy(baiduBCS);
		// putBucketPolicyByX_BS_ACL(baiduBCS, X_BS_ACL.PublicControl);
		// listObject(baiduBCS);
		// ------------object-------------
		// putObjectByFile(baiduBCS);
		// putObjectByInputStream(baiduBCS);
		// getObjectWithDestFile(baiduBCS);
		// putSuperfile(baiduBCS);
		// deleteObject(baiduBCS);
		// getObjectMetadata(baiduBCS);
		// setObjectMetadata(baiduBCS);
		// copyObject(baiduBCS, bucket, object + "_copy" +
		// (System.currentTimeMillis()));
		// getObjectPolicy(baiduBCS);
		// putObjectPolicyByPolicy(baiduBCS);
		// putObjectPolicyByX_BS_ACL(baiduBCS, X_BS_ACL.PublicControl);

		// ------------common------------------
		// generateUrl(BaiduBCS baiduBCS);

	}