Книга: 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()

Оглавление книги

Оглавление статьи/книги

Генерация: 1.296. Запросов К БД/Cache: 3 / 1
поделиться
Вверх Вниз