{"id":486,"date":"2016-11-20T09:20:31","date_gmt":"2016-11-20T00:20:31","guid":{"rendered":"http:\/\/blue-bear.jp\/kb\/?p=486"},"modified":"2016-11-20T09:20:31","modified_gmt":"2016-11-20T00:20:31","slug":"android-google-play-service%e3%81%ae%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3%e3%82%92%e7%a2%ba%e8%aa%8d%e3%81%97%e3%81%a6%e3%82%a2%e3%83%a9%e3%83%bc%e3%83%88%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%95","status":"publish","type":"post","link":"https:\/\/blue-bear.jp\/kb\/android-google-play-service%e3%81%ae%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3%e3%82%92%e7%a2%ba%e8%aa%8d%e3%81%97%e3%81%a6%e3%82%a2%e3%83%a9%e3%83%bc%e3%83%88%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%95\/","title":{"rendered":"[android] Google Play Service\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u3066\u30a2\u30e9\u30fc\u30c8\u3092\u8868\u793a\u3055\u305b\u308b"},"content":{"rendered":"<h2>Google Service\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u3066\u30a2\u30e9\u30fc\u30c8\u3092\u8868\u793a\u3055\u305b\u308b<\/h2>\n<p>Android\u30a2\u30d7\u30ea\u3092\u5236\u4f5c\u3057\u3066\u3044\u308b\u3068Google Play Service\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u591a\u3044\u304c<br \/>\n\u7279\u306b\u5916\u90e8SDK\u3092\u5229\u7528\u3059\u308b\u5834\u5408\u3001\u6700\u4f4e\u5229\u7528Google Play Service\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u591a\u3044\u3002<\/p>\n<p>\u30a2\u30d7\u30ea\u3092\u6b63\u3057\u304f\u4f7f\u3063\u3066\u3082\u3089\u3046\u305f\u3081\u306bGoogle Play Service\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u3001<br \/>\n\u30a2\u30d7\u30ea\u306b\u30de\u30c3\u30c1\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u30a2\u30e9\u30fc\u30c8\u3068Update\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u8868\u793a\u3055\u305b\u308b<\/p>\n<h3>\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\uff1a<\/h3>\n<pre>\r\nprivate final static int PLAY_SERVICES_RESOLUTION_REQUEST = 9000;\r\n\r\n@Override\r\n    protected void onCreate(Bundle savedInstanceState) {\r\n        super.onCreate(savedInstanceState);\r\n        setContentView(layout.activity_login);\r\n\r\n        checkPlayServices();\r\n    }\r\n\r\nprivate boolean checkPlayServices() {\r\n        GoogleApiAvailability googleAPI = GoogleApiAvailability.getInstance();\r\n        int result = googleAPI.isGooglePlayServicesAvailable(this);\r\n        if(result != ConnectionResult.SUCCESS) {\r\n            if(googleAPI.isUserResolvableError(result)) {\r\n                googleAPI.getErrorDialog(this, result,\r\n                        PLAY_SERVICES_RESOLUTION_REQUEST).show();\r\n            }\r\n\r\n            return false;\r\n        }\r\n\r\n        return true;\r\n    }\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Google Service\u306e\u30d0\u30fc\u30b8\u30e7\u30f3<\/p>\n","protected":false},"author":1,"featured_media":383,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[30],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/486"}],"collection":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/comments?post=486"}],"version-history":[{"count":1,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/486\/revisions"}],"predecessor-version":[{"id":487,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/486\/revisions\/487"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/media\/383"}],"wp:attachment":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/media?parent=486"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/categories?post=486"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/tags?post=486"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}