gpt4 book ai didi

java - 如何为黑莓 Storm 创建启动画面

转载 作者:行者123 更新时间:2023-12-01 19:13:53 25 4
gpt4 key购买 nike

我想提出申请。当我首先打开此应用程序时,它会在图像上显示 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com