android:black screen switching between activity
Posted
by
100rabh
on Stack Overflow
See other posts from Stack Overflow
or by 100rabh
Published on 2010-09-13T09:03:51Z
Indexed on
2010/12/29
4:54 UTC
Read the original article
Hit count: 264
android
|progressdialog
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??
© Stack Overflow or respective owner