{"id":485,"date":"2015-10-18T15:31:52","date_gmt":"2015-10-18T15:31:52","guid":{"rendered":"http:\/\/installingcats.com\/?p=485"},"modified":"2015-10-18T15:31:52","modified_gmt":"2015-10-18T15:31:52","slug":"pendingintent-requestcode-getbroadcast-useless-doesnt-work","status":"publish","type":"post","link":"https:\/\/installingcats.com\/2015\/10\/18\/pendingintent-requestcode-getbroadcast-useless-doesnt-work\/","title":{"rendered":"PendingIntent requestCode getBroadcast useless doesn’t work"},"content":{"rendered":"

Android PendingIntent requestcode on getBroadcast() method is useless. \u00a0It won’t be used at all for making a\u00a0unique PendingIntent.<\/p>\n

Use other fields such as Data (Intent.setData(“someStringPerhapsInteger.valueOf(RequestCode)”)) to make your PendingIntent unique for use with AlarmManager for Notifications for example.<\/p>\n

http:\/\/stackoverflow.com\/a\/33203752\/2301224<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"

Android PendingIntent requestcode on getBroadcast() method is useless. \u00a0It won’t be used at all for making a\u00a0unique PendingIntent. Use other fields such as Data (Intent.setData(“someStringPerhapsInteger.valueOf(RequestCode)”)) to make your PendingIntent unique for use with AlarmManager for Notifications for example. http:\/\/stackoverflow.com\/a\/33203752\/2301224<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28],"tags":[],"_links":{"self":[{"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/posts\/485"}],"collection":[{"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/comments?post=485"}],"version-history":[{"count":0,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/posts\/485\/revisions"}],"wp:attachment":[{"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/media?parent=485"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/categories?post=485"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/tags?post=485"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}