2011年06月30日

android開発 IMSI、IMEIの取得

前回から引き続きのメモです。
http://blog.livedoor.jp/hiroki0907/archives/51735248.html

IMSI(サブスクライバ)の取得。前回と同じくTelephonyManagerを使います。

TelephonyManager telephonyManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
String subscriberid = telephonyManager.getSubscriberId();


IMEIの取得。同じくTelephonyManagerを使います。

String deviceid = telephonyManager.getDeviceId();


次はmacアドレスをやります。

hiroki0907 at 00:45トラックバック(0)Google Android  

トラックバックURL

  • ライブドアブログ