I am trying to display a dialog in a non-Activity class. Basically, I detect an object in my app, I would like to display a dialog and then switch activities. I\'m getting a \"j
Your Dialog should be called from the UIthread so try to use this,
context.this.runOnUiThread(new Runnable() { @Override public void run() { mDialog.show(); } });
Hope this works.