Display Progress Dialog during navigation

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Display Progress Dialog during navigation

Postby Jeevanantham143 » Fri Feb 05, 2010 11:26 am

Can somebody upload a sample code to display a progress dialog, when we navigate between the activities.
Jeeva
Jeevanantham143
Freshman
Freshman
 
Posts: 7
Joined: Thu Feb 04, 2010 12:51 pm

Top

Postby Jeevanantham143 » Tue Feb 09, 2010 11:04 am

I have found answer for my question...

Using thread we can display a progress dialog

Code :

new Thread(){
public void run(){
try{
sleep(1500);
}catch(Exception e){
dialog.dismiss();
e.printStackTrace();
}
dialog.dismiss();
// Your work...
}
}.start();
Jeeva
Jeevanantham143
Freshman
Freshman
 
Posts: 7
Joined: Thu Feb 04, 2010 12:51 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 6 guests