{"action":"created","issue":{"url":"https://api.github.com/repos/CSC-MobDev-2016/lessson9/issues/4","repository_url":"https://api.github.com/repos/CSC-MobDev-2016/lessson9","labels_url":"https://api.github.com/repos/CSC-MobDev-2016/lessson9/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/CSC-MobDev-2016/lessson9/issues/4/comments","events_url":"https://api.github.com/repos/CSC-MobDev-2016/lessson9/issues/4/events","html_url":"https://github.com/CSC-MobDev-2016/lessson9/issues/4","id":153659118,"number":4,"title":"Проблемы с обновлением раз в час","user":{"login":"telezhnaya","id":11246099,"avatar_url":"https://avatars.githubusercontent.com/u/11246099?v=3","gravatar_id":"","url":"https://api.github.com/users/telezhnaya","html_url":"https://github.com/telezhnaya","followers_url":"https://api.github.com/users/telezhnaya/followers","following_url":"https://api.github.com/users/telezhnaya/following{/other_user}","gists_url":"https://api.github.com/users/telezhnaya/gists{/gist_id}","starred_url":"https://api.github.com/users/telezhnaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telezhnaya/subscriptions","organizations_url":"https://api.github.com/users/telezhnaya/orgs","repos_url":"https://api.github.com/users/telezhnaya/repos","events_url":"https://api.github.com/users/telezhnaya/events{/privacy}","received_events_url":"https://api.github.com/users/telezhnaya/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-08T14:38:21Z","updated_at":"2016-05-08T14:43:55Z","closed_at":null,"body":"Класс, который экстендит BroadcastReceiver, должен быть static, иначе приложение падает.\r\nВнутри методов этого класса мы обновляем данные, то есть, нам нужен ContentResolver, чтобы слать запросы к базе. То есть, в MainActivity надо объявить static поле с ContentResolver, но статические поля - это плохо. Что делать?"},"comment":{"url":"https://api.github.com/repos/CSC-MobDev-2016/lessson9/issues/comments/217724188","html_url":"https://github.com/CSC-MobDev-2016/lessson9/issues/4#issuecomment-217724188","issue_url":"https://api.github.com/repos/CSC-MobDev-2016/lessson9/issues/4","id":217724188,"user":{"login":"thevery","id":99576,"avatar_url":"https://avatars.githubusercontent.com/u/99576?v=3","gravatar_id":"","url":"https://api.github.com/users/thevery","html_url":"https://github.com/thevery","followers_url":"https://api.github.com/users/thevery/followers","following_url":"https://api.github.com/users/thevery/following{/other_user}","gists_url":"https://api.github.com/users/thevery/gists{/gist_id}","starred_url":"https://api.github.com/users/thevery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thevery/subscriptions","organizations_url":"https://api.github.com/users/thevery/orgs","repos_url":"https://api.github.com/users/thevery/repos","events_url":"https://api.github.com/users/thevery/events{/privacy}","received_events_url":"https://api.github.com/users/thevery/received_events","type":"User","site_admin":false},"created_at":"2016-05-08T14:43:55Z","updated_at":"2016-05-08T14:43:55Z","body":"BroadcastReceiver сам по себе Context же, то есть можно внутри просто .getContextResolver()"}}