Книги автора: Beginning Android
Книга: Beginning Android
Report to the Manager
Report to the Manager
To get at much of the phone API, you use the TelephonyManager
. That class lets you do things like:
• Determine if the phone is in use via getCallState()
, with return values of CALL_STATE_IDLE
(phone not in use), CALL_STATE_RINGING
(call requested but still being connected), and CALL_STATE_OFFHOOK
(call in progress)
• Find out the SIM ID (IMSI) via getSubscriberId()
• Find out the phone type (e.g., GSM) via getPhoneType()
or find out the data connection type (e.g., GPRS, EDGE) via getNetworkType()
Оглавление статьи/книги
Похожие страницы
- 4.4.4 The Dispatcher
- About the author
- Chapter 7. The state machine
- Appendix E. Other resources and links
- Example NAT machine in theory
- The final stage of our NAT machine
- Compiling the user-land applications
- The conntrack entries
- Untracked connections and the raw table
- Basics of the iptables command
- Other debugging tools
- Setting up user specified chains in the filter table