?? gps.java
字號:
/***************************************************************************** Description: This is the main class in this project. This MIDlet is used to connect to a GPS receiver and use the GPS data to display the speed and other information to the used. The BLUEi GPS whas used during development. This MIDlet is tested on SE K750 and K600 Created By: Oscar Vivall 2005-06-28 @file GPS.java COPYRIGHT All rights reserved Sony Ericsson Mobile Communications AB 2004. The software is the copyrighted work of Sony Ericsson Mobile Communications AB. The use of the software is subject to the terms of the end-user license agreement which accompanies or is included with the software. The software is provided "as is" and Sony Ericsson specifically disclaim any warranty or condition whatsoever regarding merchantability or fitness for a specific purpose, title or non-infringement. No warranty of any kind is made in relation to the condition, suitability, availability, accuracy, reliability, merchantability and/or non-infringement of the software provided herein.*****************************************************************************/import javax.microedition.midlet.*;import javax.microedition.lcdui.*;public class GPS extends javax.microedition.midlet.MIDlet { private Display display; private Canvas canvas; public GPS(){ display = Display.getDisplay(this); canvas = new BTCanvas(this); } public void startGPS(){ GPSCanvas gpsCanvas = new GPSCanvas(this); canvas = null; canvas = gpsCanvas; display.setCurrent(canvas); } public void startApp() { display.setCurrent(canvas); } public void pauseApp() { } public void destroyApp(boolean unconditional) { }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -