81 lines
2.3 KiB
Plaintext
81 lines
2.3 KiB
Plaintext
Name
|
|
|
|
_RadioSample
|
|
|
|
-----------------------------------------------------------------------------------------------------------------------
|
|
Description
|
|
|
|
This sample code shows how to detect if the radio is off or on,
|
|
how to turn on the radio, how to turn off the radio, how to query the sim card for
|
|
the phone number of the device, how to check if the device has service available
|
|
using the signal level.
|
|
|
|
Features:
|
|
|
|
- How to detect if the radio is off or on.
|
|
- How to turn the radio on.
|
|
- How to turn the radio off.
|
|
- How to query the SIM card for the phone number.
|
|
- How to check if the device has service available using the signal level.
|
|
|
|
-----------------------------------------------------------------------------------------------------------------------
|
|
Builds with
|
|
|
|
This project was built using Palm OS Developer Suite version 1.2.0.23.
|
|
This project also buids with Codewarrior 9 and
|
|
GCC command line (Please use GCC_makefile to build)
|
|
|
|
|
|
|
|
------------------------------------------------------------------------------------------------------------------------
|
|
Devices
|
|
|
|
Should run on all Palm OS devices
|
|
Should not crash on other devices
|
|
|
|
------------------------------------------------------------------------------------------------------------------------
|
|
|
|
Requirements
|
|
|
|
No specific requirements
|
|
|
|
-----------------------------------------------------------------------------------------------------------------------
|
|
Libraries Used
|
|
|
|
Telephony library
|
|
|
|
------------------------------------------------------------------------------------------------------------------------
|
|
How to Run
|
|
|
|
1. Launch the "RadioSample"
|
|
application
|
|
2. Tap on "RadioOff"
|
|
3. Tap on "Get Mobile Info"
|
|
4. Tap on Radio On"
|
|
5. Tap on "Get Mobile Info"
|
|
|
|
Expected Results:
|
|
|
|
3.
|
|
a. The "Radio" field should
|
|
display "Radio is off"
|
|
b. The "Phone #" field
|
|
should display "Unavailable"
|
|
c. The "Signal Level" field
|
|
should display the signal value
|
|
5.
|
|
a. The "Radio" field should
|
|
display "Radio is on"
|
|
b. The "Phone #" field
|
|
should display the correct phone
|
|
number
|
|
c. The "Signal Level" field
|
|
should display the signal value
|
|
|
|
-----------------------------------------------------------------------------------------------------------------------
|
|
|
|
Note
|
|
|
|
----------------------------------------------------------------------------------------------------------------------
|
|
|