mycontext.startActivity(new Intent(mycontext, logoSplash.class)); //this finishis after 3 seconds
initcontrols();
final Timer timerStartAll = new Timer();
timerStartAll.schedule(new TimerTask() {
@Override public void run() {
handler.post(new Runnable() { public void run() {
timerStartAll.cancel();
start();
}});
}
}, 4000, 5000);
function start:
utils.showLoaderDialog("refresh!", "refresh.");
in utils class:
public static ProgressDialog dialog;
public static void showLoaderDialog(String sHead, String sMess) {
dialog =ProgressDialog.show(myActivityStart.mycontext, sHead, sMess, true, true);
}
public static void hideLoaderDialog() {
dialog.dismiss();
}
why cant see the process dialog?