---
title: "android之获取信息终端"
author: "fonter"
date: "2009-09-22T18:17:56Z"
tags: []
slug: "android"
draft: false
lastmod: "2009-09-22T21:03:59Z"
id: 474521
url: "https://fonter.iteye.com/blog/474521"
---

获取SIM卡提供国家代码（ISO）

 

```
TelephonyManager telManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
telManager.getSimCountryIso();
```

 

SIM卡的序列号

```
TelephonyManager telManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
telManager.getSimSerialNumber();
```

获取其他信息以此类推 

AndroidManifest.xml必须以下设置

```
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
```

 

推荐：

[android之显示Log](http://fonter.iteye.com/blog/474535)

[androd之绘制文本（FontMetrics）](http://fonter.iteye.com/blog/474526)

[android之获取信息终端](http://fonter.iteye.com/blog/474521)

[iWidsets 发布1.8.1版本(20090920)](http://fonter.iteye.com/blog/472509)

[java多线程设计wait/notify机制 (synchronized与对象锁)](http://fonter.iteye.com/blog/453224)

[android下的创建和读取资源文件](http://fonter.iteye.com/blog/474584)