末音finalis平板电脑怎么插卡。

当前位置:
>>>______ can be seen from his face, my father is quite satisfi..
______ can be seen from his face, my father is quite satisfied with my final scores.A.ThatB.AsC.ItD.Which
题型:单选题难度:中档来源:不详
B考查定语从句。As引导的非限制性定语从句可以放在句首,翻译为:正如…;that不能引导非限制性定语从句。Which引导的非限制性定语从句不能芳在句首。句意:正如从他脸上看到蛾一样,我的父亲对最终的成绩非常满意。
马上分享给同学
据魔方格专家权威分析,试题“______ can be seen from his face, my father is quite satisfi..”主要考查你对&&非限制性定语从句&&等考点的理解。关于这些考点的“档案”如下:
现在没空?点击收藏,以后再看。
因为篇幅有限,只列出部分考点,详细请访问。
非限制性定语从句
非限制性定语从句的概念:
非限制性定语是对被修饰名词或代词的附加说明,它不是必需的,如果去掉,也不会影响句子的意思,它与被修饰名词之间通常用逗号分开。如:The travellers, knowing about the floods, took another road. 游客们知道发了大水,都改道走了。&&&&&&& The boys, wanting to play football, were disappointed when it rained. 那些男孩子想踢足球,因为下雨感到失望。非限制性定语从句用法:
1、引导非限定性定语从句时,只能用which(不用that)。例如:Heat is another form of energy, which is as important as other kinds of energy. &&&&&&&&&&& 热是另一种形式的能量,与其他形式的能量一样重要。&(从句表补充说明,而且关系代词which不能换成that。)   2、引导非限定性定语从句的which可以指代前面的先行词,也可以指前面整个句子的含义。例如:That Peter will marry Alice, which has not been announced yet, has spread around. &&&&&&&&&&& 彼特要娶爱丽斯这件事还没宣布,却已传得沸沸扬扬。(句子中的which指“彼特要娶爱丽斯”这整个句子的意思。)   3、除which外,还可用when,where,who等关系代、副词引导非限定性定语从句。例如:After graduation, I decided to stay in Chongqing, where I spent my childhood and four years of college life.& 毕业后,我决定留在重庆,在那里我曾度过了我的童年和四年大学生活。   &&&&&&&&&&&&&&&&& Albert Einstein left Germany for the United States during World WarII, when Jews were badly treated in Germany.&&第二次世界大战期间,爱因斯坦离开德国去了美国,那时犹太人在德国受到不好的对待。   4、在限定性定语从句中作宾语时,引导词可以省略,但引导非限定性定语从句的关联词不能省。如:He was eager to go to the hospital to see his stepmother, whom he loved and respected as his own mother.& 他急于想去医院看望他的继母,他把他的继母当作亲生母亲一样热爱和尊敬。   &&&& The American journalist(whom/who) the announcer mentioned in the news broadcast is said to have been killed by the gangsters.&播音员在新闻广播中提到的那位美国记者据说已经被匪徒杀害了。   两例中的关系代词都在从句中作宾语。由于第二例是限定性定语从句,可以省略关系代词;第一例中的引导词不能省略,因为它引导的是非限定性定语从句。   5、表示“正如”的含义时,通常用as引导非限定性定语从句,也可用which引导;但置于句首时,只能用as引导。   如:China has basically succeeded in defeating SARS, which/as we have expected. &&&&&&& 正如我们所预料的那样,中国已基本上战胜了“非典”。   && &&&&&&& As is well known to everybody, Tai wan is an inseparable part of China. &&&&&&& 众所周知,台湾是中国不可分割的一部分。   但是当非限定性定语从句是否定含义时,就只能用which(而不用as)引导。如:He didn't win the championship, which I hadn't expected. &&&&&&& 他没获得冠军,这一点是我没预料到的。非限制性定语丛句中as, which的区别:
1、which引导非限制性定语丛句代表前面的整个句子的时候,一般是对主句的结果的说明。&&&&&& 如: He grows too fast, which makes him taller than his classmates. 2、as引导非限制性丛句代表前面整个句子时一般来讲丛句的谓语动词有三种: A. 含有be动词:如:He failed the exam, as is natural. B. 实意动词的被动形式: 如:As is reported, the fire caused a great loss. C.感官动词和意识类动词如:如:see, hear, notice, know, learn, realize 等。&&&&&&&& As you know, I am a teacher. 3、as可翻译为正如,它引导的丛句可位于主句之前,也可位于主句之后;which引导的该丛句只能位于主句之后。例1:__A___he realized, I was very useful to him.&例2:This elephant is like a snake, ___A__anybody can see.&例3:The sun gives us light and heat, __B___makes the plan tgrow well. &&&&&&&&& A. As(as)&&&&&&&&&&B. which&&&&&&&&& C. that&&&&&&&&&&D. who 限定性定语从句与非限定性定语从句的区别:
非限制性定语从句的关系词:
非限定性定语从句的使用规则及注意事项:
1、which引导的非限定性定语从句是用来说明前面整个句子的情况或主句的某一部分。2、在引导限定性定语从句时,that有时相当于in which, at which, for which或at which。其中,介词的选用,依据从句中的动词所需搭配的介词来选用。例句:① Attitudes towards day dreaming are changing in much the same way that(inwhich)attitudes towards night dreaming have changed. &&& 人们对白日做梦的态度正在改变,这与人们对夜间做梦的看法的变化有非常相似之处。② I like the music for the very reason that(for which) he dislike it.&&&&&我出于某种原因喜欢这种音乐,而他恰恰与我相反。③ We arrived the day that(on which) they left. &&& 刚好我们到的那天他们走了。3、as有时也可用作关系代词。4、在非限定性定语从句中,关系词不能用that。
发现相似题
与“______ can be seen from his face, my father is quite satisfi..”考查相似的试题有:
442679194207441330430738181220198694Android提供的系统服务之--TelephonyManager(电话管理器)
TelephonyManager的作用:
用于管理手机通话状态,获取电话信息(设备信息、sim卡信息以及网络信息),
侦听电话状态(呼叫状态服务状态、信号强度状态等)以及可以调用电话拨号器拨打电话!
如何获得TelephonyManager的服务对象:
TelephonyManager tManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
TelephonyManager的相关用法实例:
1.调用拨号器拨打电话号码:
Uri uri=Uri.parse(tel:+电话号码);
Intent intent=new Intent(Intent.ACTION_DIAL,uri);
startActivity(intent);
ps:调用的是的拨号界面哦!
2.获取Sim卡信息与网络信息
运行效果图:(模拟器下获取不了相关信息的哦,这里用的是真机哈!)
代码实现流程:
1.定义了一个存储状态名称的array.xml的数组资源文件;
2.布局定义了一个简单的listview,列表项是两个水平方向的textview
3.Activity界面中调用相关方法获得对应参数的值,再把数据绑定到listview上!
详细代码如下:
array.xml:
网络运营商代号
网络运营商名称
设备当前位置
SIM卡的国别
SIM卡序列号
被NetWork PIN加锁
布局代码如下:
activity_main.xml:
MainActivity.java
package com.jay.example.
import java.util.ArrayL
import java.util.HashM
import java.util.M
import android.app.A
import android.content.C
import android.os.B
import android.telephony.TelephonyM
import android.widget.ListV
import android.widget.SimpleA
public class MainActivity extends Activity {
//定义一个ListView对象,一个代表状态名称的数组,以及手机状态的集合
private ListV
private String[] statusN
private ArrayList statusValues = new ArrayList();
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
showlist = (ListView) findViewById(R.id.statuslist);
//①获得系统提供的TelphonyManager对象的实例
TelephonyManager tManager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
//②获得状态名词的数组,Sim卡状态的数组,电话网络类型的数组
//就是获得array.xml中的对应数组名的值
statusNames = getResources().getStringArray(R.array.statusNames);
String[] simState = getResources().getStringArray(R.array.simState);
String[] phoneType = getResources().getStringArray(R.array.phoneType);
//③按照array.xml中的顺序,调用对应的方法,将相应的值保存到集合里
statusValues.add(tManager.getDeviceId());
//获得设备编号
//获取系统平台的版本
statusValues.add(tManager.getDeviceSoftwareVersion()
!= null? tManager.getDeviceSoftwareVersion():未知);
statusValues.add(tManager.getNetworkOperator());
//获得网络运营商代号
statusValues.add(tManager.getNetworkOperatorName()); //获得网络运营商的名称
statusValues.add(phoneType[tManager.getPhoneType()]); //获得手机的网络类型
// 获取设备所在位置
statusValues.add(tManager.getCellLocation() != null ? tManager
.getCellLocation().toString() : 未知位置);
statusValues.add(tManager.getSimCountryIso());
// 获取SIM卡的国别
statusValues.add(tManager.getSimSerialNumber());
// 获取SIM卡序列号
statusValues.add(simState[tManager.getSimState()]); // 获取SIM卡状态
//④遍历状态的集合,把状态名与对应的状态添加到集合中
ArrayList<map& status =
new ArrayList<map&();
for (int i = 0; i & statusValues.size(); i++)
HashMap map = new HashMap();
map.put(name, statusNames[i]);
map.put(value, statusValues.get(i));
status.add(map);
//⑤使用SimpleAdapter封装List数据
SimpleAdapter adapter = new SimpleAdapter(this, status,
R.layout.line, new String[] { name, value }
, new int[] { R.id.name, R.id.value });
// 为ListView设置Adapter
showlist.setAdapter(adapter);
</map</map
最后别忘了,往Manifest.xml文件中添加下述权限哦!
3.监听手机的所有来电:
对于监听到的通话记录结果,你可以采取不同的方式获取到,这里用到的是把通话记录写入到文件中,
而你也可以以短信的形式发送给你,或者是上传到某个平台,当然如果通信记录不多的话还可以用短信
多了的话就很容易给人发现的了!
另外,这里用的是Activity而非Service,就是说要打开这个Activity,才可以进行监听,通常我们的需求都是
要偷偷滴在后台跑的,因为时间关系就不写Service的了,大家自己写写吧,让Service随开机一起启动即可!
很简单,其实就是重写TelephonyManager的一个通话状态监听器PhoneStateListener
然后调用TelephonyManager.listen()的方法进行监听,当来电的时候,
程序就会将来电号码记录到文件中
MainActivity.java:
package com.jay.PhoneM
import java.io.FileNotFoundE
import java.io.OutputS
import java.io.PrintS
import android.app.A
import android.content.C
import android.os.B
import android.telephony.PhoneStateL
import android.telephony.TelephonyM
import java.util.D
public class MainActivity extends Activity
TelephonyManager tM
public void onCreate(Bundle savedInstanceState)
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
// 取得TelephonyManager对象
tManager = (TelephonyManager)
getSystemService(Context.TELEPHONY_SERVICE);
// 创建一个通话状态监听器
PhoneStateListener listener = new PhoneStateListener()
public void onCallStateChanged(int state, String number)
switch (state)
// 无任何状态
case TelephonyManager.CALL_STATE_IDLE:
case TelephonyManager.CALL_STATE_OFFHOOK:
// 来电铃响时
case TelephonyManager.CALL_STATE_RINGING:
OutputStream os =
os = openFileOutput(phoneList, MODE_APPEND);
catch (FileNotFoundException e)
e.printStackTrace();
PrintStream ps = new PrintStream(os);
// 将来电号码记录到文件中
ps.println(new Date() +
来电: + number);
ps.close();
super.onCallStateChanged(state, number);
// 监听电话通话状态的改变
tManager.listen(listener, PhoneStateListener.LISTEN_CALL_STATE);
当然还需要在AndroidManifest.xml中添加下面的权限:
注意!要让这个程序位于前台哦!用另一个电话拨打该电话,接着就可以在DDMS的file Explorer的应用
对应包名的files目录下看到phoneList的文件了,我们可以将他导出到电脑中打开,文件的大概内容如下:
THR Oct 30 12:05:48 GMT 2014 来电: 137xxxxxxx
4.黑名单来电自动挂断:
所谓的黑名单就是将一些电话号码添加到一个集合中,当手机接收到这些电话的时候就直接挂断!
但是Android并没有给我们提供挂断电话的API,于是乎我们需要通过AIDL来调用服务中的API来
实现挂断电话!
于是乎第一步要做的就是把android中的下面两个文件复制到src下的相应位置,他们分别是:
com.android.internal.telephony包下的ITelephony.
android.telephony包下的NeighboringCellInfo.
要创建对应的包哦!就是要把aidl文件放到上面的包下!!!
接着只需要调用ITelephony的endCall即可挂断电话!
这里给出的是简单的单个号码的拦截,输入号码,点击屏蔽按钮后,如果此时屏蔽的电话呼入的话;
直接会挂断,代码还是比较简单的,下面粘一下,因为用的模拟器是Genymotion,所以就不演示
程序运行后的截图了!
MainActivity.java:
package com.jay.example.
import java.lang.reflect.M
import com.android.internal.telephony.IT
import android.app.A
import android.os.B
import android.os.IB
import android.telephony.PhoneStateL
import android.telephony.TelephonyM
import android.view.V
import android.view.View.OnClickL
import android.widget.B
import android.widget.EditT
public class MainActivity extends Activity {
private TelephonyManager tM
private PhoneStateListener pL
private EditT
public class PhonecallListener extends PhoneStateListener
public void onCallStateChanged(int state, String incomingNumber) {
switch(state)
case TelephonyManager.CALL_STATE_IDLE:
case TelephonyManager.CALL_STATE_OFFHOOK:
//当有电话拨入时
case TelephonyManager.CALL_STATE_RINGING:
if(isBlock(incomingNumber))
Method method = Class.forName(android.os.ServiceManager)
.getMethod(getService, String.class);
// 获取远程TELEPHONY_SERVICE的IBinder对象的代理
IBinder binder = (IBinder) method.invoke(null,
new Object[] { TELEPHONY_SERVICE });
// 将IBinder对象的代理转换为ITelephony对象
ITelephony telephony = ITelephony.Stub.asInterface(binder);
// 挂断电话
telephony.endCall();
}catch(Exception e){e.printStackTrace();}
super.onCallStateChanged(state, incomingNumber);
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
locknum = (EditText) findViewById(R.id.locknum);
btnlock = (Button) findViewById(R.id.btnlock);
//获取系统的TelephonyManager管理器
tManager = (TelephonyManager) getSystemService(TELEPHONY_SERVICE);
pListener = new PhoneStateListener();
tManager.listen(pListener, PhoneStateListener.LISTEN_CALL_STATE);
btnlock.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
number = locknum.getText().toString();
public boolean isBlock(String phone)
if(phone.equals(number))
另外还需要添加下述的权限:
当然,更多的时候我们屏蔽的不会只是一个号码,这个时候可以使用集合,把多个要屏蔽的号码添加到
集合中,或者是文件中,这里就直接给出李刚老师的demo,他提供的是一个带复选框的列表供用户
勾选黑名单,这里就不解析了,直接给出代码下载吧!
单个号码拦截的demo:点击下载
李刚老师的列表黑名单拦截demo:点击下载
TelephonyManager的相关属性与方法:
ACTION_PHONE_
STATE_CHANGED
Broadcast intent action indicating that the call state (cellular)
on the device has changed.
CALL_STATE_IDLE
Device call state: No activity.
空闲(无呼入或已挂机)
CALL_STATE_OFFHOOK
Device call state: Off-hook.
摘机(有呼入)
CALL_STATE_RINGING
Device call state: Ringing.
响铃(接听中)
DATA_ACTIVITY_DORMANT
Data connection is active, but physical link is down
电话数据活动状态类型:睡眠模式(3.1版本)
DATA_ACTIVITY_IN
Data connection activity: Currently receiving IP PPP traffic.
电话数据活动状态类型:数据流入
DATA_ACTIVITY_INOUT
Data connection activity: Currently both sending and receiving
IP PPP traffic.电话数据活动状态类型:数据交互
DATA_ACTIVITY_NONE
Data connection activity: No traffic.
电话数据活动状态类型:无数据流动
DATA_ACTIVITY_OUT
Data connection activity: Currently sending IP PPP traffic.
电话数据活动状态类型:数据流出
DATA_CONNECTED
Data connection state: Connected.
数据连接状态类型:已连接
DATA_CONNECTING
Data connection state: Currently setting up a data connection.
数据连接状态类型:正在连接
DATA_DISCONNECTED
Data connection state: Disconnected.
数据连接状态类型:断开
DATA_SUSPENDED
Data connection state: Suspended.
数据连接状态类型:已暂停
EXTRA_INCOMING_NUMBER
The lookup key used with the ACTION_PHONE_STATE_CHANGED
broadcast for a String containing the incoming phone number.
EXTRA_STATE
The lookup key used with the ACTION_PHONE_STATE_CHANGED
broadcast for a String containing the new call state.
NETWORK_TYPE_1xRTT
Current network is 1xRTT
NETWORK_TYPE_CDMA
Current network is CDMA: Either IS95A or IS95B
NETWORK_TYPE_EDGE
Current network is EDGE
NETWORK_TYPE_EHRPD
Current network is eHRPD
NETWORK_TYPE_EVDO_0
Current network is EVDO revision 0
NETWORK_TYPE_EVDO_A
Current network is EVDO revision A
NETWORK_TYPE_EVDO_B
Current network is EVDO revision B
NETWORK_TYPE_GPRS
Current network is GPRS
NETWORK_TYPE_HSDPA
Current network is HSDPA
NETWORK_TYPE_HSPA
Current network is HSPA
NETWORK_TYPE_HSPAP
Current network is HSPA+
NETWORK_TYPE_HSUPA
Current network is HSUPA
NETWORK_TYPE_IDEN
Current network is iDen
NETWORK_TYPE_LTE
Current network is LTE
NETWORK_TYPE_UMTS
Current network is UMTS
NETWORK_TYPE_UNKNOWN
Network type is unknown
PHONE_TYPE_CDMA
Phone radio is CDMA.
PHONE_TYPE_GSM
Phone radio is GSM.
PHONE_TYPE_NONE
No phone radio.
PHONE_TYPE_SIP
Phone is via SIP.
SIM_STATE_ABSENT
SIM card state: no SIM card is available in the device
SIM_STATE_NETWORK_LOCKED
SIM card state: Locked: requries a network PIN to unlock
SIM_STATE_PIN_REQUIRED
SIM card state: Locked: requires the user&#39;s SIM PIN to unlock
SIM_STATE_PUK_REQUIRED
SIM card state: Locked: requires the user&#39;s SIM PUK to unlock
SIM_STATE_READY
SIM card state: Ready
SIM_STATE_UNKNOWN
SIM card state: Unknown.
public static final String
EXTRA_STATE_IDLE
Value used with EXTRA_STATE corresponding to CALL_STATE_IDLE.
public static final String
EXTRA_STATE_OFFHOOK
Value used with EXTRA_STATE corresponding to CALL_STATE_OFFHOOK.
public static final String
EXTRA_STATE_RINGING
Value used with EXTRA_STATE corresponding to CALL_STATE_RINGING.
Public Methods
getCallState()
Returns a constant indicating the call state (cellular) on the device.
CellLocation
getCellLocation()
Returns the current location of the device.
getDataActivity()
Returns a constant indicating the type of activity on a data connection (cellular).
处理侦测到的数据活动的改变事件。通过该函数,可以获取数据活动状态信息。
电话数据活动状态类型定义在TelephoneyManager类中。
DATA_ACTIVITY_NONE 无数据流动
DATA_ACTIVITY_IN 数据流入
DATA_ACTIVITY_OUT 数据流出
DATA_ACTIVITY_INOUT 数据交互
DATA_ACTIVITY_DORMANT 睡眠模式(2.1版本)
getDataState()
Returns a constant indicating the current data connection state (cellular).
getDeviceId()
Returns the unique device ID, for example, the IMEI for GSM and the MEID or ESN for C DMA phones.获取设备标识(IMEI)
getDeviceSoftwareVersion()
Returns the software version number for the device, for example, the IMEI/SV for GSM p hones.获得软件版本
getLine1Number()
Returns the phone number string for line 1, for example, the MSISDN for a GSM phone.
线路1的电话号码
getNeighboringCellInfo()
Returns the neighboring cell information of the device.
getNetworkCountryIso()
Returns the ISO country code equivalent of the current registered operator&#39;s MCC (Mobile
Country Code).获取网络的国家ISO代码
getNetworkOperator()
Returns the numeric name (MCC+MNC) of current registered operator.
获取SIM移动国家代码(MCC)和移动网络代码(MNC)
getNetworkOperatorName()
Returns the alphabetic name of current registered operator.
获取服务提供商姓名(中国移动、中国联通等)
getNetworkType()
Returns a constant indicating the radio technology (network type) currently in use on the device for data transmission.
获取网络类型
NETWORK_TYPE_UNKNOWN 未知网络
NETWORK_TYPE_GPRS
NETWORK_TYPE_EDGE 通用分组无线服务(2.5G)
NETWORK_TYPE_UMTS 全球移动通信系统(3G)
NETWORK_TYPE_HSDPA
NETWORK_TYPE_HSUPA
NETWORK_TYPE_HSPA
NETWORK_TYPE_CDMA CDMA网络(2.1版本)
NETWORK_TYPE_EVDO_0 CDMA2000 EV-DO版本0(2.1版本)
NETWORK_TYPE_EVDO_A CDMA2000 EV-DO版本A(2.1版本)
NETWORK_TYPE_EVDO_B CDMA2000 EV-DO版本B(2.1版本)
NETWORK_TYPE_1xRTT CDMA2000 1xRTT(2.1版本)
NETWORK_TYPE_IDEN
NETWORK_TYPE_LTE
NETWORK_TYPE_EHRPD
NETWORK_TYPE_HSPAP
getPhoneType()
Returns a constant indicating the device phone type.
PHONE_TYPE_NONE 未知
PHONE_TYPE_GSM GSM手机
PHONE_TYPE_CDMA CDMA手机(2.1版本)
PHONE_TYPE_SIP via SIP手机
getSimCountryIso()
Returns the ISO country code equivalent for the SIM provider&#39;s country code.
获取SIM卡中国家ISO代码
getSimOperator()
Returns the MCC+MNC (mobile country code + mobile network code) of the provider of the SIM.获 得SIM卡中移动国家代码(MCC)和移动网络代码(MNC)
getSimOperatorName()
Returns the Service Provider Name (SPN).
获取服务提供商姓名(中国移动、中国联通等)
getSimSerialNumber()
Returns the serial number of the SIM, if applicable.
SIM卡序列号
getSimState()
Returns a constant indicating the state of the device SIM card.
SIM_STATE_UNKNOWN   未知状态
SIM_STATE_ABSENT   未插卡
SIM_STATE_PIN_REQUIRED   需要PIN码,需要SIM卡PIN码解锁
SIM_STATE_PUK_REQUIRED  需要PUK码,需要SIM卡PUK码解锁
SIM_STATE_NETWORK_LOCKED 网络被锁定,需要网络PIN解锁
SIM_STATE_READY   准备就绪
其中:PIN个人识别码 PUK个人解锁码
getSubscriberId()
Returns the unique subscriber ID, for example, the IMSI for a GSM phone.
获得客户标识(IMSI)
getVoiceMailAlphaTag()
Retrieves the alphabetic identifier associated with the voice mail number.
getVoiceMailNumber()
Returns the voice mail number.
hasIccCard()
isNetworkRoaming()
Returns true if the device is considered roaming on the current network, for GSM purposes.
listen(PhoneStateListener listener, int events)
Registers a listener object to receive notification of changes in specified telephony states.
侦听电话的呼叫状态。电话管理服务接口支持的侦听类型在PhoneStateListener类中定义。
PhoneStateListener类
LISTEN_CALL_FORWARDING_INDICATOR
Listen for changes to the call-forwarding indicator.
侦听呼叫转移指示器改变事件
LISTEN_CALL_STATE
Listen for changes to the device call state.
侦听呼叫状态改变事件
LISTEN_CELL_LOCATION
Listen for changes to the device&#39;s cell location. Note that this will result in
frequent callbacks to the listener.侦听设备位置改变事件
LISTEN_DATA_ACTIVITY
Listen for changes to the direction of data traffic on the data connection
(cellular).侦听数据连接的流向改变事件
LISTEN_DATA_CONNECTION_STATE
Listen for changes to the data connection state (cellular).
侦听数据连接状态改变事件
LISTEN_MESSAGE_WAITING_INDICATOR
Listen for changes to the message-waiting indicator.
侦听消息等待指示器改变事件
LISTEN_NONE
Stop listening for updates.
LISTEN_SERVICE_STATE
Listen for changes to the network service state (cellular).
侦听网络服务状态
LISTEN_SIGNAL_STRENGTH
This constant is deprecated. by LISTEN_SIGNAL_STRENGTHS
侦听网络信号强度
LISTEN_SIGNAL_STRENGTHS
Listen for changes to the network signal strengths (cellular).
Public Constructors
PhoneStateListener()
Public Methods
onCallForwardingIndicatorChanged(boolean cfi)
Callback invoked when the call-forwarding indicator changes.
onCallStateChanged(int state, String incomingNumber)
Callback invoked when device call state changes.
处理侦测到的电话呼叫状态的改变事件。通过该回调事件,可以获取来电号码,
而且可以获取电话呼叫状态。即用switch(state){case TelephoneManager.CALL_STATE_&&}来判断
onCellLocationChanged(CellLocation location)
Callback invoked when device cell location changes.
onDataActivity(int direction)
Callback invoked when data activity state changes.
onDataConnectionStateChanged(int state)
Callback invoked when connection state changes.
onDataConnectionStateChanged(int state, int networkType)
same as above, but with the network type.
处理侦测到的数据连接状态的改变状态。通过该回调函数,
可以获取数据连接状态信息。
数据连接类型
DATA_DISCONNECTED 断开
DATA_CONNECTING 正在连接
DATA_CONNECTED 已连接
DATA_SUSPENDED 已暂停
onMessageWaitingIndicatorChanged(boolean mwi)
Callback invoked when the message-waiting indicator changes.
onServiceStateChanged(ServiceState serviceState)
Callback invoked when device service state changes.
处理侦测到的服务状态的改变事件。通过该回调函数可以获取服务状态信息。
电话服务状态类型定义在ServiceState类中。
onSignalStrengthChanged(int asu)
This method is deprecated. Use onSignalStrengthsChanged(SignalStrength)
处理侦测到的信号强度的改变事件。通过该回调函数,可以获取信号强度类型。
onSignalStrengthsChanged(SignalStrength signalStrength)
Callback invoked when network signal strengths changes.

我要回帖

更多关于 末音平板电脑是传销吗 的文章

 

随机推荐