@Override
  protected void onResume() {
    // TODO Auto-generated method stub
    super.onResume();
    String host = PersistenceManager.getInstance(LoginActivity.this).getHostIp();
    String port = PersistenceManager.getInstance(LoginActivity.this).getHostPort();
    if (host != null && port != null && !host.equals("") && !port.equals("")) {
      HTTPConstant.HOST_URL_NO_SPRIT = "http://" + host + ":" + port;
      HTTPConstant.HOST_URL = HTTPConstant.HOST_URL_NO_SPRIT + "/";
      System.out.println("Ip被设置为:" + HTTPConstant.HOST_URL + "--" + HTTPConstant.HOST_URL_NO_SPRIT);
      HTTPConstant.resetValues();
    }

    // else {
    // HTTPConstant.HOST_URL = null;
    // HTTPConstant.HOST_URL_NO_SPRIT = null;
    // }
  }
 @Override
 protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.activity_login);
   initView();
 }