{"id":5037,"date":"2017-03-21T10:07:07","date_gmt":"2017-03-21T01:07:07","guid":{"rendered":"https:\/\/www.gigas-jp.com\/appnews\/?p=5037"},"modified":"2017-03-21T10:07:07","modified_gmt":"2017-03-21T01:07:07","slug":"%e6%96%b0%e4%ba%ba%e6%88%90%e9%95%b7%e8%a8%98%e9%8c%b219th","status":"publish","type":"post","link":"https:\/\/www.gigas-jp.com\/appnews\/archives\/5037","title":{"rendered":"\u65b0\u4eba\u6210\u9577\u8a18\u933219th"},"content":{"rendered":"<p>\u4eca\u56de\u306f\u3001\u30a2\u30d7\u30ea\u5185\u3067\u7c21\u5358\u306a\u30d6\u30e9\u30a6\u30b6\u6a5f\u80fd\u304c\u5fc5\u8981\u306a\u6642\u306b\u4f7f\u7528\u3059\u308bWebView\u3092\u5b66\u7fd2\u3057\u3088\u3046\u3068\u601d\u3044\u307e\u3059<\/p>\n<p>\u30d6\u30e9\u30a6\u30b6\u3068\u3044\u3046\u3068\u6a19\u6e96\u30d6\u30e9\u30a6\u30b6\u304c\u3042\u308b\u306e\u3067\u3059\u304c\u3001\u305d\u3061\u3089\u3067\u8868\u793a\u3057\u305f\u3044\u3068\u304d\u306f\u3001Intent\u3067\u8868\u793a\u3092\u3057\u307e\u3059<br \/>\n\u6a19\u6e96\u30d6\u30e9\u30a6\u30b6\u306b\u306a\u3044\u6a5f\u80fd\u3092\u5b9f\u88c5\u3057\u305f\u3044\u6642\u3084\u3001\u4e0d\u8981\u306a\u6a5f\u80fd\u3092\u6392\u9664\u3057\u305f\u30b7\u30f3\u30d7\u30eb\u306a\u30d6\u30e9\u30a6\u30b6\u3092\u30a2\u30d7\u30ea\u5185\u3067\u72ec\u81ea\u306b\u4f7f\u7528\u3057\u305f\u3044\u5834\u5408\u306b\u306f\u3001<strong><span style=\"color: #0000ff;\">WebView<\/span><\/strong>\u3092\u4f7f\u7528\u3057\u305f\u65b9\u304c\u3044\u3044\u3067\u3057\u3087\u3046<\/p>\n<p><!--more--><\/p>\n<h3>WebView<\/h3>\n<p>WebView\u306e\u57fa\u672c\u7684\u306a\u5b9f\u88c5\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059<\/p>\n<pre style=\"border: dashed #000000 2px;\"><code>    public void onCreate(Bundle bundle){\r\n        super.onCreate(bundle);\r\n        requestWindowFeature(Window.FEATURE_NO_TITLE);\r\n        WebView webView = new WebView(this);\r\n        mWebView.setWebViewClient(new WebViewClient());\r\n        setContentView(webView);\r\n    }\r\n<\/code><\/pre>\n<p>\u30d3\u30eb\u30c9\u3059\u308b\u3068\u307e\u3060Web\u30da\u30fc\u30b8\u306f\u8868\u793a\u3055\u308c\u3066\u3044\u306a\u3044\u306f\u305a\u3067\u3059<br \/>\n\u3053\u3053\u3067\u91cd\u8981\u306a\u306e\u306f\u3001\u30a2\u30d7\u30ea\u5185\u3067\u5b8c\u7d50\u3055\u305b\u308b\u305f\u3081\u306b\u3001<strong><span style=\"color: #0000ff;\">setWebViewClient()\u3067\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u8a2d\u5b9a<\/span><\/strong>\u3092\u3057\u3066\u3044\u308b\u3068\u3053\u308d\u3067\u3059<br \/>\n\u3053\u308c\u304c\u306a\u3044\u3068\u30ea\u30f3\u30af\u7b49\u304b\u3089\u30da\u30fc\u30b8\u3092\u9077\u79fb\u3059\u308b\u6642\u306b\u6a19\u6e96\u30d6\u30e9\u30a6\u30b6\u304c\u8868\u793a\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3059<\/p>\n<p>\u3053\u3053\u304b\u3089\u4efb\u610f\u306eWeb\u30da\u30fc\u30b8\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306b\u306f\u3001loadUrl\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066\u8868\u793a\u3057\u307e\u3059<br \/>\n\u4f8b\u3048\u3070\u3001Google\u306e\u691c\u7d22\u30da\u30fc\u30b8\u3092\u8868\u793a\u3057\u305f\u3044\u6642\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059<\/p>\n<pre style=\"border: dashed #000000 2px;\"><code>        webView.loadUrl(\"https:\/\/www.google.co.jp\/\");\r\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>\u307e\u305f\u3001\u30dc\u30bf\u30f3\u3092\u8a2d\u7f6e\u3057\u3066\u623b\u308b\u3084\u9032\u3080\u6a5f\u80fd\u306e\u5b9f\u88c5\u3092\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059<br \/>\n\u5b9f\u88c5\u4f8b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059<\/p>\n<pre style=\"border: dashed #000000 2px;\"><code>    public void onClick(View view){\r\n        switch (view.getId()){\r\n            case R.id.next:\r\n                if(webView.canGoForward()){\r\n                    webView.goForward();\r\n                }\r\n                break;\r\n            case R.id.back:\r\n                if(webView.canGoBack()){\r\n                    webView.goBack();\r\n                }\r\n                break;\r\n        }\r\n<\/code><\/pre>\n<p>canGoForward()\u3067\u9032\u3080\u3053\u3068\u304c\u3067\u304d\u308b\u304b\u306e\u78ba\u8a8d\u3092\u3057\u3066\u304b\u3089goForward()\u3067\u5b9f\u884c\u3057\u307e\u3059<br \/>\n\u623b\u308b\u306b\u95a2\u3057\u3066\u3082canGoBack()\u3067\u30c1\u30a7\u30c3\u30af\u3057\u3066goBack()\u3067\u623b\u308b\u51e6\u7406\u3092\u5165\u308c\u307e\u3059<\/p>\n<p>\u81ea\u5206\u3067\u5b9f\u88c5\u3059\u308b\u3068\u306a\u3063\u305f\u3089\u3001\u5c65\u6b74\u3068\u3057\u3066\u3069\u3053\u304b\u306b\u524d\u306e\u30da\u30fc\u30b8\u306eURL\u3092\u4fdd\u5b58\u3057\u3066\u304a\u3044\u3066\u3001\u305d\u308c\u3092\u8fbf\u3063\u305f\u308a\u3068\u3001\u304a\u305d\u3089\u304f\u82e6\u52b4\u3059\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u306e\u3067\u3001WebView\u81ea\u4f53\u306b\u3053\u3046\u3044\u3063\u305f\u6a5f\u80fd\u304c\u5b9f\u88c5\u3055\u308c\u3066\u3044\u308b\u306e\u306f\u3001\u5927\u5909\u3046\u308c\u3057\u3044\u3067\u3059\u306d<\/p>\n<h3>\u7d42\u308f\u308a\u306b<\/h3>\n<p>WebViewClient\u3092\u72ec\u81ea\u30af\u30e9\u30b9\u306b\u62e1\u5f35\u3059\u308b\u3053\u3068\u3067\u3001\u8aad\u307f\u8fbc\u307f\u958b\u59cb\u6642\u3084\u8aad\u307f\u8fbc\u307f\u7d42\u4e86\u6642\u306b\u51e6\u7406\u3092\u8ffd\u52a0\u3059\u308b\u306a\u3069\u3068\u3044\u3063\u305f\u3053\u3068\u3082\u53ef\u80fd\u3067\u306a\u306e\u3067\u3001\u601d\u3063\u305f\u3088\u308a\u3082\u8272\u3005\u3067\u304d\u305d\u3046\u3067\u3042\u308b\u3068\u306f\u601d\u3044\u307e\u3059<br \/>\n\u958b\u767a\u8005\u306e\u65b9\u306f\u3001\u30aa\u30ea\u30b8\u30ca\u30eb\u3067\u4f5c\u6210\u3057\u305f\u3089\u4e00\u756a\u4f7f\u3044\u3084\u3059\u3044\u30d6\u30e9\u30a6\u30b6\u304c\u5b8c\u6210\u3059\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u306d<\/p>\n<p>\u5358\u7d14\u306b\u30da\u30fc\u30b8\u3092\u8868\u793a\u3059\u308b\u3060\u3051\u306a\u3089\u7c21\u5358\u306b\u5b9f\u88c5\u306f\u3067\u304d\u308b\u3088\u3046\u3067\u3059\u304c\u3001javascript\u3068\u306e\u9023\u643a\u306f\u3001JavaScriptInterface\u3092\u4f7f\u3046\u3053\u3068\u3067\u3067\u304d\u308b\u3088\u3046\u3067\u3059<br \/>\n\u5c11\u3057\u624b\u9593\u304c\u304b\u304b\u308b\u3088\u3046\u3067\u3059\u306e\u3067\u3001\u6b21\u56de\u306f\u305d\u3061\u3089\u306b\u3064\u3044\u3066\u5b66\u3093\u3067\u3044\u3053\u3046\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\/5037\" ><\/g:plusone><\/div>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/https:\/\/www.gigas-jp.com\/appnews\/archives\/5037\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"\u65b0\u4eba\u6210\u9577\u8a18\u933219th\" 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\/5037\" data-text=\"\u65b0\u4eba\u6210\u9577\u8a18\u933219th\" 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\/5037\" 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\/5037\" colorscheme=\"light\" ><\/fb:send><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u56de\u306f\u3001\u30a2\u30d7\u30ea\u5185\u3067\u7c21\u5358\u306a\u30d6\u30e9\u30a6\u30b6\u6a5f\u80fd\u304c\u5fc5\u8981\u306a\u6642\u306b\u4f7f\u7528\u3059\u308bWebView\u3092\u5b66\u7fd2\u3057\u3088\u3046\u3068\u601d\u3044\u307e\u3059 \u30d6\u30e9\u30a6\u30b6\u3068\u3044\u3046\u3068\u6a19\u6e96\u30d6\u30e9\u30a6\u30b6\u304c\u3042\u308b\u306e\u3067\u3059\u304c\u3001\u305d\u3061\u3089\u3067\u8868\u793a\u3057\u305f\u3044\u3068\u304d\u306f\u3001Intent\u3067\u8868\u793a\u3092\u3057\u307e\u3059 \u6a19\u6e96\u30d6\u30e9\u30a6\u30b6\u306b\u306a\u3044\u6a5f\u80fd\u3092\u5b9f\u88c5 [&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],"acf":[],"_links":{"self":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/5037"}],"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=5037"}],"version-history":[{"count":9,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/5037\/revisions"}],"predecessor-version":[{"id":5573,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/5037\/revisions\/5573"}],"wp:attachment":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/media?parent=5037"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/categories?post=5037"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/tags?post=5037"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}