Hi, I am using below code from one of my activity to start another
Intent viewIntent = new Intent (getApplicationContext (), landingPage.class);
Bundle b = new Bundle ();
b.putString ("ApplicationName", a_Bean.getApplicationName ());
if (landingPage.getInstanceCount () < 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 ();
but after startactivity it shows a black screen & then displays new activity. Can I make progressdialog to be shown while the black screen is displayed??