{"id":1564,"date":"2009-10-06T09:49:20","date_gmt":"2009-10-06T00:49:20","guid":{"rendered":"http:\/\/fukata.org\/?p=1564"},"modified":"2010-05-01T19:29:16","modified_gmt":"2010-05-01T10:29:16","slug":"android-get-serial-number-sim","status":"publish","type":"post","link":"https:\/\/blog.fukata.org\/archives\/1564\/","title":{"rendered":"[Android]SIM\u30ab\u30fc\u30c9\u306e\u30b7\u30ea\u30a2\u30eb\u30ca\u30f3\u30d0\u30fc\u306e\u53d6\u5f97\u65b9\u6cd5"},"content":{"rendered":"
\u73fe\u5728\u3001\u3061\u3087\u3063\u3068Android\u3092\u3044\u3058\u3063\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u30b7\u30ea\u30a2\u30eb\u30ca\u30f3\u30d0\u30fc\u3068\u306a\u308a\u3046\u308b\u5024\u3092\u53d6\u5f97\u3057\u3088\u3046\u3068\u601d\u3044\u3001\u30b0\u30b0\u3063\u3066\u307f\u305f\u3068\u3053\u308d\u3001SIM\u30ab\u30fc\u30c9\u306e\u53d6\u5f97\u65b9\u6cd5\u306f\u3042\u3063\u3055\u308a\u898b\u3064\u304b\u308a\u307e\u3057\u305f\u3002\u4e0b\u8a18\u304c\u3001\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n
\r\nTelephonyManager manager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);\r\nString serialNumber = manager.getSimSerialNumber();\r\n<\/pre>\n\u61f8\u5ff5\u70b9\u3068\u3057\u3066\u306f\u3001SIM\u30ab\u30fc\u30c9\u3092\u642d\u8f09\u3057\u3066\u3044\u306a\u3044\u7aef\u672b\u3067\u306e\u8fd4\u308a\u5024\u3067\u3059\u304b\u306d\u3002\u307e\u3060\u3001\u624b\u5143\u306b\u306fHT-03A\u3057\u304b\u306a\u3044\u306e\u3067\u3001\u5b9f\u969b\u306b\u8a66\u305b\u306a\u3044\u306e\u304c\u6b8b\u5ff5\u3002\u4e00\u5fdc\u3001\u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u3067\u306f\u3001\u30c0\u30df\u30fc\u5024\u306f\u8fd4\u3057\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002\u307e\u3041\u3001\u3053\u306e\u8fba\u306fSDK\u306e\u4e2d\u8eab\u898b\u308c\u3070\u4f55\u3092\u8fd4\u3059\u306e\u304b\u306f\u3063\u304d\u308a\u3059\u308b\u3093\u3067\u3057\u3087\u3046\u3051\u3069\u306d\u3002\u4eca\u306e\u6240\u306f\u3001\u8868\u9762\u7684\u306a\u3053\u3068\u3067\u6b62\u3081\u3066\u304a\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n
\u3061\u306a\u307f\u306b\u3001\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3067\u63a5\u7d9a\u3055\u308c\u3066\u3044\u308b\u30cf\u30fc\u30c9\u306e\u30b7\u30ea\u30a2\u30eb\u30ca\u30f3\u30d0\u30fc\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002\u305f\u3060\u3001\u3053\u306e\u30b7\u30ea\u30a2\u30eb\u30ca\u30f3\u30d0\u30fc\u304c\u3069\u3046\u3044\u3046\u610f\u5473\u306e\u30b7\u30ea\u30a2\u30eb\u30ca\u30f3\u30d0\u30fc\u306a\u306e\u304b\u306f\u5206\u304b\u3089\u306a\u3044\u3067\u3059\u3051\u3069\u3002<\/p>\n
\r\nadb get-serialno\r\n<\/pre>\nSDK\u8abf\u3079\u3066\u307f\u305f\u65b9\u304c\u65e9\u3044\u304b\u306a\u3002\u3002\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
\u73fe\u5728\u3001\u3061\u3087\u3063\u3068Android\u3092\u3044\u3058\u3063\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u30b7\u30ea\u30a2\u30eb\u30ca\u30f3\u30d0\u30fc\u3068\u306a\u308a\u3046\u308b\u5024\u3092\u53d6\u5f97\u3057\u3088\u3046\u3068\u601d\u3044\u3001\u30b0\u30b0\u3063\u3066\u307f\u305f\u3068\u3053\u308d\u3001SIM\u30ab\u30fc\u30c9\u306e\u53d6\u5f97\u65b9\u6cd5\u306f\u3042\u3063\u3055\u308a\u898b\u3064\u304b\u308a\u307e\u3057\u305f\u3002\u4e0b\u8a18\u304c\u3001\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3068\u306a\u308a\u307e\u3059 … \u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":2,"featured_media":9223372036854775807,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1156],"tags":[1085,392],"_links":{"self":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts\/1564"}],"collection":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/comments?post=1564"}],"version-history":[{"count":0,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts\/1564\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/media\/9223372036854775807"}],"wp:attachment":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/media?parent=1564"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/categories?post=1564"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/tags?post=1564"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}