0
I’m trying to get the button okay appear.
I want to do with AlertDialog
.
That stretch is within a second Trhead
. Help me?
activity.runOnUiThread(new Runnable() {
@Override
public void run() {
mProgressDialog.dismiss();
builder = new AlertDialog.Builder(activity);
// builder.setMessage("Teste ok?")
// .setTitle("TESTE OK?");
// AlertDialog dialog = builder.create();
builder.setPositiveButton("Ok", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
// User clicked OK button
startActivity(new Intent(CadastroActivity.this, MenuActivity.class));
finish();
}
});
dialog = builder.create();
ta missing you put ai dialog.show() after create();
– rodrigo.oliveira