title: black screen switching between activity
body: <p>I am using below code from one of my activity to start another</p>
  
  <pre><code>Intent viewIntent = new Intent(getApplicationContext (), landingPage.class);
  Bundle b = new Bundle();
  b.putString("ApplicationName", a_Bean.getApplicationName());
  if (landingPage.getInstanceCount() &lt; 1)
      bp.landingPage_ProgressDialog = ProgressDialog.show(ViewAllApp.this, "Please wait...", "Retrieving data...", true, false);
  viewIntent.putExtras(b);
  viewIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
  startActivityForResult(viewIntent,10);
  Thread background = new Thread(new Runnable() {
      public void run() {
          Progresshandler.sendMessage(handler.obtainMessage());//finishes progressDialog
  }});
  background.start();
  </code></pre>
  
  <p>but after startactivity it shows a black screen &amp; then displays new activity.
  Can I make progressdialog to be shown while the black screen is displayed??</p>