📄 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 + -