{"id":3214,"date":"2022-10-21T13:27:32","date_gmt":"2022-10-21T04:27:32","guid":{"rendered":"https:\/\/bunktiruu.com\/?p=3214"},"modified":"2022-10-21T13:28:37","modified_gmt":"2022-10-21T04:28:37","slug":"%e3%80%90%e3%83%88%e3%83%a9%e3%83%96%e3%83%ab%e8%a7%a3%e6%b1%ba%e3%80%91%e9%80%9a%e7%9f%a5%e3%81%8b%e3%82%89%e5%91%bc%e3%81%b3%e5%87%ba%e3%81%97%e3%81%9factivity%e3%81%aegetextras%e3%81%8cnull","status":"publish","type":"post","link":"https:\/\/bunktiruu.com\/?p=3214","title":{"rendered":"\u3010\u30c8\u30e9\u30d6\u30eb\u89e3\u6c7a\u3011\u901a\u77e5\u304b\u3089\u547c\u3073\u51fa\u3057\u305fActivity\u306egetExtras()\u304cnull\u3092\u8fd4\u3059\u4ef6"},"content":{"rendered":"\n<p>\u203b\u3053\u306e\u8a18\u4e8b\u306f2022\/10\/21\u6642\u70b9\u306e\u30e2\u30ce\u3067\u3059\u3002\u958b\u767a\u7cfb\u306e\u60c5\u5831\u306f\u3059\u3050\uff082\u301c3\u5e74\u3067\uff09\u53e4\u304f\u306a\u3063\u305f\u308a\u3059\u308b\u306e\u3067\u3054\u6ce8\u610f\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u3053\u3093\u306b\u3061\u306f\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u30af\u30ea\u30a8\u30a4\u30bf\u30fc\u306e\u3068\u3082\u3059\u3051\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4eca\u5e74\u3082\u6b8b\u3059\u3068\u3053\u308d\uff13\u30f6\u6708\u3092\u5207\u308a\u307e\u3057\u305f\u306d\u3002\u7b46\u8005\u306f\u4e00\u5fdc\u3053\u308c\u3067\u3082\u30e1\u30a4\u30f3\u306e\u4ed5\u4e8b\u3092\u300c\u30a2\u30d7\u30ea\u958b\u767a\u300d\u3068\u3057\u3066\u304a\u308a\u3001\u4eca\u5e74\u4e2d\u306b\u30a2\u30d7\u30ea\u3092\u51fa\u3059\u3079\u304f\u9811\u5f35\u3063\u3066\u3044\u307e\u3059\u3002\u4f5c\u3063\u3066\u3044\u308b\u306e\u306f\u300c\u7a4d\u3093\u8aad\u300d\u306b\u95a2\u4fc2\u3059\u308b\u30a2\u30d7\u30ea\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3055\u3066\u63b2\u984c\u306e\u4ef6\u3067\u3059\u304c\u3001\u901a\u77e5\uff08Notification\uff09\u304b\u3089Activity\u3092\u547c\u3073\u51fa\u3059\u969b\u306b\u3001\u901a\u77e5\u5074\u3067\u30bb\u30c3\u30c8\u3057\u305f\u5024\uff08putXXX\u7cfb\uff09\u304cActivity\u3067\u8aad\u3081\u306a\u3044\u554f\u984c\u306b\u3076\u3064\u304b\u3063\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u524d\u63d0\u6761\u4ef6\uff1aPendingIntent\u306b\u30d5\u30e9\u30b0\u300cFLAG_IMMUTABLE\u300d\u306e\u307f\u5272\u308a\u5f53\u3066\u3066\u3044\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u3044\u304d\u306a\u308a\u7d50\u8ad6<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>PendingIntent.FLAG_UPDATE_CURRENT<\/li><\/ul>\n\n\n\n<p>\u3092PendingIntent\u306e\u30d5\u30e9\u30b0\u306b<span class=\"ystdb-inline--3\">\u8ffd\u52a0<\/span>\u3059\u308b\u3053\u3068\u3067\u89e3\u6c7a\u3057\u307e\u3057\u305f\u3002\u306a\u304a\u7b46\u8005\u306f\u4e0a\u8a18\u30d5\u30e9\u30b0\u3068\u5171\u306b\u300cFLAG_IMMUTABLE\u300d\u3092\u30bb\u30c3\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u66f4\u65b0\u306b\u306fFLAG_UPDATE_CURRENT\u3092\u4f7f\u3048\u3068\u3001\u30c7\u30d9\u30ed\u30c3\u30d1\u30fc\u30b5\u30a4\u30c8\u306b\u66f8\u304b\u308c\u3066\u3044\u307e\u3057\u305f\u3002\u4ee5\u4e0b\u5f15\u7528\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>FLAG_IMMUTABLE only limits the ability to alter the semantics of the intent that is sent by send() by the invoker of send(). The creator of the PendingIntent can always update the PendingIntent itself via FLAG_UPDATE_CURRENT.<\/p><cite>https:\/\/developer.android.com\/reference\/android\/app\/PendingIntent<\/cite><\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">\u3059\u3063\u305f\u3082\u3093\u3060\u306e\u904e\u7a0b\uff08\u898b\u306a\u304f\u3066\u3082\u3044\u3044\u3051\u3069\uff09<\/h2>\n\n\n\n<p>\u30cd\u30c3\u30c8\u3067\u60c5\u5831\u3092\u63a2\u3059\u3082<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u547c\u3073\u51fa\u3057\u5143\u3067putXXX\u3092\u3084\u3063\u3066\u3044\u306a\u3044\u304b\u3089\u3060<\/li><\/ul>\n\n\n\n<p>\u306a\u3069\u3068\u3044\u3063\u305f\u3001\u6b32\u3057\u304f\u306a\u3044\u60c5\u5831\u306b\u691c\u7d22\u7d50\u679c\u304c\u57cb\u3082\u308c\u3066\u3044\u307e\u3057\u305f\u3002\u305d\u308c\u3067\u3082\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u3044\u308d\u3044\u308d\u8a66\u3057\u305f\u3068\u3053\u308d\u3001\u3088\u3046\u3084\u304f\u30b4\u30fc\u30eb\u306b\u5230\u9054\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u53c2\u8003\u306b\u3057\u305f\u30b5\u30a4\u30c8\u306f\u3053\u3061\u3089\u2193<\/p>\n\n\n\n<a class=\"ystdb-card__text-link\" href=\"http:\/\/onno.jp\/dev\/2011\/11\/android-notification-intent-activity.html\" >http:\/\/onno.jp\/dev\/2011\/11\/android-notification-intent-activity.html<\/a>\n\n\n\n<p><span class=\"ystdb-inline--3\">\u3044\u307e\u73fe\u5728AndroidOS\u306e\u6700\u65b0\u306f13\u306b\u306a\u3063\u3066\u3044\u307e\u3059<\/span>\u304c\u3001\u3053\u306e\u3054\u6642\u4e16\u3067\u306fPendingIntent\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5236\u7d04\u304c\u4ed8\u304f\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>FLAG_MUTABLE\u304bFLAG_IMMUTABLE\u306e\u3069\u3061\u3089\u304b\u3092\u5fc5\u305a\u30bb\u30c3\u30c8\u305b\u3088<\/li><\/ul>\n\n\n\n<p>\u7b46\u8005\u306e\u8a8d\u8b58\u3067\u306f\u3053\u308c\u3089\u306eFLAG\u306f\u305d\u308c\u305e\u308c<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>FLAG_MUTABLE\uff1aPendingIntent\u306b\u6e21\u3059\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u3001\u767a\u884c\u5f8c\u3082\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u5f8c\u4ed8\u3051\u3067\u6e21\u3059\u3053\u3068\u304c\u3067\u304d\u308b<\/li><li>FLAG_IMMUTABLE\uff1aPendingIntent\u306b\u6e21\u3059\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u3001\u767a\u884c\u6642\u306b\u6e21\u3057\u305f\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u307f\u4f7f\u7528\u3067\u304d\u308b<\/li><\/ul>\n\n\n\n<p>\u3068\u306a\u3063\u3066\u304a\u308a\uff08\u9055\u3063\u3066\u305f\u3089\u6559\u3048\u3066\u304f\u3060\u3055\u3044\uff09\u3001\u304b\u3064<span class=\"ystdb-inline--3\">Google\u304b\u3089\u306fFLAG_IMMUTABLE\u63a8\u5968<\/span>\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u30d5\u30e9\u30b0\u306fFLAG_IMMUTABLE\u3060\u3051\u30bb\u30c3\u30c8\u3057\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u305d\u308c\u3067\u30c7\u30d0\u30c3\u30b0\u3057\u3066\u3044\u308b\u3068\u63b2\u984c\u306e\u901a\u308a\u3001\u901a\u77e5\u304b\u3089\u547c\u3073\u51fa\u3057\u305fActivity\u3067getExtras()\u304cnull\u3092\u8fd4\u3057\u3066\u3057\u307e\u3044\u56f0\u3063\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\uff08\u86c7\u8db3\uff09\u500b\u4eba\u958b\u767a\u3092\u884c\u3046\u7406\u7531<\/h2>\n\n\n\n<p>\u86c7\u8db3\u3067\u3059\u304c\u3001\u30a2\u30d7\u30ea\u958b\u767a\u306e\u304a\u3057\u3054\u3068\u306f\u4f01\u696d\u304c\u305a\u3044\u3076\u3093\u3068\u5165\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u3066\u3001\u305d\u3046\u3059\u308b\u3068\u6642\u9593\u7684\u306b\u3082\u304a\u91d1\u7684\u306b\u3082\u6642\u9593\u7684\u306b\u3082\u8a18\u8ff0\u30ce\u30a6\u30cf\u30a6\u7684\u306b\u3082\u500b\u4eba\u958b\u767a\u8005\u306f\u304b\u306a\u3044\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u3060\u3051\u3069\u3001\u4f01\u696d\u306f\u3057\u3063\u304b\u308a\u7a3c\u304c\u306a\u304d\u3083\u306a\u3089\u306a\u3044\u308f\u3051\u3067\u3001\u3059\u308b\u3068<span class=\"ystdb-inline--3\">\u3053\u3046\u3044\u3046\u304b\u3086\u3044\u3068\u3053\u308d\u306b\u624b\u304c\u5c4a\u304f\u30a2\u30d7\u30ea\u304c\u6b32\u3057\u3044<\/span>\u306a\u3041\u3001\u3068\u304b\u3044\u3046\u306e\u306f\u4e2d\u3005\u4f5c\u3063\u3066\u304f\u308c\u306a\u304b\u3063\u305f\u308a\u3001\u3042\u305d\u3073\u304c\u306a\u304b\u3063\u305f\u308a\u3001\u3068\u3064\u307e\u3089\u306a\u3044\u308f\u3051\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u3093\u306a\u308f\u3051\u3067\u3001\u4eca\u306e\u6642\u70b9\u3067\u306f\u307e\u3060\u500b\u4eba\u958b\u767a\u3092\u7d9a\u3051\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>\u307e\u3068\u3081\u308b\u3053\u3068\u306f\u306a\u3044\u306e\u3067\u3059\u304c\u2026\u307e\u3042\u2026\u500b\u4eba\u3067\u958b\u767a\u3092\u3057\u3066\u3044\u308b\u3068\u81ea\u5206\u306e\u30ce\u30a6\u30cf\u30a6\u306f\u9650\u5b9a\u7684\u3067\u3001\u30cd\u30c3\u30c8\u983c\u308a\u306b\u306a\u308a\u304c\u3061\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u304a\u91d1\u3092\u6255\u3048\u3070\u73fe\u8077\u30a8\u30f3\u30b8\u30cb\u30a2\u304c\u5bfe\u5fdc\u3057\u3066\u304f\u308c\u308b\u3068\u304b\u3042\u308a\u307e\u3059\u304c\u3001Android\u30a2\u30d7\u30ea\u306e\u958b\u767a\u5468\u308a\u306f\u65e5\u9032\u6708\u6b69\u3067\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u5e38\u306b\u3044\u308d\u3093\u306aAPI\u306e\u6700\u65b0\u60c5\u5831\u3092\u307f\u3066\u89e6\u3063\u3066\u306a\u3044\u3068\u5bfe\u5fdc\u3067\u304d\u306a\u3044\u3068\u601d\u3044\u8fbc\u3093\u3067\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u8981\u306f\u300c\u304a\u91d1\u3092\u6255\u3063\u3066\u89e3\u6c7a\u3057\u306a\u304b\u3063\u305f\u3089\u5acc\u3060\u306a\u300d\u306a\u3069\u3068\u601d\u3046\u308f\u3051\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3061\u3087\u3063\u3068\u611a\u75f4\u3063\u307d\u3044\u3053\u3068\u3092\u66f8\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u305d\u308c\u3067\u306f\u307e\u305f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PendingIntent\u304b\u3089\u547c\u3073\u51fa\u3057\u305fActivity\u3067\u3001getExtras()\u304cnull\u3092\u8fd4\u3059\u554f\u984c\u306b\u3064\u3044\u3066\u89e3\u6c7a\u7b56\u3092\u66f8\u3044\u3066\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":3220,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[264],"class_list":{"0":"post-3214","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-develop","8":"tag-android"},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/bunktiruu.com\/index.php?rest_route=\/wp\/v2\/posts\/3214","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bunktiruu.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bunktiruu.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bunktiruu.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bunktiruu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3214"}],"version-history":[{"count":4,"href":"https:\/\/bunktiruu.com\/index.php?rest_route=\/wp\/v2\/posts\/3214\/revisions"}],"predecessor-version":[{"id":3219,"href":"https:\/\/bunktiruu.com\/index.php?rest_route=\/wp\/v2\/posts\/3214\/revisions\/3219"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bunktiruu.com\/index.php?rest_route=\/wp\/v2\/media\/3220"}],"wp:attachment":[{"href":"https:\/\/bunktiruu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3214"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bunktiruu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3214"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bunktiruu.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}