Professional Documents
Culture Documents
MOBILE DEVELOP
THE
ANDROID
APPLICAT
ION
APPLICATION
DEVELOPMENT
DFP40093 JTMK | PUO
Topic's 2 Agenda
OBJECTIVES
JTMK|PUO
Telephony
SMS
Telephony
lephony Manager
Te
g Phone Status
Monitorin
Phone state change events including call state (ringing, off hook, etc.),
Cell location changes,
Voic and call-forwarding status,
Phone service changes,
Changes in mobile signal strength.
JTMK|PUO
The Code
LISTEN_DATA_ACTIVITY
LISTEN_SIGNAL_STRENGTHS
JTMK|PUO
SMS Manager
Manages SMS operations such assending data, text, and pdu SMSmessages.
(SmsManager.getDefault()).sendTextMessa
ge("+3585012345", null, “message”, null, null);
JTMK|PUO
ceiving SMS
Re
<receiver android:name=".SmsReceiver">
<intent-‐filter>
<action
android:name="android.provider.Telephony.SMS_RECEIVED"/>
</intent-‐filter>
</receiver>
JTMK|PUO
The Code