{"action":"opened","issue":{"url":"https://api.github.com/repos/rabbitfighter81/WordSleuth-Android/issues/19","labels_url":"https://api.github.com/repos/rabbitfighter81/WordSleuth-Android/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/rabbitfighter81/WordSleuth-Android/issues/19/comments","events_url":"https://api.github.com/repos/rabbitfighter81/WordSleuth-Android/issues/19/events","html_url":"https://github.com/rabbitfighter81/WordSleuth-Android/issues/19","id":93121045,"number":19,"title":"Make the bound service run on its own thread so it doesn't block UI thread. ","user":{"login":"rabbitfighter81","id":6219922,"avatar_url":"https://avatars.githubusercontent.com/u/6219922?v=3","gravatar_id":"","url":"https://api.github.com/users/rabbitfighter81","html_url":"https://github.com/rabbitfighter81","followers_url":"https://api.github.com/users/rabbitfighter81/followers","following_url":"https://api.github.com/users/rabbitfighter81/following{/other_user}","gists_url":"https://api.github.com/users/rabbitfighter81/gists{/gist_id}","starred_url":"https://api.github.com/users/rabbitfighter81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rabbitfighter81/subscriptions","organizations_url":"https://api.github.com/users/rabbitfighter81/orgs","repos_url":"https://api.github.com/users/rabbitfighter81/repos","events_url":"https://api.github.com/users/rabbitfighter81/events{/privacy}","received_events_url":"https://api.github.com/users/rabbitfighter81/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rabbitfighter81/WordSleuth-Android/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/rabbitfighter81/WordSleuth-Android/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/rabbitfighter81/WordSleuth-Android/labels/help%20wanted","name":"help wanted","color":"159818"},{"url":"https://api.github.com/repos/rabbitfighter81/WordSleuth-Android/labels/UX%20fix","name":"UX fix","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"rabbitfighter81","id":6219922,"avatar_url":"https://avatars.githubusercontent.com/u/6219922?v=3","gravatar_id":"","url":"https://api.github.com/users/rabbitfighter81","html_url":"https://github.com/rabbitfighter81","followers_url":"https://api.github.com/users/rabbitfighter81/followers","following_url":"https://api.github.com/users/rabbitfighter81/following{/other_user}","gists_url":"https://api.github.com/users/rabbitfighter81/gists{/gist_id}","starred_url":"https://api.github.com/users/rabbitfighter81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rabbitfighter81/subscriptions","organizations_url":"https://api.github.com/users/rabbitfighter81/orgs","repos_url":"https://api.github.com/users/rabbitfighter81/repos","events_url":"https://api.github.com/users/rabbitfighter81/events{/privacy}","received_events_url":"https://api.github.com/users/rabbitfighter81/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/rabbitfighter81/WordSleuth-Android/milestones/1","html_url":"https://github.com/rabbitfighter81/WordSleuth-Android/milestones/Release","labels_url":"https://api.github.com/repos/rabbitfighter81/WordSleuth-Android/milestones/1/labels","id":1192785,"number":1,"title":"Release","description":null,"creator":{"login":"rabbitfighter81","id":6219922,"avatar_url":"https://avatars.githubusercontent.com/u/6219922?v=3","gravatar_id":"","url":"https://api.github.com/users/rabbitfighter81","html_url":"https://github.com/rabbitfighter81","followers_url":"https://api.github.com/users/rabbitfighter81/followers","following_url":"https://api.github.com/users/rabbitfighter81/following{/other_user}","gists_url":"https://api.github.com/users/rabbitfighter81/gists{/gist_id}","starred_url":"https://api.github.com/users/rabbitfighter81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rabbitfighter81/subscriptions","organizations_url":"https://api.github.com/users/rabbitfighter81/orgs","repos_url":"https://api.github.com/users/rabbitfighter81/repos","events_url":"https://api.github.com/users/rabbitfighter81/events{/privacy}","received_events_url":"https://api.github.com/users/rabbitfighter81/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":5,"state":"open","created_at":"2015-07-03T20:58:15Z","updated_at":"2015-07-05T15:35:14Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-07-05T15:35:13Z","updated_at":"2015-07-05T15:35:13Z","closed_at":null,"body":"Make the bound service run on its own thread so it doesn't block UI thread somehow either by just making a new thread and running it or using an async task. Timers should be used to see which is fastest.\r\n\r\n<blockquote>Copied From Android Docs :\r\n\r\nCaution: A service runs in the main thread of its hosting process—the service does not create its own thread and does not run in a separate process (unless you specify otherwise). This means that, if your service is going to do any CPU intensive work or blocking operations (such as MP3 playback or networking), you should create a new thread within the service to do that work. By using a separate thread, you will reduce the risk of Application Not Responding (ANR) errors and the application's main thread can remain dedicated to user interaction with your activities.\r\n\r\nhttp://developer.android.com/guide/topics/fundamentals/services.html\r\n\r\nUse IntentService if you dont want to fiddle with managing threads on your own. Or use AsyncTasks.</blockquote>"}}