developer.Android.com:PhoneStateListener :onServiceStateChanged(ServiceState serviceState)
2015-02-09 14:35
453 查看
转载自:http://developer.android.com/reference/android/telephony/PhoneStateListener.html#onServiceStateChanged(android.telephony.ServiceState)
A listener class for monitoring changes in specific telephony states on the device, including service state, signal strength, message waiting indicator (voicemail), and others.
Override the methods for the state that you wish to receive updates for, and pass your PhoneStateListener object, along with bitwise-or of the LISTEN_ flags to
Note that access to some telephony information is permission-protected. Your application won't receive updates for protected information unless it has the appropriate permissions declared in its manifest file. Where permissions apply, they are noted in the
appropriate LISTEN_ flags.
A listener class for monitoring changes in specific telephony states on the device, including service state, signal strength, message waiting indicator (voicemail), and others.
Override the methods for the state that you wish to receive updates for, and pass your PhoneStateListener object, along with bitwise-or of the LISTEN_ flags to
TelephonyManager.listen().
Note that access to some telephony information is permission-protected. Your application won't receive updates for protected information unless it has the appropriate permissions declared in its manifest file. Where permissions apply, they are noted in the
appropriate LISTEN_ flags.
void | onServiceStateChanged(ServiceState serviceState)Callback invoked when device service state changes. |
相关文章推荐
- 举例说明在android中用PhoneStateListener监听手机电话状态与用发送邮件来通知来电电话的号码
- android-PhoneStateListener
- android 电话状态的监听(来电和去电) PhoneStateListener和TelephonyManager
- Android基于AudioManager、PhoneStateListener实现设置黑名单功能
- 举例说明如何在android中实现设置黑名单的功能--AudioManager、PhoneStateListener的使用
- how to open developer options on some Android Phones
- android PhoneStateListener 内存泄露的问题
- Android 中文API (32) —— TimePicker.OnTimeChangedListener
- Android DatePicker OnDateChangedListener不回调(onDateChanged不回调)
- Android 利用PhoneStatelistener 判断网络是否连接
- 应用获得Android Phone ServiceState的方法
- 通过PhoneStateListener实现Android电话监听
- android 你的onfocuschangelistener和android:state_hovered为何不起作用
- android之通过phoneStateListener监听电话状态改变
- Android: On EditText Changed Listener
- Android service onstartcomand 返回值
- Android应用开发之PhoneStateListener 的使用
- 创建一个BoundService——翻译总结自developer.android.com
- android之通过phoneStateListener监听电话状态改变
- Android 中文API (32) —— TimePicker.OnTimeChangedListener