Android - async task sample
inherit from AsyncTask to create background job easily
private class TicketValidation extends AsyncTask<String, Void, Boolean> {
private ProgressDialog pd;
private String err;
private Integer status;
@Override
protected void onPreExecute() {
pd = ProgressDialog.show(m_context, null,
"Processing, please wait ...");
}
@Override
protected Boolean doInBackground(String... params) {
boolean success = false;
}
@Override
protected void onPostExecute(Boolean isOk) {
pd.dismiss();
}
}