@Override
    protected void onPreExecute() {
      super.onPreExecute();
      if (username.getText().toString().length() == 0) {
        username.setError("用户名不能为空");
        cancel(true);
      }

      if (password.getText().toString().length() == 0) {
        password.setError("密码不能为空");
        cancel(true);
      }
    }
Esempio n. 2
0
 @Override
 protected void onPreExecute() {
   super.onPreExecute();
   Toast.makeText(getActivity(), getString(R.string.remove_ing), Toast.LENGTH_SHORT).show();
 }
 @Override
 protected void onPreExecute() {
   super.onPreExecute();
   if (isListViewFling()) cancel(true);
 }
 @Override
 protected void onPreExecute() {
   super.onPreExecute();
 }
 @Override
 protected void onPreExecute() {
   super.onPreExecute();
   pullToRefreshListView.setVisibility(View.INVISIBLE);
 }