mmpp.phone
Class Phone
java.lang.Object
|
+--mmpp.phone.Phone
- public final class Phone
- extends java.lang.Object
Constructor Summary |
Phone()
|
Method Summary |
static int |
getBASEID()
HELP |
static int |
getBASELAT()
현 위치의 위도를 얻는다 |
static int |
getBASELONG()
현 위치의 경도를 얻는다 |
static int |
getNID()
현재 폰이 위치한 지역(zone)의 NID를 넘겨 주는 Method. |
static java.lang.String |
getProperty(java.lang.String key)
key에 해당하는 폰의 property를 돌려준다.
|
static int |
getSID()
HELP |
static void |
invokeWAPBrowser(java.lang.String url)
해당 URL로 단말기 내장 WAP 브라우저를 호출한다. |
static void |
placeCall(java.lang.String phoneNumber)
KVM에서 전화를 건다. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Phone
public Phone()
getProperty
public static java.lang.String getProperty(java.lang.String key)
- key에 해당하는 폰의 property를 돌려준다.
- Parameters:
key
- 폰의 property의 이름.- Returns:
- 폰의 property의 문자열 값 또는 그 key에 해당하는 property가 없을 경우 null.
property key | 문자열 값 |
MIN | 폰 번호 |
cdma.callStatus | 통화중이면 true, 통화대기상태면 false |
phone.RSSILevel | 안테나레벨(예: 2) |
phone.batteryLevel | 밧데리레벨(예: 4) |
phone.LCD.colorDepth | LCD의 color depth값(예: 16) |
phone.LCD.height | LCD의 높이(예: 143) |
phone.LCD.width | LCD의 넓이(예: 120) |
phone.serial1.baudrate | serial port 1의 속도 |
phone.serial2.baudrate | serial port 2의 속도 |
phone.serial1.mode | serial port 1의 mode |
phone.serial2.mode | serial port 1의 mode |
system.compiledDate | VM의 compile된 날짜 |
network.browser.SID | 브라우저의 SID |
network.browser.initialURL | 브라우저의 초기 접속 URL |
placeCall
public static void placeCall(java.lang.String phoneNumber)
- KVM에서 전화를 건다.
- Parameters:
phoneNumber
- 전화를 걸 전화번호(ex: 0191234567)
invokeWAPBrowser
public static void invokeWAPBrowser(java.lang.String url)
- 해당 URL로 단말기 내장 WAP 브라우저를 호출한다. 이때 모든 미들릿은
완전히 종료되면서 WAP 브라우저가 실행된다.
- Parameters:
url
- 접속할 URL
getNID
public static int getNID()
- 현재 폰이 위치한 지역(zone)의 NID를 넘겨 주는 Method.
getSID
public static int getSID()
- HELP
getBASEID
public static int getBASEID()
- HELP
getBASELAT
public static int getBASELAT()
- 현 위치의 위도를 얻는다
- Returns:
- 위도
getBASELONG
public static int getBASELONG()
- 현 위치의 경도를 얻는다
- Returns:
- 경도