我正在使用 toast insideonPostExecute(Boolean result)
方法。这是它的代码
@Override
protected void onPostExecute(Boolean result) {
//objAdapter = new listAdapter(ReadContactsActivity.this, items);
//listView.setAdapter(objAdapter);
dialog.dismiss();
if(result)
Toast.makeText(this, "Email was sent successfully.", Toast.LENGTH_LONG).show();
else
Toast.makeText(this, "Email was not sent.", Toast.LENGTH_LONG).show();
}
}
我收到错误“ makeText(Context, CharSequence, int)
Toast 类型中的方法不适用于参数 (Class<ReadContactsActivity>, String, int)
”