progressdialog not showing up in Android
<p>I am working on a game, and I want to hide my background process using progressdialog. I am using libgdx, and my progressdialog was not showing up. My code is like this,</p>

<pre><code>public class Game2D extends AndroidApplication
{
  ProgressDialog objProgressDialog;
  public void create() {
  Looper.prepare();
  objProgressDialog=new ProgressDialog(context);
  objProgressDialog.setMessage("Loading, PleaseWait...");
  objProgressDialog.show();
}

public void render() {
  objProgressDialog.dismiss();
}
}   
</code></pre>
