{"id":5134,"date":"2016-12-06T10:00:06","date_gmt":"2016-12-06T01:00:06","guid":{"rendered":"https:\/\/www.gigas-jp.com\/appnews\/?p=5134"},"modified":"2016-12-05T18:56:21","modified_gmt":"2016-12-05T09:56:21","slug":"%e6%96%b0%e4%ba%ba%e6%88%90%e9%95%b7%e8%a8%98%e9%8c%b217th","status":"publish","type":"post","link":"https:\/\/www.gigas-jp.com\/appnews\/archives\/5134","title":{"rendered":"\u65b0\u4eba\u6210\u9577\u8a18\u933217th"},"content":{"rendered":"<p>\u4eca\u56de\u306fAndroid6.0\u304b\u3089\u5909\u66f4\u304c\u3042\u3063\u305f\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066\u3067\u3059<br \/>\n\u306a\u305c\u4eca\u3055\u30896.0\u304b\u3068\u8a00\u3046\u3068\u3001\u304b\u306a\u308a\u306e\u6642\u9593\u3092\u4f7f\u3044\u60a9\u3093\u3067\u3044\u305f\u3082\u306e\u304c\u3001\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306e\u8a31\u53ef\u304c\u539f\u56e0\u3067\u3067\u304d\u3066\u3044\u306a\u304b\u3063\u305f\u304b\u3089\u3067\u3059<br \/>\n\u5b8c\u5168\u306b\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306b\u5909\u66f4\u304c\u3042\u3063\u305f\u3053\u3068\u3092\u5fd8\u308c\u3066\u3044\u307e\u3057\u305f\u306e\u3067\u3001\u982d\u306b\u6b8b\u3057\u3066\u304a\u304f\u305f\u3081\u306b\u3082\u66f8\u3044\u3066\u3044\u304d\u307e\u3059<\/p>\n<p><!--more--><\/p>\n<h3>6.0\u304b\u3089\u306e\u5909\u66f4\u70b9<\/h3>\n<p>\u30bf\u30fc\u30b2\u30c3\u30c8SDK\u304cAndroid6.0\u4ee5\u524d\u3067\u306f\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306bManifest\u5185\u3067\u8a2d\u5b9a\u3057\u3066\u3044\u308b\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u8868\u793a\u3057\u3001\u3059\u3079\u3066\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306b\u540c\u610f\u3059\u308b\u304b\u306e\u78ba\u8a8d\u3092\u3057\u3066\u3001\u540c\u610f\u304c\u3055\u308c\u308b\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u958b\u59cb\u3057\u3066\u30a2\u30d7\u30ea\u306b\u6a29\u9650\u304c\u4e0e\u3048\u3089\u308c\u308b\u6d41\u308c\u3067\u3057\u305f<br \/>\n\u3057\u304b\u3057\u3001Android6.0\u304b\u3089\u306f\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306f\u8868\u793a\u3055\u308c\u305a\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u958b\u59cb\u3057\u3001\u30a2\u30d7\u30ea\u306e\u8d77\u52d5\u5f8c\u306b\u958b\u767a\u5074\u304c\u6307\u5b9a\u3057\u305f\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u30e6\u30fc\u30b6\u306b\u8a31\u53ef\u3092\u5f97\u308b\u3088\u3046\u306b\u3059\u308bRuntime\u65b9\u5f0f\u3068\u306a\u308a\u307e\u3057\u305f<\/p>\n<p>\u305f\u3060\u3057\u3001\u3059\u3079\u3066\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306b\u304a\u3044\u3066\u8a31\u53ef\u3092\u5f97\u308b\u5fc5\u8981\u304c\u3042\u308b\u304b\u3068\u8a00\u308f\u308c\u308b\u3068\u305d\u3046\u3067\u306f\u3042\u308a\u307e\u305b\u3093<br \/>\n\u8a31\u53ef\u304c\u5fc5\u8981\u306b\u306a\u308b\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306f\u3001\u30e6\u30fc\u30b6\u306e\u4fdd\u5b58\u3057\u305f\u30c7\u30fc\u30bf\u3084\u4ed6\u306e\u30a2\u30d7\u30ea\u64cd\u4f5c\u306b\u5f71\u97ff\u3092\u53ca\u307c\u3059\u53ef\u80fd\u6027\u306e\u3042\u308bDangerous Permissions\u3068\u547c\u3070\u308c\u308b\u3082\u306e\u306b\u306a\u308a\u307e\u3059<br \/>\n\u4f8b\u3048\u3070\u3001PHONE(\u96fb\u8a71\u95a2\u9023)\u3084LOCATION(\u4f4d\u7f6e\u60c5\u5831)\u306a\u3069\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059<\/p>\n<p>\u4ee5\u4e0b\u306f\u3001\u7aef\u672b\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3068\u30bf\u30fc\u30b2\u30c3\u30c8\u306eSDK\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u4ed8\u4e0e\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u3059<\/p>\n<table>\n<tbody>\n<tr>\n<th bgcolor=\"#000000\"><\/th>\n<th>\u7aef\u672b(6.0\u672a\u6e80)<\/th>\n<th>\u7aef\u672b(6.0\u4ee5\u4e0a)<\/th>\n<\/tr>\n<tr>\n<th>target(6.0\u672a\u6e80)<\/th>\n<td>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642<\/td>\n<td>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642<\/td>\n<\/tr>\n<tr>\n<th>target(6.0\u4ee5\u4e0a)<\/th>\n<td>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642<\/td>\n<td>\u30a2\u30d7\u30ea\u5185<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3053\u3046\u898b\u308b\u3068\u3001\u30bf\u30fc\u30b2\u30c3\u30c8\u306e\u53e4\u3044\u30a2\u30d7\u30ea\u306e\u4fee\u6b63\u306f\u4e0d\u5fc5\u8981\u304b\u3068\u601d\u308f\u308c\u307e\u3059\u304c\u3001\u7aef\u672b\u30d0\u30fc\u30b8\u30e7\u30f3\u304c6.0\u4ee5\u964d\u306f\u3001\u7aef\u672b\u304b\u3089\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u5909\u66f4\u3067\u304d\u308b\u306e\u3067\u3001\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306e\u8a31\u53ef\u3092\u5916\u3055\u308c\u305f\u6642\u306b\u30af\u30e9\u30c3\u30b7\u30e5\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306e\u78ba\u8a8d\u3068\u8a31\u53ef\u3092\u5f97\u308b\u51e6\u7406\u306e\u8ffd\u52a0\u306f\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059<\/p>\n<h3>\u5b9f\u88c5\u65b9\u6cd5<\/h3>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306b\u3069\u306e\u3088\u3046\u306b\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u3066\u3001\u30c0\u30a4\u30a2\u30ed\u30b0\u3092\u8868\u793a\u3059\u308b\u306e\u304b\u3092\u898b\u3066\u3044\u304d\u307e\u3059<br \/>\n\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u78ba\u8a8d\u3059\u308b\u306e\u306b\u4f7f\u7528\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u306fPermissionChecker\u30af\u30e9\u30b9\u306echeckSelfPermission\u3067\u3059<br \/>\n\u307e\u305f\u3001\u4eca\u5f8c\u306f\u8868\u793a\u3057\u306a\u3044\u3092\u30c1\u30a7\u30c3\u30af\u3055\u308c\u3066\u3044\u305f\u5834\u5408\u306e\u51e6\u7406\u3092\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u306fActivityCompat\u30af\u30e9\u30b9\u306eshouldShowRequestPermissionRationale\u3067\u3059<br \/>\n\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u306f\u521d\u56de\u8868\u793a\u6642\u306b\u306ffasle\u306b\u306a\u308b\u306e\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059<br \/>\n\u305d\u3057\u3066\u3001\u5b9f\u969b\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u51fa\u3059\u306e\u306fActivityCompat\u30af\u30e9\u30b9\u306erequestPermissions\u3067\u3059<br \/>\n\u5b9f\u88c5\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059<\/p>\n<pre style=\"border: dashed #000000 2px\"><code>if(PermissionChecker.checkSelfPermission\r\n\t\t(activity, android.Manifest.permission.READ_PHONE_STATE) != \r\n\t\tPackageManager.PERMISSION_GRANTED){\r\n\tif (ActivityCompat.shouldShowRequestPermissionRationale\r\n\t\t\t(activity, android.Manifest.permission.READ_PHONE_STATE)) {\r\n\t\t\/\/\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306e\u672a\u8a31\u53ef\u3001\u4eca\u5f8c\u8868\u793a\u3057\u306a\u3044\u306b\u30c1\u30a7\u30c3\u30af\u3055\u308c\u3066\u3044\u308b\u6642\u306e\u51e6\u7406\r\n\t}\r\n\t\/\/\u30ea\u30af\u30a8\u30b9\u30c8\r\n\tActivityCompat.requestPermissions(activity,\r\n\t\t\t\tnew String[]{android.Manifest.permission.READ_PHONE_STATE},\r\n\t\t\t\trequest_code);\r\n}\r\n<\/code><\/pre>\n<p>\u4ee5\u4e0a\u3067\u3001\u78ba\u8a8d\u304b\u3089\u8a31\u53ef\u306e\u30c0\u30a4\u30a2\u30ed\u30b0\u8868\u793a\u307e\u3067\u306e\u51e6\u7406\u304c\u5b8c\u4e86\u3067\u3059<\/p>\n<p>\u307e\u305frequestPermissions\u306e\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3068\u3057\u3066onRequestPermissionsResult\u3092\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u3057\u307e\u3059<br \/>\n\u3053\u306e\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u306f\u8a31\u53ef\u306e\u30c0\u30a4\u30a2\u30ed\u30b0\u306e\u3069\u3061\u3089\u304b\u3092\u62bc\u3055\u308c\u305f\u6642\u70b9\u3067\u767a\u751f\u3057\u307e\u3059<br \/>\nrequestCode\u306b\u306f\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u6642\u306e3\u3064\u76ee\u306e\u5f15\u6570\u306e\u30b3\u30fc\u30c9<br \/>\npermissions\u306b\u306f\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u6642\u306e2\u3064\u76ee\u306e\u5f15\u6570\u306b\u6307\u5b9a\u3057\u305f\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306e\u914d\u5217<br \/>\ngrantResults\u306b\u306f\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u5bfe\u5fdc\u3057\u305f\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306e\u8a31\u53ef\u72b6\u614b\u306e\u914d\u5217<br \/>\n\u5b9f\u88c5\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059<\/p>\n<pre style=\"border: dashed #000000 2px\"><code>@Override\r\npublic void onRequestPermissionsResult\r\n\t(int requestCode, String[] permissions, int[] grantResults) {\r\n\tswitch (requestCode) {\r\n\t\tcase PHONE_STATE_CODE:\r\n\t\t\tif (grantResults.length &gt; 0 &amp;&amp; \r\n    \t\t\t\tgrantResults[0] != PackageManager.PERMISSION_GRANTED) {\r\n\t\t\t\t\/\/\u8a31\u53ef\u6642\u306e\u51e6\u7406\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t}\r\n}\r\n<\/code><\/pre>\n<p>\u4ee5\u4e0a\u3067\u3001\u8a31\u53ef\u306e\u30c0\u30a4\u30a2\u30ed\u30b0\u3092\u62bc\u4e0b\u3057\u305f\u6642\u306e\u51e6\u7406\u304c\u5b8c\u4e86\u3067\u3059<br \/>\n\u672a\u8a31\u53ef\u6642\u306b\u3001\u4eca\u5f8c\u306f\u8868\u793a\u3057\u306a\u3044\u30c1\u30a7\u30c3\u30af\u304c\u5165\u3063\u3066\u3044\u308b\u6642\u306a\u3069\u306e\u5224\u5b9a\u3082\u3067\u304d\u308b\u306e\u3067\u3001\u51e6\u7406\u304c\u5fc5\u8981\u306a\u6642\u306f\u3053\u3061\u3089\u3067\u3082\u30c1\u30a7\u30c3\u30af\u304c\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059<\/p>\n<h3>\u7d42\u308f\u308a\u306b<\/h3>\n<p>\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306f\u8a31\u53ef\u3059\u308b\u3068\u3001\u601d\u3063\u305f\u3088\u308a\u3082\u6ca2\u5c71\u306e\u60c5\u5831\u3092\u5f15\u304d\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u3066\u3057\u307e\u3044\u307e\u3059<br \/>\n\u30e6\u30fc\u30b6\u5074\u306f\u3042\u308b\u7a0b\u5ea6\u8003\u3048\u3066\u3001\u8a31\u53ef\u3092\u51fa\u3059\u3079\u304d\u3067\u3059\u3057\u3001\u958b\u767a\u5074\u306f\u6700\u4f4e\u9650\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3057\u3001\u4f7f\u7528\u3059\u308b\u76ee\u7684\u3082\u8868\u793a\u3059\u3079\u304d\u3067\u3059\u306d<br \/>\n\u3057\u304b\u3057\u3001\u8868\u793a\u3057\u305f\u5185\u5bb9\u3068\u4e2d\u8eab\u304c\u7570\u306a\u308b\u306a\u3093\u3066\u3053\u3068\u3082\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093<br \/>\n\u305d\u3053\u306f\u3001\u958b\u767a\u5143\u3092\u4fe1\u983c\u3059\u308b\u3057\u304b\u306a\u3044\u3067\u3059\u306d<\/p>\n<p>\u4eca\u5f8c\u306f\u3001Manifest\u306b\u8ffd\u52a0\u3057\u305f\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u304cDangerous Permissions\u304b\u610f\u8b58\u3057\u3066\u3001\u30a2\u30d7\u30ea\u306e\u4f5c\u6210\u3092\u3057\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059<\/p>\n<p>\u706b\u66dc\u65e5\u62c5\u5f53\uff1apoppy<\/p>\n<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_google_plus_one\"><g:plusone size=\"medium\" annotation=\"none\" href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/5134\" ><\/g:plusone><\/div>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/https:\/\/www.gigas-jp.com\/appnews\/archives\/5134\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"\u65b0\u4eba\u6210\u9577\u8a18\u933217th\" data-hatena-bookmark-layout=\"standard\" title=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\"> <img src=\"\/\/b.hatena.ne.jp\/images\/entry-button\/button-only@2x.png\" alt=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\" width=\"20\" height=\"20\" style=\"border: none;\" \/><\/a><script type=\"text\/javascript\" src=\"\/\/b.hatena.ne.jp\/js\/bookmark_button.js\" charset=\"utf-8\" async=\"async\"><\/script><\/div>\n            <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/5134\" data-text=\"\u65b0\u4eba\u6210\u9577\u8a18\u933217th\" data-via=\"GIGASJAPAN_APPS\" data-lang=\"ja\">Tweet<\/a><\/div>\n            <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/5134\" layout=\"button_count\" action=\"like\" width=\"100\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>\n            <div class=\"wsbl_facebook_send\"><div id=\"fb-root\"><\/div><fb:send href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/5134\" colorscheme=\"light\" ><\/fb:send><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u56de\u306fAndroid6.0\u304b\u3089\u5909\u66f4\u304c\u3042\u3063\u305f\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066\u3067\u3059 \u306a\u305c\u4eca\u3055\u30896.0\u304b\u3068\u8a00\u3046\u3068\u3001\u304b\u306a\u308a\u306e\u6642\u9593\u3092\u4f7f\u3044\u60a9\u3093\u3067\u3044\u305f\u3082\u306e\u304c\u3001\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306e\u8a31\u53ef\u304c\u539f\u56e0\u3067\u3067\u304d\u3066\u3044\u306a\u304b\u3063\u305f\u304b\u3089\u3067\u3059 \u5b8c\u5168\u306b\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306b\u5909\u66f4\u304c\u3042\u3063 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[100,12],"tags":[56,79,102],"acf":[],"_links":{"self":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/5134"}],"collection":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/comments?post=5134"}],"version-history":[{"count":29,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/5134\/revisions"}],"predecessor-version":[{"id":5204,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/5134\/revisions\/5204"}],"wp:attachment":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/media?parent=5134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/categories?post=5134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/tags?post=5134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}