⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pusht.java

📁 手机的PUSH程序
💻 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 + -