{"id":5795,"date":"2017-07-11T11:39:01","date_gmt":"2017-07-11T02:39:01","guid":{"rendered":"https:\/\/www.gigas-jp.com\/appnews\/?p=5795"},"modified":"2017-07-11T11:39:09","modified_gmt":"2017-07-11T02:39:09","slug":"android%e3%81%aecontext","status":"publish","type":"post","link":"https:\/\/www.gigas-jp.com\/appnews\/archives\/5795","title":{"rendered":"Android\u306eContext"},"content":{"rendered":"<p>Android\u3092\u958b\u767a\u3059\u308b\u4e0a\u3067Context\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u306f\u591a\u3005\u3042\u308a\u307e\u3059<br \/>\n \u30c0\u30a4\u30a2\u30ed\u30b0\u306e\u8868\u793a\u3001\u30d7\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3001\u30c8\u30fc\u30b9\u30c8\u306e\u8868\u793a\u306a\u3069\u3067\u3059<br \/>\n \u307e\u305f\u3001\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u30af\u30e9\u30b9\u3067\u306f\u3001\u305d\u306e\u307b\u3068\u3093\u3069\u3067Context\u306e\u5165\u308c\u5b50\u304c\u3067\u304d\u308b\u3067\u3057\u3087\u3046<br \/>\n \u79c1\u306f\u3001Activity\u3001Service\u3001Broadcast\u3067\u53d6\u5f97\u3057\u305fContext\u3001Application\u3067\u53d6\u5f97\u3057\u305fContext\u304f\u3089\u3044\u3057\u304b\u4f7f\u3063\u305f\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u3069\u306e\u3088\u3046\u306a\u9055\u3044\u304c\u3042\u308b\u306e\u304b\u3092\u78ba\u8a8d\u3057\u3066\u3044\u304d\u307e\u3059<\/p>\n<h3>Activity\u3001Service\u3001Broadcast\u4e0a\u306eContext<\/h3>\n<p>Activity\u3068Service\u306b\u3064\u3044\u3066\u306f\u3001\u300cthis\u300d\u3067Context\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059<br \/>\n Broadcast\u306f\u3001onReceive\u306e\u5f15\u6570\u306bContext\u304c\u3042\u308b\u306e\u3067\u3001\u305d\u308c\u3092\u4f7f\u3044\u307e\u3059<\/p>\n<p>\u3053\u308c\u3089\u306eContext\u306f\u3001\u53d6\u5f97\u3057\u3066\u304d\u305f\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u5bff\u547d\u3068\u540c\u3058\u306b\u306a\u308a\u307e\u3059<br \/>\n \u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f\u7d42\u4e86\u3057\u3066\u3044\u308b\u304c\u3001<span style=\"color: #0000ff\"><strong>\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3067\u623b\u3063\u3066\u304d\u305f\u3068\u3053\u308d\u306b\u3001Context\u3092\u4f7f\u3063\u3066\u3044\u308b\u5834\u5408\u306b\u306f\u3001\u30e1\u30e2\u30ea\u30ea\u30fc\u30af<\/strong><\/span>\u3067\u30a8\u30e9\u30fc\u3068\u306a\u308a\u30a2\u30d7\u30ea\u304c\u7570\u5e38\u7d42\u4e86\u3057\u307e\u3059<br \/>\n <span style=\"color: #0000ff\"><strong>\u30c0\u30a4\u30a2\u30ed\u30b0\u306e\u8868\u793a\u30bf\u30a4\u30df\u30f3\u30b0\u306b\u3088\u3063\u3066\u3082\u3001\u30e1\u30e2\u30ea\u30ea\u30fc\u30af<\/strong><\/span>\u304c\u767a\u751f\u3057\u307e\u3059<\/p>\n<h3>Applicaiton\u4e0a\u306eContext<\/h3>\n<p>Application\u4e0a\u306eContext\u3068\u306f\u3001getApplicationContext()\u3067\u53d6\u5f97\u3067\u304d\u308bContext\u3067\u3059<br \/>\n \u4ed6\u306b\u3082\u3001Application\u3092\u7d99\u627f\u3057\u3066\u3044\u308b\u30af\u30e9\u30b9\u3067\u300cthis\u300d\u3092\u4f7f\u3046\u3053\u3068\u3001\u4e0a\u8a18Activity\u7b49\u306eContext\u304b\u3089getApplicationContext()\u3067\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059<\/p>\n<p>\u3053\u306e<span style=\"color: #0000ff\"><strong>Context\u306e\u5bff\u547d\u306f\u3001\u30a2\u30d7\u30ea\u306e\u30bf\u30b9\u30af\u304c\u5207\u308c\u308b<\/strong><\/span>\u307e\u3067\u3068\u306a\u308a\u307e\u3059<br \/>\n \u3053\u3061\u3089\u306e\u65b9\u304c\u3001\u4e00\u822c\u7684\u306b\u5bff\u547d\u306f\u9577\u3044\u3068\u601d\u3044\u307e\u3059<\/p>\n<h3>\u7d42\u308f\u308a\u306b<\/h3>\n<p>Context\u306f\u591a\u304f\u306e\u7b87\u6240\u3067\u4f7f\u3044\u307e\u3059\u306e\u3067\u3001\u5834\u6240\u306b\u3042\u3063\u305fContext\u3092\u4f7f\u3046\u3053\u3068\u304c\u4e00\u756a\u304b\u3068\u601d\u3044\u307e\u3059<br \/>\n Activity\u5185\u3067\u5b8c\u7d50\u3057\u3066\u304a\u308a\u3001Activity\u304c\u7d42\u4e86\u4ee5\u964d\u306fContext\u3092\u4f7f\u7528\u3057\u3066\u3044\u306a\u3044\u306a\u3089\u3001Activity\u306eContext\u3092\u4f7f\u3048\u3070\u3044\u3044\u3068\u601d\u3044\u307e\u3059<br \/>\n Activity\u304c\u7d42\u4e86\u4ee5\u964d\u3067\u3082Context\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u3067\u3082\u3001\u305d\u306e\u4e00\u90e8\u3092Application\u306eContext\u3092\u4f7f\u3048\u3070\u554f\u984c\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059<\/p>\n<p>\u307e\u305f\u3001\u30c0\u30a4\u30a2\u30ed\u30b0\u7b49\u306e\u8868\u793a\u306bContext\u3092\u4f7f\u3046\u5834\u5408\u306b\u306f\u3001\u5404Context\u306e\u30c6\u30fc\u30de\u7b49\u3082\u5f71\u97ff\u3057\u307e\u3059\u306e\u3067\u3001\u6ce8\u610f\u304c\u5fc5\u8981\u3067\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\/5795\" ><\/g:plusone><\/div>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/https:\/\/www.gigas-jp.com\/appnews\/archives\/5795\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"Android\u306eContext\" 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\/5795\" data-text=\"Android\u306eContext\" 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\/5795\" 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\/5795\" colorscheme=\"light\" ><\/fb:send><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>Android\u3092\u958b\u767a\u3059\u308b\u4e0a\u3067Context\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u306f\u591a\u3005\u3042\u308a\u307e\u3059 \u30c0\u30a4\u30a2\u30ed\u30b0\u306e\u8868\u793a\u3001\u30d7\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3001\u30c8\u30fc\u30b9\u30c8\u306e\u8868\u793a\u306a\u3069\u3067\u3059 \u307e\u305f\u3001\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u30af\u30e9\u30b9\u3067\u306f\u3001\u305d\u306e\u307b\u3068\u3093\u3069\u3067Context\u306e\u5165\u308c\u5b50\u304c\u3067\u304d\u308b\u3067\u3057\u3087\u3046 \u79c1\u306f [&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\/5795"}],"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=5795"}],"version-history":[{"count":4,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/5795\/revisions"}],"predecessor-version":[{"id":5799,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/5795\/revisions\/5799"}],"wp:attachment":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/media?parent=5795"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/categories?post=5795"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/tags?post=5795"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}