{"action":"created","issue":{"url":"https://api.github.com/repos/PunchThrough/Bean-Android-SDK/issues/6","labels_url":"https://api.github.com/repos/PunchThrough/Bean-Android-SDK/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/PunchThrough/Bean-Android-SDK/issues/6/comments","events_url":"https://api.github.com/repos/PunchThrough/Bean-Android-SDK/issues/6/events","html_url":"https://github.com/PunchThrough/Bean-Android-SDK/issues/6","id":99243966,"number":6,"title":"Thread.sleep() in docs for connecting the Bean","user":{"login":"hvisser","id":866834,"avatar_url":"https://avatars.githubusercontent.com/u/866834?v=3","gravatar_id":"","url":"https://api.github.com/users/hvisser","html_url":"https://github.com/hvisser","followers_url":"https://api.github.com/users/hvisser/followers","following_url":"https://api.github.com/users/hvisser/following{/other_user}","gists_url":"https://api.github.com/users/hvisser/gists{/gist_id}","starred_url":"https://api.github.com/users/hvisser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hvisser/subscriptions","organizations_url":"https://api.github.com/users/hvisser/orgs","repos_url":"https://api.github.com/users/hvisser/repos","events_url":"https://api.github.com/users/hvisser/events{/privacy}","received_events_url":"https://api.github.com/users/hvisser/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-05T16:27:00Z","updated_at":"2015-09-24T18:38:05Z","closed_at":null,"body":"The README states to use `Thread.sleep()` for a connection, but this is ill advised: it will lock up the main thread, making the app hang and technically there's no guarantee that the device will be connected in 5 seconds. In practice calls to the Bean should only be made after a succesfull `onConnected` call."},"comment":{"url":"https://api.github.com/repos/PunchThrough/Bean-Android-SDK/issues/comments/143014717","html_url":"https://github.com/PunchThrough/Bean-Android-SDK/issues/6#issuecomment-143014717","issue_url":"https://api.github.com/repos/PunchThrough/Bean-Android-SDK/issues/6","id":143014717,"user":{"login":"swstack","id":4336976,"avatar_url":"https://avatars.githubusercontent.com/u/4336976?v=3","gravatar_id":"","url":"https://api.github.com/users/swstack","html_url":"https://github.com/swstack","followers_url":"https://api.github.com/users/swstack/followers","following_url":"https://api.github.com/users/swstack/following{/other_user}","gists_url":"https://api.github.com/users/swstack/gists{/gist_id}","starred_url":"https://api.github.com/users/swstack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swstack/subscriptions","organizations_url":"https://api.github.com/users/swstack/orgs","repos_url":"https://api.github.com/users/swstack/repos","events_url":"https://api.github.com/users/swstack/events{/privacy}","received_events_url":"https://api.github.com/users/swstack/received_events","type":"User","site_admin":false},"created_at":"2015-09-24T18:38:05Z","updated_at":"2015-09-24T18:38:05Z","body":"Hey @hvisser I am real sorry about the delayed reply.  My original goal with the README was to show off API usage, not necessarily best practice, however you are absolutely correct and I've updated the README to reflect your feedback!  Thanks."}}