0
我想在30分鐘後刷新BlackBerry應用程序中的內容。BlackBerry上的自動刷新新聞源
我想在30分鐘後刷新BlackBerry應用程序中的內容。BlackBerry上的自動刷新新聞源
如果要更新該屏幕像這樣寫哪個畫面:
public LoadingScreen()//This is constructor
{
createGUI();
callingThread();
}
public void createGUI()
{
//write the all code here;
}
public void callingThread()
{
Thread thread=new Thread()
{
Thread.sleep(3000);
deleteAll();
invalidate();
createGUI();
}
thread.start();
}
這樣你就可以刷新屏幕。這裏「invalidate()」刷新屏幕並且createGui()再次將內容添加到屏幕上;
黑莓是什麼?針對黑莓用戶的本地應用程序? – ilivewithian