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

📄 btmidlet.java

📁 《开发Nokia S40应用程序》源码(8-10章) 《开发Nokia S40应用程序》源码(8-10章)
💻 JAVA
字号:
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;

public class BTMidlet extends MIDlet implements CommandListener
{
	public static BTMidlet m_midlet;
	private static Display m_display;

	public BTConnection m_btconn;

	public BTMidlet()
	{
	}

	protected void startApp() throws MIDletStateChangeException {
		m_midlet = this; //save for getMidlet()
		if (m_display == null) {
			m_display = Display.getDisplay(this);
//			m_display.setCurrent(m_canvas);
		}
		if (m_btconn == null) {
			m_btconn = new BTConnection();
			m_btconn.init();
			m_btconn.find();
		}
	}

	protected void pauseApp() {
	}

	protected void destroyApp(boolean unconditional) throws MIDletStateChangeException {
	}

	public void exit() {
		try {
			destroyApp(true);
		}
		catch (Exception e) {
		}
		notifyDestroyed();
		m_midlet = null;
		m_display = null;
	}

	public void commandAction(Command c, Displayable d)
	{
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -