{"action":"created","issue":{"url":"https://api.github.com/repos/hhroc/yellr-android/issues/9","labels_url":"https://api.github.com/repos/hhroc/yellr-android/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/hhroc/yellr-android/issues/9/comments","events_url":"https://api.github.com/repos/hhroc/yellr-android/issues/9/events","html_url":"https://github.com/hhroc/yellr-android/issues/9","id":56174434,"number":9,"title":"Create service that polls the server for updates","user":{"login":"thequbit","id":772612,"avatar_url":"https://avatars.githubusercontent.com/u/772612?v=3","gravatar_id":"","url":"https://api.github.com/users/thequbit","html_url":"https://github.com/thequbit","followers_url":"https://api.github.com/users/thequbit/followers","following_url":"https://api.github.com/users/thequbit/following{/other_user}","gists_url":"https://api.github.com/users/thequbit/gists{/gist_id}","starred_url":"https://api.github.com/users/thequbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thequbit/subscriptions","organizations_url":"https://api.github.com/users/thequbit/orgs","repos_url":"https://api.github.com/users/thequbit/repos","events_url":"https://api.github.com/users/thequbit/events{/privacy}","received_events_url":"https://api.github.com/users/thequbit/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hhroc/yellr-android/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"thequbit","id":772612,"avatar_url":"https://avatars.githubusercontent.com/u/772612?v=3","gravatar_id":"","url":"https://api.github.com/users/thequbit","html_url":"https://github.com/thequbit","followers_url":"https://api.github.com/users/thequbit/followers","following_url":"https://api.github.com/users/thequbit/following{/other_user}","gists_url":"https://api.github.com/users/thequbit/gists{/gist_id}","starred_url":"https://api.github.com/users/thequbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thequbit/subscriptions","organizations_url":"https://api.github.com/users/thequbit/orgs","repos_url":"https://api.github.com/users/thequbit/repos","events_url":"https://api.github.com/users/thequbit/events{/privacy}","received_events_url":"https://api.github.com/users/thequbit/received_events","type":"User","site_admin":false},"milestone":null,"comments":13,"created_at":"2015-02-01T19:25:24Z","updated_at":"2015-02-04T21:00:42Z","closed_at":null,"body":"This looks for new assignments, stories, notifications, and messages.  Once the service determines that the data is stale on the local store, then we will fire an intent that will push the new data to the app."},"comment":{"url":"https://api.github.com/repos/hhroc/yellr-android/issues/comments/72937853","html_url":"https://github.com/hhroc/yellr-android/issues/9#issuecomment-72937853","issue_url":"https://api.github.com/repos/hhroc/yellr-android/issues/9","id":72937853,"user":{"login":"reustonium","id":1432186,"avatar_url":"https://avatars.githubusercontent.com/u/1432186?v=3","gravatar_id":"","url":"https://api.github.com/users/reustonium","html_url":"https://github.com/reustonium","followers_url":"https://api.github.com/users/reustonium/followers","following_url":"https://api.github.com/users/reustonium/following{/other_user}","gists_url":"https://api.github.com/users/reustonium/gists{/gist_id}","starred_url":"https://api.github.com/users/reustonium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reustonium/subscriptions","organizations_url":"https://api.github.com/users/reustonium/orgs","repos_url":"https://api.github.com/users/reustonium/repos","events_url":"https://api.github.com/users/reustonium/events{/privacy}","received_events_url":"https://api.github.com/users/reustonium/received_events","type":"User","site_admin":false},"created_at":"2015-02-04T21:00:42Z","updated_at":"2015-02-04T21:00:42Z","body":"well the purpose of the service is to run in the background when the application is not open and to create a notification (which launches an intent with the story or assignment data bundled into it).\r\n\r\nThe App itself will make an aysnc call to the API directly (with retrofit?) each time that fragment is resumed (onResume()).\r\n\r\ne.g. StoriesFragment will call the API in the `onResume()` method.  That code will send data to an `ArrayAdapter<Story>` which will populate the listview for each story (Title, text, images, etc).\r\n\r\nThis isn't a perfect example but check out how LunchPals does it...\r\nhttps://github.com/reustonium/Lunch-Pals/blob/master/lunch-pals/src/main/java/com/reustonium/lunchpals/fragments/PangsListFragment.java"}}