{"id":12265,"date":"2015-05-25T10:56:07","date_gmt":"2015-05-25T01:56:07","guid":{"rendered":"http:\/\/35.247.82.29\/wpbl\/?p=12265"},"modified":"2021-06-03T05:48:30","modified_gmt":"2021-06-02T20:48:30","slug":"android%e3%83%87%e3%83%90%e3%82%a4%e3%82%b9id%e3%81%ae%e5%8f%96%e5%be%97","status":"publish","type":"post","link":"https:\/\/mole-kingdom.com\/wpbl\/2015\/05\/25\/12265.html","title":{"rendered":"Android:\u30c7\u30d0\u30a4\u30b9ID\u306e\u53d6\u5f97"},"content":{"rendered":"<p>\u53d6\u308a\u6562\u3048\u305anexus9\u3067\u8d77\u52d5\u3057\u305f\u30a2\u30d7\u30ea\u3092\u898b\u3066\u3042\u308b\u3053\u3068\u306b\u6c17\u3065\u3044\u305f\u3002\u3068\u3044\u3046\u304b\u601d\u3044\u51fa\u3057\u305f\u3002<br \/>\n\u78ba\u304bLolipop\u3060\u3068deviceId\u3092LogCat\u304b\u3089\u898b\u3064\u3051\u3089\u308c\u306a\u3044\u304b\u3089\u3001testDvice\u306b\u8ffd\u52a0\u3059\u308b<br \/>\n\u65b9\u6cd5\u304c\u308f\u304b\u3089\u306a\u304b\u3063\u305f\u3093\u3060\u3063\u305f\u3002\u307e\u3042\u3069\u3046\u305b1000\u56de\u8868\u793a\u3057\u305f\u3068\u3057\u3066\u30821\u5186\u3060\u3057\u3001\u5e74\u306b\u4e00\u56de\u3001<br \/>\n\u6700\u4f4e\u632f\u8fbc\u91d1\u984d\u306b\u5230\u9054\u3059\u308c\u3070\u826f\u3044\u65b9\u306a\u306e\u3067\u4f59\u308a\u6c17\u306b\u3057\u306a\u304f\u3066\u3082\u3044\u3044\u3088\u3046\u306a\u6c17\u304c\u3057\u306a\u3044\u3067\u3082<br \/>\n\u306a\u3044\u304c\u3001\u4f59\u8a08\u306a\u4e8b\u3067\u6012\u3089\u308c\u308b\u306e\u3082\u5acc\u306a\u306e\u3067\u6539\u3081\u3066\u3050\u3050\u308b\u3002<\/p>\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/4524752\/how-can-i-get-device-id-for-admob\" target=\"_blank\" rel=\"noopener\">android - How can I get device ID for Admob<\/a>\u306b\u3042\u3063\u305f\u3001md5()\u30e1\u30bd\u30c3\u30c9\u3092\u5229\u7528\u3059\u308b\u65b9\u6cd5\u3067<br \/>\nnexus9\u306edeviceId\u3092\u53d6\u5f97\u51fa\u6765\u305f\u307f\u305f\u3044\u3060\u3063\u305f\u306e\u3067\u3001\u65e9\u901faddTestDevice()\u306bid\u3092\u8ffd\u52a0\u3059\u308b\u3002<br \/>\n\u30c6\u30b9\u30c8\u7528\u306e\u30d0\u30ca\u30fc\u306b\u306a\u3063\u305f\u3002\u3072\u3083\u3063\u307b\u3044\u30fd( \uff65\u2200\uff65)\uff89 <span class=\"f_s\">\u2190\u6b53\u559c\u3059\u308b\u4ffa\u6c0f\u3002<\/span><\/p>\n<p>\u8fd4\u3059\u5200\u3067\u3001<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\nString deviceId = md5(android_id).toUpperCase();\n        mAdRequest.addTestDevice(deviceId);\n<\/pre>\n<p>\u307f\u305f\u3044\u306b\u524d\u3082\u3063\u3066\u53d6\u5f97\u3057\u305fid\u3092addTestDevice()\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u52d5\u7684\u306bdeviceId\u3092<br \/>\n\u53d6\u5f97\u3057\u3066addTestDevice()\u3057\u3066\u307f\u308b\u3002\u30c6\u30b9\u30c8\u7528\u306e\u30d0\u30ca\u30fc\u306b\u306a\u3063\u305f\u3002<br \/>\n\u3072\u3085\u30fc\u3072\u3085\u30fc\u3060\u3088 \u3072\u3085\u30fc\u3072\u3085\u30fc\u304b\u304d\u30fc\u3093(\u30fb\u2200\u30fb)<br \/>\n<span class=\"f_s\">\u2191\u6b53\u559c\u306e\u4f59\u308a\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u3053\u3068\u3092\u8a00\u3044\u51fa\u3059\u4ffa\u6c0f\u3002\u5e74\u9f62\u304c\u304b\u306a\u308a\u3044\u3063\u3066\u308b\u3053\u3068\u304c\u5206\u304b\u308b\u3002<\/span><\/p>\n<p>sol25\u3067\u8a66\u3059\u3002<br \/>\n\u3000<br \/>\n\u3000<br \/>\n \u3000<br \/>\n\u3000<br \/>\n\u3000<br \/>\n<span class=\"f_l\">\u3042\u308c(\u00b4\uff65\u03c9\uff65\uff40)\uff1f<\/span><br \/>\n\u30c6\u30b9\u30c8\u7528\u30d0\u30ca\u30fc\u304c\u8868\u793a\u3055\u308c\u305a\u3001\u5b9f\u969b\u306e\u5e83\u544a\u304c\u2026<br \/>\n\u30ad\u30e3\u30c3\u30b7\u30e5\u3068\u304b\u3055\u308c\u3066\u308b\u306e\u3060\u308d\u3046\u304b\u3068\u4f55\u5ea6\u304b\u8a66\u3057\u305f\u304c\u3001\u4e8b\u614b\u306f\u5909\u308f\u3089\u305a\u3002<br \/>\nnexus9\u3067\u518d\u3073\u8a66\u3059\u3068\u30c6\u30b9\u30c8\u7528\u30d0\u30ca\u30fc\u304c(\u30fb\u2200\u30fb)<br \/>\nsol25\u3067\u518d\u3073\u8a66\u3059\u3068\u5b9f\u969b\u306e\u5e83\u544a\u304c(\u00b4\uff65\u03c9\uff65\uff40)<\/p>\n<p>\u3053\u3053\u30674.0.x\u3092\u8f09\u305b\u3066\u3044\u308bnovo7\u3067\u3082\u8a66\u3059\u3002<br \/>\n\u3000<br \/>\n\u3000<br \/>\n \u3000<br \/>\n\u3000<br \/>\n\u3000<br \/>\n<span class=\"f_l\">\u3084\u3063\u3071\u308a\u5b9f\u969b\u306e\u5e83\u544a\u304c\u2026\uff3f|\uffe3|\u25cb<\/span><\/p>\n<p>\u3082\u3057\u304b\u3057\u3066\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306emd5\u7b97\u51fa\u90e8\u5206\u304c\u9593\u9055\u3048\u3066\u308b\u3093\u3058\u3083\u306a\u3044\u306e(\u30fb\u2200\u30fb)\uff1f\u3068<br \/>\n\u5931\u793c\u306a\u7591\u5ff5\u3092\u62b1\u304d\u3001\u8272\u3005\u3068\u3050\u3050\u308b\u3002\u3044\u304f\u3064\u304b\u306e\u30b5\u30a4\u30c8\u3092\u773a\u3081\u3066\u307f\u305f\u304c<br \/>\n\u3000<br \/>\n\u3000<br \/>\n \u3000<br \/>\n\u3000<br \/>\n\u3000<br \/>\n<span class=\"f_l\">\u3088\u304f\u308f\u304b\u3089\u306a\u3044(\u30fb\u2200\u30fb)<\/span><\/p>\n<hr width=\"90%\">\n<p>\u4ed5\u65b9\u304c\u306a\u3044\u306e\u3067\u53d6\u308a\u6562\u3048\u305a\u3001\u7b97\u51fa\u3055\u308c\u305fdeviceId\u3092\u30b3\u30d4\u30da\u3057\u3066\u307f\u308b\u3002<\/p>\n<pre>\n84D38FF70AB5889E8FB12E44734AFE08\n<\/pre>\n<p>\u7279\u306b\u304a\u304b\u3057\u306a\u3068\u3053\u308d\u3082\u898b\u5f53\u305f\u3089\u306a\u3044<\/p>\n<p>LogCat\u3067\u53d6\u5f97\u6e08\u307f\u306eid\u306f<\/p>\n<pre>\n84D38FF7AB5889E8FB12E44734AFE8\n<\/pre>\n<p>\u306a\u306e\u3067\u540c\u4e00\u304b\u2026<br \/>\n\u3000<br \/>\n\u3000<br \/>\n \u3000<br \/>\n\u3000<br \/>\n\u3000<br \/>\n<span class=\"f_l\">\u3044\u3084\u3001\u3061\u3087\u3063\u3068\u5f85\u3066(\uff1b\uff65\u00b4\u03c9\uff65\uff40)<\/span><\/p>\n<pre>\n84D38FF70AB5889E8FB12E44734AFE08\n84D38FF7AB5889E8FB12E44734AFE8\n<\/pre>\n<p>\u4e26\u3079\u3066\u307f\u3066\u6c17\u3065\u3044\u305f\u304c\u3001\u3061\u3087\u3063\u3068\u9577\u3044\u305e\u3002\u306a\u3093\u304b0\u304c2\u3064\u591a\u3044\u3002<br \/>\n\u306a\u3093\u304b\u306e\u6cd5\u5247\u30670\u304c2\u3064\u3064\u3044\u3066\u304a\u304b\u3057\u304f\u306a\u308b\u306b\u9055\u3044\u306a\u3044(\uff40\u30fb\u03c9\u30fb\u00b4)<br \/>\n<b><span class=\"kincha\">\u2191\u5b9f\u306f\u3053\u306e\u6642\u3001\u5927\u304d\u3044\u52d8\u9055\u3044\u3092\u3057\u3066\u308b\u4ffa\u6c0f\u30020\u4ed8\u52a0\u3055\u308c\u3066\u3044\u308b\u306e\u304c\u6b63\u3057\u3044\u5024\u3067\u3001<br \/>\nLogCat\u304b\u3089\u53d6\u5f97\u3057\u305f\u5024\u3002\u7121\u3044\u65b9\u304cmd5()\u30e1\u30bd\u30c3\u30c9\u3067\u53d6\u5f97\u3057\u305f\u5024\u3002<br \/>\n\u8272\u3005\u8abf\u3079\u3066\u308b\u3046\u3061\u306b2\u3064\u306e\u5024\u3092\u53d6\u308a\u9055\u3048\u305f\u307f\u305f\u3044(\uff89\u2200`)<\/span><\/b><\/p>\n<p>\u540d\u63a2\u5075\u4ffa\u6c0f\u3001\u305d\u306e\u78ba\u8a3c\u3092\u5f97\u308b\u70ba\u306bnovo7\u306edeviceId\u3092\u53d6\u5f97\u3057\u3066\u6bd4\u8f03\u3002<\/p>\n<pre>\n2F5820181984FD634C5344329B170C1\n2f58201819840fd634c5344329b170c1\n<\/pre>\n<p><span class=\"f_l\">\u3042\u308c\u30010\u304c\u4e00\u3064\u591a\u3044\u3060\u3051\u3060\u306d(\u00b4\uff65\u03c9\uff65\uff40)<\/span><\/p>\n<hr width=\"90%\">\n<p>\u307e\u3042\u4f55\u306b\u3057\u3066\u3082\u304a\u304b\u3057\u3044\u306e\u3067\u3050\u3050\u308a\u518d\u958b\u3002<br \/>\n\u53d6\u308a\u6562\u3048\u305amd5\u5909\u63db\u306b\u7a2e\u985e\u304c\u3042\u308b\u306e\u3060\u308d\u3046\u304b\u3068\u3050\u3050\u3063\u305f\u304c\u305d\u3093\u306a\u3053\u3068\u306f\u306a\u3044\u6a21\u69d8\u3002<br \/>\nphp\u7b49\u3067md5\u5909\u63db\u3092\u3057\u3066\u304f\u308c\u308b\u30da\u30fc\u30b8\u306a\u3069\u3067\u8a66\u3057\u3066\u307f\u305f\u304c\u3001md5()\u3067\u7b97\u51fa\u3055\u308c\u308b\u5024\u3068\u540c\u3058\u3002<\/p>\n<p>Android4\u7cfb\u4ee5\u524d\u3068lolipop\u4ee5\u964d\u306e\u5dee\u306a\u3093\u3060\u308d\u3046\u304b\u3068\u3082\u8003\u3048\u305f\u304clolipop\u642d\u8f09\u7aef\u672b\u306f\u4e00\u53f0\u3057\u304b<br \/>\n\u6301\u3063\u3066\u3044\u306a\u3044\u306e\u3067\u305d\u306e\u8aac\u3092\u691c\u8a3c\u3059\u308b\u3059\u3079\u304c\u306a\u3044\u3002\u3046\u30fc\u3093\u3068\u601d\u3044\u306a\u304c\u3089\u5024\u3092\u773a\u3081\u305f\u308a\u3001<br \/>\nmd5\u5909\u63db\u306e\u30b3\u30fc\u30c9\u304c\u8f09\u3063\u3066\u3044\u308b\u30da\u30fc\u30b8\u3092\u8aad\u3093\u3067\u3044\u3066\u3001\u3075\u3068\u3042\u308b\u90e8\u5206\u306b\u76ee\u304c\u884c\u304f\u3002<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\n\/\/MD5\u3000\u30cf\u30c3\u30b7\u30e5\u95a2\u6570&lt;br \/&gt;\n    private static String hashByte2MD5(byte &#x5B;]hash) {&lt;br \/&gt;\n        StringBuffer hexString = new StringBuffer();&lt;br \/&gt;\n        for (int i = 0; i &amp;lt; hash.length; i++) {&lt;br \/&gt;\n            if ((0xff &amp;amp; hash&#x5B;i]) &amp;lt; 0x10) {&lt;br \/&gt;\n                hexString.append(&amp;quot;0&amp;quot; + Integer.toHexString((0xFF &amp;amp; hash&#x5B;i])));&lt;br \/&gt;\n            } else {&lt;br \/&gt;\n                hexString.append(Integer.toHexString(0xFF &amp;amp; hash&#x5B;i]));&lt;br \/&gt;\n            }&lt;br \/&gt;\n        }\n\n&lt;pre&gt;&lt;code&gt;    return hexString.toString();  \n}  \n&lt;\/code&gt;&lt;\/pre&gt;\n\n<\/pre>\n<p>\u306e<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\n if ((0xff &amp;amp; hash&#x5B;i]) &amp;lt; 0x10) {&lt;br \/&gt;\n                hexString.append(&amp;quot;0&amp;quot; + Integer.toHexString((0xFF &amp;amp; hash&#x5B;i])));&lt;br \/&gt;\n<\/pre>\n<p>\u306e\u90e8\u5206\u3060\u3002<\/p>\n<p>\u305d\u3046\u8a00\u3048\u3070\u4f59\u5206\u306a\u6587\u5b57\u306f\u201d0\u201d\u3060\u30fd(`\u0414\u00b4)\uff89\uff01<br \/>\n\u3064\u307e\u308a10\u4ee5\u4e0b\u306e\u5024\u306e\u6642\u306f\u7d50\u679c\u304c\u4e8c\u6841\u306b\u306a\u308b\u3088\u3046\u306b\u201d0\u201d\u3092\u4ed8\u52a0\u3057\u3066\u308b\u3093\u3058\u3083\u306a\u3044\u304b(\u3000\uff65\u00b4\u03c9\uff65\uff40)\uff1f<br \/>\n\u2191\u201d0x\u201d\u304c\u3064\u3044\u3066\u308b\u306e\u3067\u6b63\u78ba\u306b\u306f<span class=\"kincha\">15<\/span>\u4ee5\u4e0b\u3067\u3059\u3002\u3057\u304b\u3082\u305d\u3046\u601d\u3046\u306b\u3057\u3066\u308210\u3058\u3083\u306a\u304f\u3066<span class=\"kincha\">9<\/span>\u4ee5\u4e0b\u3067\u3059\u3002<\/p>\n<p>\u3088\u3063\u3057\u3083\u3068\u601d\u3044messageDigest\u306e\u5024\u3092\u898b\u308b\u3002<br \/>\n-124, -45, -113, -9, <span class=\"kincha\">10<\/span>, -75, -120, -98, -113, -79, 46, 68, 115, 74, -2, <span class=\"kincha\">8<\/span><\/p>\n<p><span class=\"f_l\">\u30d3\u30f3\u30b4\u3084(\u30fb\u2200\u30fb)<\/span><\/p>\n<hr width=\"90%\">\n<p>\u52e2\u3044\u306b\u4e57\u3063\u3066novo7\u306emessageDigest\u306e\u5024\u3092\u898b\u308b\u3002<br \/>\n47, 88, 32, 24, 25, -124, 15, -42, 52, -59, 52, 67, 41, -79, 112, -63<\/p>\n<p><span class=\"f_l\">\u3042\u308b\u3047\u30fc(\u30fb3\u30fb)\uff1f 10\u4ee5\u4e0b\u304c\u306a\u3044\u304a(\u00b4\uff65\u03c9\uff65\uff40)<\/span><\/p>\n<p>\u4e88\u60f3\u304c\u5916\u308c\u305f\u3053\u3068\u306b\u610f\u6c17\u6d88\u6c88\u3059\u308b\u3082\u3001<\/p>\n<p>0\u304c\u4ed8\u52a0\u3055\u308c\u308b\u306e\u306f\u201d15\u201d\u2026<br \/>\n\u5143\u306e\u5024\u306f\u201df\u201d\u2026\u2026<br \/>\n\u5224\u5b9a\u5f0f\u306f\u201d0x10\u201d\u2026\u2026\u2026<br \/>\n\u3000<br \/>\n\u3000<br \/>\n\u3000<br \/>\n<span class=\"f_l\">16\u9032\u6570\u3084\u306a\u3044\u304b\u03a3(\uff9f\u2200\uff9f\uff1b)<\/span><\/p>\n<p>\u3068\u3088\u3046\u3084\u304f\u81ea\u5206\u306e\u521d\u6b69\u7684\u306a\u52d8\u9055\u3044\u306b\u6c17\u3065\u3044\u305f(\uff89\u2200`)<\/p>\n<p>\u4f55\u306f\u3068\u3082\u3042\u308cAndroid\u306edeviceId\u306fF\u4ee5\u4e0b\u306e\u5024\u306b\u306f0\u4ed8\u52a0\u3057\u306a\u3044\u3068\u3044\u3046\u898f\u5247\u304c\u3042\u308b\u306e\u304b<br \/>\n\u3068\u3044\u3046\u7d50\u8ad6\u306b\u5230\u9054\u3057\u305f\u304c\u3001\u3053\u308c\u304c<span class=\"f_l\"><span class=\"kincha\">\u52d8\u9055\u3044\u306b\u3088\u308b\u6b63\u53cd\u5bfe\u306e\u7d50\u8ad6<\/span><\/span>\u3067\u3042\u308b\u3053\u3068\u306b\u6c17\u304c\u3064\u304f\u306e\u306f\u6570\u6642\u9593\u5f8c\u306e\u304a\u8a71\u2026(\u30fd'\u03c9&#096;)<\/p>\n<hr width=\"90%\">\n<p>\u53d6\u308a\u6562\u3048\u305a\u3001\u30ab\u30c3\u30b3\u60aa\u3044\u304cmd5()\u30e1\u30bd\u30c3\u30c9\u3092<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\nString tempString = &amp;quot;&amp;quot;;\nfor (int i=0; i&amp;lt;messageDigest.length; i++){\n     tempString = Integer.toHexString(0xFF &amp;amp; messageDigest&#x5B;i]);\n\n&lt;pre&gt;&lt;code&gt; if(tempString.length()&amp;amp;lt;2){\n    hexString.append(&amp;amp;quot;0&amp;amp;quot; + tempString);\n }else{\n    hexString.append(tempString);\n }\n&lt;\/code&gt;&lt;\/pre&gt;\n\n}\n<\/pre>\n<p>\u307f\u305f\u3044\u306b\u6539\u5909\u3002StringBuffer\u3092\u4f7f\u3063\u3066\u308b\u30b3\u30fc\u30c9\u3067String\u3092\u4f7f\u3046\u4ffa\u6c0f\u3001\u9b3c\u755c(\u30fb\u2200\u30fb)<br \/>\n\u3068\u304b\u601d\u3063\u3066\u53c2\u8003\u306b\u3057\u305f\u30b3\u30fc\u30c9\u306e\u4e0a\u306e\u56de\u7b54\u3092\u898b\u3066\u307f\u305f\u3089<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\nString h = Integer.toHexString(0xFF &amp; messageDigest&#x5B;i]);\n  while (h.length() &lt; 2)\n    h = &quot;0&quot; + h;\nhexString.append(h);\n<\/pre>\n<p>\u307f\u305f\u3044\u306a\u611f\u3058\u30670\u4ed8\u52a0\u3059\u308b\u30b3\u30fc\u30c9\u304c\u8f09\u3063\u3066\u305f\u2026\uff3f|\uffe3|\u25cb<br \/>\n\u307e\u3042\u3067\u3082\u6700\u521d\u306e\u6bb5\u968e\u3067\u3053\u306e\u30b3\u30fc\u30c9\u3092\u8aad\u3093\u3067\u3082\u308f\u3051\u304c\u5206\u304b\u3089\u306a\u304b\u3063\u305f\u3060\u308d\u3046\u3057\u3001<br \/>\n\u540c\u3058\u3088\u3046\u306a\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3060\u304b\u3089\u3044\u3044\u304b(\u30fb\u2200\u30fb)<\/p>\n<p>AdRequest\u306e\u65b9\u3082\u3061\u3087\u3063\u3068\u4fee\u6b63\u3002\u76f4\u306baddTestDevice()\u306e\u4e2d\u3067getDeviceId()\u3092<br \/>\n\u547c\u3093\u3067\u3082\u3044\u3044\u3051\u3069\u4eca\u306e\u6240\u306fLog\u306b\u66f8\u304d\u8fbc\u307f\u305f\u3044\u306e\u3067\u3053\u308c\u3067\u3044\u3044\u3002<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\nString tempString = getDeviceId();\nLog.d(TAG, tempString);\nAdRequest adRequest = new AdRequest.Builder()\n.addTestDevice(AdRequest.DEVICE_ID_EMULATOR)       \/\/\u30a8\u30df\u30e5\u30ec\u30fc\u30bf\n.addTestDevice(tempString)\n.build();\nadView.loadAd(adRequest);\n<\/pre>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\nprivate String getDeviceId(){\n  String android_id = Settings.Secure.getString(this.getContentResolver(), Settings.Secure.ANDROID_ID);\n  String deviceId = md5(android_id).toUpperCase(Locale.ENGLISH);\n\nreturn deviceId;\n}\n<\/pre>\n<p>\u53d6\u308a\u6562\u3048\u305a\u306f\u3053\u308c\u3067sol25\u3068nexus9\u3067\u30c6\u30b9\u30c8\u7528\u30d0\u30ca\u30fc\u3092\u78ba\u8a8d\u3002<\/p>\n<p>\u3060\u304c\u3057\u304b\u3057novo7\u3067\u306f\u8868\u793a\u3055\u308c\u305a(\u00b4\uff65\u03c9\uff65\uff40)<br \/>\n\u3088\u304f\u3088\u304f\u8003\u3048\u307f\u305f\u3089\u3001novo7\u4e0a\u3067\u3053\u306e\u30b3\u30fc\u30c9\u3067\u306f\u30c6\u30b9\u30c8\u7528\u30d0\u30ca\u30fc\u3082\u5b9f\u969b\u306e\u5e83\u544a\u3082<br \/>\n\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u3068\u3053\u308d\u3092\u898b\u305f\u3053\u3068\u304c\u306a\u304b\u3063\u305f\u306e\u3067\u4ed6\u306e\u554f\u984c\u304b\u3002\u3067\u3082\u30b2\u30fc\u30e0\u30d9\u30fc\u30b9\u3067\u306f<br \/>\n\u8868\u793a\u3055\u308c\u305f\u3057\u306a\u3068\u601d\u3063\u3066\u6587\u5b57\u5217\u3067\u9759\u7684\u6307\u5b9a\u3092\u3059\u308b\u3068\u30c6\u30b9\u30c8\u7528\u30d0\u30ca\u30fc\u304c\u8868\u793a\u3055\u308c\u305f\u2026<br \/>\n\u308f\u3051\u304c\u308f\u304b\u3089\u306a\u3044\u306e\u3067\u3082\u3046\u4e00\u5ea6\u30c7\u30d0\u30c3\u30b0\u3067\u52d5\u7684\u6307\u5b9a\u3092\u8a66\u3059\u3068\u30c6\u30b9\u30c8\u7528\u30d0\u30ca\u30fc\u304c\u8868\u793a\u3055\u308c\u305f\u2026<br \/>\n\u672c\u5f53\u306b\u308f\u3051\u304c\u308f\u304b\u3089\u306a\u3044\u2026(\u30fd'\u03c9&#096;)<\/p>\n<p>\u307e\u3042\u4e00\u5fdc\u52d5\u7684\u6307\u5b9a\u306f\u51fa\u6765\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3088\u3046\u3060\u2026<\/p>\n<hr>\n<p>\u3067\u3001\u307e\u3042\u3044\u3064\u3082\u306e\u30d1\u30bf\u30fc\u30f3\u3067\u65e5\u672c\u8a9e\u3067\u3050\u3050\u3063\u305f\u3089\u3001\u65e5\u672c\u8a9e\u306e\u7b54\u3048\u304c\u3042\u3063\u305f\u308a\u3059\u308b\u2026(\u30fd'\u03c9&#096;)<br \/>\n<del datetime=\"2021-06-02T13:43:34+00:00\">AdMob \u30c6\u30b9\u30c8\u3067\u4f7f\u3046\u3001\u30c7\u30d0\u30a4\u30b9ID\u3092\u53d6\u5f97<\/del><\/p>\n<p>\u3053\u3053\u306e\u30da\u30fc\u30b8\u306e\u30ea\u30f3\u30af\u3092\u8fbf\u3063\u3066JavaDoc\u3092\u8aad\u3093\u3060\u3051\u3069\u3001ANDROID_ID\u3063\u3066<\/p>\n<blockquote><p>A 64-bit number (as a hex string) that is randomly generated when the user first sets up the device and should remain constant for the lifetime of the user's device. The value may change if a factory reset is performed on the device.<\/p>\n<p>Note: When a device has multiple users (available on certain devices running Android 4.2 or higher), each user appears as a completely separate device, so the ANDROID_ID value is unique to each user.<\/p>\n<p>Constant Value: \"android_id\"<br \/>\n<a href=\"https:\/\/developer.android.com\/intl\/ja\/reference\/android\/provider\/Settings.Secure.html#ANDROID_ID\">Settings.Secure | Android Developers<\/a><\/p><\/blockquote>\n<p>\u30c7\u30d0\u30a4\u30b9\u3092\u30d5\u30a1\u30af\u30c8\u30ea\u30fc\u30ea\u30bb\u30c3\u30c8\u3059\u308b\u3068\u5909\u308f\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u3093\u3060\u306d\u3047\u3002<br \/>\n\u52a0\u3048\u3066\u8907\u6570\u30e6\u30fc\u30b6\u30fc\u6a5f\u80fd\u3092\u4f7f\u3063\u3066\u308b\u5834\u5408\u3001\u30e6\u30fc\u30b6\u30fc\u6bce\u306bANDROID_ID\u306f\u4e00\u610f\u7684\u306a\u3093\u3060\u306d\u3047\u3002<br \/>\nANDROID_ID\u304b\u3089\u53d6\u5f97\u51fa\u6765\u308bString\u306e\u5185\u5bb9\u3092\u898b\u3066\u306a\u3044\u304b\u3089\u65ad\u8a00\u51fa\u6765\u306a\u3044\u3051\u3069\u3001\u8907\u6570<br \/>\n\u30e6\u30fc\u30b6\u30fc\u6a5f\u80fd\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u30c7\u30d0\u30a4\u30b9\u304b\u3089\u306f\u8907\u6570\u306e\u30c7\u30d0\u30a4\u30b9ID\u304c\u53d6\u5f97\u51fa\u6765\u308b\u306e\u304b\u306a\uff1f<br \/>\n\u305d\u308c\u3068\u3082ANDROID_ID\u304b\u3089\u53d6\u5f97\u51fa\u6765\u308bString\u306f\u540c\u4e00\u306a\u3093\u3060\u308d\u3046\u304b\u3002\u8b0e\u3060\u2026(\u30fd'\u03c9&#096;)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u53d6\u308a\u6562\u3048\u305anexus9\u3067\u8d77\u52d5\u3057\u305f\u30a2\u30d7\u30ea\u3092\u898b\u3066\u3042\u308b\u3053\u3068\u306b\u6c17\u3065\u3044\u305f\u3002\u3068\u3044\u3046\u304b\u601d\u3044\u51fa\u3057\u305f\u3002 \u78ba\u304bLolipop\u3060\u3068deviceId\u3092LogCat\u304b\u3089\u898b\u3064\u3051\u3089\u308c\u306a\u3044\u304b\u3089\u3001testDvice\u306b\u8ffd\u52a0\u3059\u308b \u65b9\u6cd5\u304c\u308f\u304b\u3089\u306a\u304b\u3063\u305f\u3093\u3060\u3063\u305f...  <a class=\"excerpt-read-more\" href=\"https:\/\/mole-kingdom.com\/wpbl\/2015\/05\/25\/12265.html\" title=\"Read Android:\u30c7\u30d0\u30a4\u30b9ID\u306e\u53d6\u5f97\">\u3082\u3063\u3068\u8aad\u3080 &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[18],"tags":[],"class_list":["post-12265","post","type-post","status-publish","format-standard","hentry","category-android"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2pLuj-3bP","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":23580,"url":"https:\/\/mole-kingdom.com\/wpbl\/2021\/02\/16\/23580.html","url_meta":{"origin":12265,"position":0},"title":"\u3046\u306b\u306e\u30c8\u30b2\u306f\u523a\u3055\u308b\u3068\u75db\u3044(\u00b4\uff65\u03c9\uff65\uff40)-38","author":"moleking","date":"2021\u5e742\u670816\u65e5","format":false,"excerpt":"\u30b9\u30b3\u30a2\u7528\u306edb\u3092\u8ffd\u52a0 \u3044\u307e\u3072\u3068\u3064Android10\u3067\u306e\u65b0\u898f\u30c7\u30fc\u30bf\u66f8\u304d\u8fbc\u307f\u304c\u308f\u304b\u3089\u305a\u2026(\u00b4\uff65\u03c9\uff65\uff40) \u2026","rel":"","context":"Mole's Match-up","block_context":{"text":"Mole's Match-up","link":"https:\/\/mole-kingdom.com\/wpbl\/category\/moles-match-up"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":23601,"url":"https:\/\/mole-kingdom.com\/wpbl\/2021\/02\/21\/23601.html","url_meta":{"origin":12265,"position":1},"title":"\u3046\u306b\u306e\u30c8\u30b2\u306f\u523a\u3055\u308b\u3068\u75db\u3044(\u00b4\uff65\u03c9\uff65\uff40)-39","author":"moleking","date":"2021\u5e742\u670821\u65e5","format":false,"excerpt":"\u305d\u308c\u307b\u3069\u5fc5\u8981\u3067\u3082\u306a\u304b\u3063\u305f\u306e\u3060\u304c\u3001Unity\u4e0a\u3067MediaStore\u3068ContentResolver\u3092\u2026","rel":"","context":"Unity","block_context":{"text":"Unity","link":"https:\/\/mole-kingdom.com\/wpbl\/category\/software-2\/unity"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":5376,"url":"https:\/\/mole-kingdom.com\/wpbl\/2013\/06\/06\/5376.html","url_meta":{"origin":12265,"position":2},"title":"\u4ffa\u6c0f\u3001\u3064\u3044\u306bAdblock Plus\u3092\u5c0e\u5165(\uff40\u30fb\u03c9\u30fb\u00b4)","author":"moleking","date":"2013\u5e746\u67086\u65e5","format":false,"excerpt":"\u30d0\u30ca\u30fc\u5e83\u544a\u306b\u3064\u3044\u3066\u306f\u57fa\u672c\u7684\u306b\u53d7\u3051\u5165\u308c\u308b\u8cea\u3068\u3044\u3046\u304b \u81ea\u5206\u306e\u30b5\u30a4\u30c8\u3067\u3082\u8a2d\u7f6e\u3057\u3066\u3044\u308b\u306e\u3067\u7279\u306b\u5acc\u60aa\u611f\u306f\u306a\u3044\u3002\u2026","rel":"","context":"\u65e5\u8a18","block_context":{"text":"\u65e5\u8a18","link":"https:\/\/mole-kingdom.com\/wpbl\/category\/%e6%97%a5%e8%a8%98"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":23646,"url":"https:\/\/mole-kingdom.com\/wpbl\/2021\/03\/01\/23646.html","url_meta":{"origin":12265,"position":3},"title":"\u3046\u306b\u306e\u30c8\u30b2\u306f\u523a\u3055\u308b\u3068\u75db\u3044(\u00b4\uff65\u03c9\uff65\uff40)-40 : Java\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u5229\u7528 (Java\u5074)","author":"moleking","date":"2021\u5e743\u67081\u65e5","format":false,"excerpt":"\u304d\u3063\u3068\u4ed6\u306e\u3053\u3068\u3092\u3084\u3063\u3066\u5168\u3066\u3092\u5fd8\u308c\u3066\u3057\u307e\u3046\u672a\u6765\u306e\u4ffa\u6c0f\u3078\u306eUnity\u3067\u81ea\u4f5cJava\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u5229\u7528\u3059\u308b\u6642\u2026","rel":"","context":"Android","block_context":{"text":"Android","link":"https:\/\/mole-kingdom.com\/wpbl\/category\/os\/android"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mole-kingdom.com\/wpbl\/wp-content\/uploads\/2021\/02\/uniandjavalib_13.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/mole-kingdom.com\/wpbl\/wp-content\/uploads\/2021\/02\/uniandjavalib_13.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/mole-kingdom.com\/wpbl\/wp-content\/uploads\/2021\/02\/uniandjavalib_13.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/mole-kingdom.com\/wpbl\/wp-content\/uploads\/2021\/02\/uniandjavalib_13.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":20343,"url":"https:\/\/mole-kingdom.com\/wpbl\/2019\/06\/23\/20343.html","url_meta":{"origin":12265,"position":4},"title":"\u30d7\u30e9\u30a4\u30d0\u30b7\u30fc\u30dd\u30ea\u30b7\u30fc\u306e\u306a\u3093\u3061\u3083\u3089\u3053\u3046\u3061\u3083\u3089\u3067\u2026","author":"moleking","date":"2019\u5e746\u670823\u65e5","format":false,"excerpt":"\u300c\u30a2\u30d7\u30ea\u306e\u516c\u958b\u3092\u505c\u6b62\u3057\u3061\u3083\u308b\u3067\u30fc(\u30fb\u2200\u30fb)\u300d\u3068\u3054\u3063\u3050\u308b\u304b\u3089\u30e1\u30fc\u30eb\u304c\u6765\u305f\u3002 \"Google Play\u914d\u2026","rel":"","context":"Android","block_context":{"text":"Android","link":"https:\/\/mole-kingdom.com\/wpbl\/category\/os\/android"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":24848,"url":"https:\/\/mole-kingdom.com\/wpbl\/2021\/06\/17\/24848.html","url_meta":{"origin":12265,"position":5},"title":"\u300eWelcome to Android Basics in Kotlin\u300f\u3092\u3084\u3063\u305f(2)","author":"moleking","date":"2021\u5e746\u670817\u65e5","format":false,"excerpt":"Layouts Kotlin\u306e\u30af\u30e9\u30b9\u3068\u7d99\u627f 2. \u30af\u30e9\u30b9\u968e\u5c64\u3068\u306f \u4e00\u5fdc\u3001\"\u8c46\u985e\"\u306e\u3068\u3053\u308d\u306e\u30ea\u30f3\u30af\u304ch\u2026","rel":"","context":"Android","block_context":{"text":"Android","link":"https:\/\/mole-kingdom.com\/wpbl\/category\/os\/android"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/mole-kingdom.com\/wpbl\/wp-json\/wp\/v2\/posts\/12265","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mole-kingdom.com\/wpbl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mole-kingdom.com\/wpbl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mole-kingdom.com\/wpbl\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mole-kingdom.com\/wpbl\/wp-json\/wp\/v2\/comments?post=12265"}],"version-history":[{"count":8,"href":"https:\/\/mole-kingdom.com\/wpbl\/wp-json\/wp\/v2\/posts\/12265\/revisions"}],"predecessor-version":[{"id":24708,"href":"https:\/\/mole-kingdom.com\/wpbl\/wp-json\/wp\/v2\/posts\/12265\/revisions\/24708"}],"wp:attachment":[{"href":"https:\/\/mole-kingdom.com\/wpbl\/wp-json\/wp\/v2\/media?parent=12265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mole-kingdom.com\/wpbl\/wp-json\/wp\/v2\/categories?post=12265"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mole-kingdom.com\/wpbl\/wp-json\/wp\/v2\/tags?post=12265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}