@Override
 protected School doInBackground(String... params) {
   School school1 = null;
   try {
     school1 = Manage.viewSchoolUserIdList(school, qinshi);
   } catch (Exception e) {
     e.printStackTrace();
   }
   return school1;
 }
 @Override
 protected List doInBackground(String... params) {
   data = new ArrayList<>();
   try {
     data = Manage.viewSchoolList();
   } catch (Exception e) {
     e.printStackTrace();
   }
   data2 = data;
   return data;
 }
 @Override
 protected List<String> doInBackground(String... params) {
   String school = params[0];
   List<String> data1 = new ArrayList<>();
   try {
     data1 = Manage.viewQinshiList(school);
   } catch (Exception e) {
     e.printStackTrace();
   }
   return data1;
 }
Esempio n. 4
0
 @Override
 protected User doInBackground(String... params) {
   User user = null;
   try {
     user =
         Manage.login(email.getText().toString().trim(), password.getText().toString().trim());
   } catch (Exception e) {
     e.printStackTrace();
   }
   return user;
 }