Click here to Skip to main content
15,879,326 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
here is my code,
C#
private progressDialog progressdialog=null;

progressdialog=new ProgressDialog(this);
progressdialog.setCancelable(true);
progressdialog.setMessage("Synching....");
progressdialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
progressdialog.setProgress(0);
progressdialog.setMax(100);

progressdialog.show();
final Thread syncThread = new Thread(new Runnable(){
public void run(){
try{
    //Here i calling some functions and do some process
}catch(Exception e){
    e.printStackTrace();
}										
progressdialog.setProgress(100);
progressdialog.dismiss();
}
});
syncThread.start();


Thanks....
Posted
Updated 3-Jan-12 19:50pm
v2
Comments
reza kia 23-Jan-12 10:29am    
@Override
protected void onDestroy() {
// TODO Auto-generated method stub
super.onDestroy();
splashTread.interrupt();
// splashTread.stop();
}

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900