コード例 #1
0
 @Override
 protected void onPreExecute() {
   super.onPreExecute();
   SendMsgImg.setVisibility(View.INVISIBLE);
   SendMsgImg.setEnabled(false);
   ProgressB.setVisibility(View.VISIBLE);
 }
コード例 #2
0
 @Override
 protected void onPostExecute(Void result) {
   super.onPostExecute(result);
   ProgressB.setVisibility(View.GONE);
   SendMsgImg.setVisibility(View.VISIBLE);
   SendMsgImg.setEnabled(true);
   Toast.makeText(getBaseContext(), "Отправлено", Toast.LENGTH_SHORT).show();
   edittextMessage.setText("");
   GetAllMessages();
 }