作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我想提出申请。当我首先打开此应用程序时,它会在图像上显示 10 秒,然后自动转到另一个屏幕。
这怎么可能,请帮忙。
最佳答案
为什么你想要 10 秒的闪屏?就这样永远..
但我会通过创建一个像这样的屏幕来做到这一点:
public class SplashScreen extends MainScreen {
public SplashScreen() {
super();
this.setTitle("loading...");
// add you splash screen images or whatever here
final Screen me = this;
new Thread(){
public void run() {
// do something that takes a long time
try { Thread.sleep(10000);} catch (Exception e) {}
synchronized (UiApplication.getEventLock()) {
Screen next = new YourNextScreen(); // replace with your next screen here
UiApplication.getUiApplication().pushScreen(next);
UiApplication.getUiApplication().popScreen(me);
}
}
}.start();
}
}
然后将其从 UiApplcation
类压入堆栈。
关于java - 如何为黑莓 Storm 创建启动画面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7496482/
我是一名优秀的程序员,十分优秀!