I use following code:
public class Settings extends Activity implements OnClickListener { private Activity activity; private AlertDialog.Builder bui
I have this issue and maybe this answer can help someone.
I was running the code to show the AlertDialog on a non-ui thread. After using:
runOnUiThread(new Runnable() { @Override public void run() { ShowAlert(); } });
the AlertDialog worked.