private class SendMsgTask extends AsyncTask String String String priva

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
private class SendMsgTask extends AsyncTask<String, String, String> {
private String msg;
private String message;
@Override
protected String doInBackground(String... params) {
try {
msg = editText.getText().toString();
message = api.sendMessage(0L, 28, msg, "", "", null, null, "", "", "", "");
} catch (Exception e) {
e.printStackTrace();
}
return null;
}
@Override
protected void onPostExecute(String s) {
editText.setText("");
refreshUpdates(2, account.user_id, Integer.parseInt(message), msg, "", false, false, 0, 0, 0, "");
super.onPostExecute(s);
}
}