?? pusht.java
字號:
import javax.microedition.midlet.*;import javax.microedition.lcdui.*;import java.util.Date;import javax.microedition.io.*;public class pusht extends MIDlet { Display d; boolean b;//是否完成了選擇自動喚醒功能。 public pusht() { d = Display.getDisplay(this); Form f = new Form("fdsafas"); f.append("fdsafasdfsad"); d.setCurrent(f); } public void startApp() throws MIDletStateChangeException { } public void pauseApp() { } public void destroyApp(boolean unconditional) { setpush(10000); notifyDestroyed(); d = null; } public void setpush( long times) { Date data = new Date(); try { PushRegistry.registerAlarm(this.getClass().getName(), data .getTime()+ times); } catch (ConnectionNotFoundException e) { // TODO 自動生成 catch 塊 e.printStackTrace(); } catch (ClassNotFoundException e) { // TODO 自動生成 catch 塊 e.printStackTrace(); } }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -