Android TelephonyManager类的使用
TelephonyManager可以获取手机的相关信息和状态。下面介绍这个类的常用方法: 新建一个项目,修改main布局文件: XML/HTML代码 <?xmlversion="1.0"encoding="utf-8"?> <LinearLayoutxmlns:android="http://schema...android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical"> <ListView android:id="@+id/listView" android:layout_width="fill_parent" android:layout_height="fill_parent"> </ListView> </LinearLayout> 定义一个字符串数组,方便调用。在res目录中的values目录创建一个array.xml文件: XM...