{"action":"opened","issue":{"url":"https://api.github.com/repos/googlesamples/android-architecture/issues/200","repository_url":"https://api.github.com/repos/googlesamples/android-architecture","labels_url":"https://api.github.com/repos/googlesamples/android-architecture/issues/200/labels{/name}","comments_url":"https://api.github.com/repos/googlesamples/android-architecture/issues/200/comments","events_url":"https://api.github.com/repos/googlesamples/android-architecture/issues/200/events","html_url":"https://github.com/googlesamples/android-architecture/issues/200","id":178837942,"number":200,"title":"[todo-mvp] [todo-mvp-clean] Where to place BroadcastReceiver?","user":{"login":"rorytorn","id":9257282,"avatar_url":"https://avatars.githubusercontent.com/u/9257282?v=3","gravatar_id":"","url":"https://api.github.com/users/rorytorn","html_url":"https://github.com/rorytorn","followers_url":"https://api.github.com/users/rorytorn/followers","following_url":"https://api.github.com/users/rorytorn/following{/other_user}","gists_url":"https://api.github.com/users/rorytorn/gists{/gist_id}","starred_url":"https://api.github.com/users/rorytorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rorytorn/subscriptions","organizations_url":"https://api.github.com/users/rorytorn/orgs","repos_url":"https://api.github.com/users/rorytorn/repos","events_url":"https://api.github.com/users/rorytorn/events{/privacy}","received_events_url":"https://api.github.com/users/rorytorn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-23T10:12:11Z","updated_at":"2016-09-23T10:12:11Z","closed_at":null,"body":"I have a BroadcastReceiver implementation that receives network connection events. its declared in the AndroidManifest.xml and is called by Android automatically when network events occur.\r\n\r\nFor both todo-mvp and todo-mvp-clean samples, just wondering:\r\n\r\n1. Where should my BroadcastReceiver be placed?\r\n\r\n2. If my BroadcastReceiver needs to write to the database, whats the best way of doing this?\r\n\r\n3. If my BroadcastReceiver needs to update the UI, whats the best way of doing this?"}}
{"actor":{"display_login":"rorytorn"}}