1 SplashScreen.java
2 Activator::start调用
SplashScreen.createSplashThread();
if
(SplashScreen.waitForVisibleSplash()) {
// 插入初始化代码:init();
}
// 插入初始化代码:init();
}
super
.postWindowOpen();
SplashScreen.setSplashMessageAndProgressValue( " ok " , 100 );
SplashScreen.terminateSplashThread();
SplashScreen.setSplashMessageAndProgressValue( " ok " , 100 );
SplashScreen.terminateSplashThread();
5 在任何需要更新进度条的地方,例如第3步中的init()方法中调用
SplashScreen.setSplashMessageAndProgressValue(
"message
"
,
60
);
有时间做个小例子放上来。