为了正常的体验网站,请在浏览器设置里面开启Javascript功能!

android webserviceandroid电话服务

2018-09-11 1页 doc 12KB 11阅读

用户头像

is_735939

暂无简介

举报
android webserviceandroid电话服务android电话服务Android打电话也是两行代码:  Intent intent = new Intent("android.intent.action.DIAL", Uri.parse("tel:10086") );  startActivity(intent);  这样便进进入呼叫界面了。  接下来我们再看一下监听电话状态的功能。  监听电话状态首先建立一个继承于PhoneStateListener电话监听类(如:TeleListener),并让TelephonyManager监听它。  TelephonyMan...
android webserviceandroid电话服务
android电话服务Android打电话也是两行代码:  Intent intent = new Intent("android.intent.action.DIAL", Uri.parse("tel:10086") );  startActivity(intent);  这样便进进入呼叫界面了。  接下来我们再看一下监听电话状态的功能。  监听电话状态首先建立一个继承于PhoneStateListener电话监听类(如:TeleListener),并让TelephonyManager监听它。  TelephonyManager mTelephonyMgr = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);  mTelephonyMgr.listen(new TeleListener(), PhoneStateListener.LISTEN_CALL_STATE | PhoneStateListener.LISTEN_SERVICE_STATE | PhoneStateListener.LISTEN_SIGNAL_STRENGTH);  TeleListener需要实现父类的几个方法,onCallStateChanged、onServiceStateChanged、onSignalStrengthChanged,根据方法名我们便可知其功能,这里就不再详述。 
/
本文档为【android webserviceandroid电话服务】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。 本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。 网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。

历史搜索

    清空历史搜索