private void loginAndSaveCookie(){
		HttpPost loginpost = new HttpPost(loginUrl);
        List<NameValuePair> params = null;
		try {
			 String html = this.GetPageContent(loginUrl);
			params = getFormParams(html,"htsdeploy@gmail.com","hsbc123456");
		} catch (UnsupportedEncodingException e2) {
			e2.printStackTrace();
		} catch (Exception e) {
			e.printStackTrace();
		}
//        params.add(new BasicNameValuePair("Email", "select.zhenyu.from@gmail.com"));   
//        params.add(new BasicNameValuePair("Passwd", "scholes616"));   
//        params.add(new BasicNameValuePair("PersistentCookie", "yes"));
//        params.add(new BasicNameValuePair("service", "googleplay"));
//        params.add(new BasicNameValuePair("continue", "https://play.google.com/store"));
     // add header
		
        loginpost.setHeader("Host", "accounts.google.com");
        loginpost.setHeader("User-Agent", USER_AGENT);
        loginpost.setHeader("Accept", 
             "text/html,application/xhtml+xml,application/xml;q=0.9,*;q=0.8");
        loginpost.setHeader("Accept-Language", "en-US,en;q=0.5");
        loginpost.setHeader("Cookie", getCookies());
        loginpost.setHeader("Connection", "keep-alive");
        loginpost.setHeader("Referer", "https://accounts.google.com/ServiceLoginAuth");
        loginpost.setHeader("Content-Type", "application/x-www-form-urlencoded");
        try {   
        	loginpost.setEntity(new UrlEncodedFormEntity(params));   
        	HttpResponse hr = httpClient.execute(loginpost);
        	System.out.println(hr);
        } catch (UnsupportedEncodingException e1) {  
            e1.printStackTrace();   
        } catch (ClientProtocolException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} finally{
			loginpost.releaseConnection();
		}
	}