{"action":"created","issue":{"url":"https://api.github.com/repos/jdeferred/jdeferred/issues/38","labels_url":"https://api.github.com/repos/jdeferred/jdeferred/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/jdeferred/jdeferred/issues/38/comments","events_url":"https://api.github.com/repos/jdeferred/jdeferred/issues/38/events","html_url":"https://github.com/jdeferred/jdeferred/issues/38","id":42263489,"number":38,"title":"AndroidExecutionScope doesn't work","user":{"login":"jamchamb","id":7306764,"avatar_url":"https://avatars.githubusercontent.com/u/7306764?v=3","gravatar_id":"","url":"https://api.github.com/users/jamchamb","html_url":"https://github.com/jamchamb","followers_url":"https://api.github.com/users/jamchamb/followers","following_url":"https://api.github.com/users/jamchamb/following{/other_user}","gists_url":"https://api.github.com/users/jamchamb/gists{/gist_id}","starred_url":"https://api.github.com/users/jamchamb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamchamb/subscriptions","organizations_url":"https://api.github.com/users/jamchamb/orgs","repos_url":"https://api.github.com/users/jamchamb/repos","events_url":"https://api.github.com/users/jamchamb/events{/privacy}","received_events_url":"https://api.github.com/users/jamchamb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-09-09T01:57:46Z","updated_at":"2015-01-12T02:48:39Z","closed_at":null,"body":"I'm trying to get certain callbacks to run in the background by using AndroidDeferredManager and Android****Callback functions that return AndroidExecutionScope.BACKGROUND in getExecutionScope(), but no matter what the callbacks always seem to execute on the main UI thread.\r\n\r\nThis is the test I'm using to see which thread the callback is executing on:\r\n```java\r\n  if (Looper.myLooper() == Looper.getMainLooper()) {\r\n    Log.e(TAG, \"bg thread on main\"); \r\n  } else {\r\n     Log.d(TAG, \"bg thread on bg\");\r\n  }\r\n```\r\n\r\nEven using DefaultDeferredManager, the callbacks run in the main UI thread. The only thing that does work is the DeferredAsyncTask passed to the AndroidDeferredManager, but I would like to be able to use the callbacks.\r\n\r\nIf this is not a bug, please provide more documentation/examples on how to use these callbacks on Android."},"comment":{"url":"https://api.github.com/repos/jdeferred/jdeferred/issues/comments/69525176","html_url":"https://github.com/jdeferred/jdeferred/issues/38#issuecomment-69525176","issue_url":"https://api.github.com/repos/jdeferred/jdeferred/issues/38","id":69525176,"user":{"login":"saturnism","id":1998883,"avatar_url":"https://avatars.githubusercontent.com/u/1998883?v=3","gravatar_id":"","url":"https://api.github.com/users/saturnism","html_url":"https://github.com/saturnism","followers_url":"https://api.github.com/users/saturnism/followers","following_url":"https://api.github.com/users/saturnism/following{/other_user}","gists_url":"https://api.github.com/users/saturnism/gists{/gist_id}","starred_url":"https://api.github.com/users/saturnism/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saturnism/subscriptions","organizations_url":"https://api.github.com/users/saturnism/orgs","repos_url":"https://api.github.com/users/saturnism/repos","events_url":"https://api.github.com/users/saturnism/events{/privacy}","received_events_url":"https://api.github.com/users/saturnism/received_events","type":"User","site_admin":false},"created_at":"2015-01-12T02:48:39Z","updated_at":"2015-01-12T02:48:39Z","body":"mm, i can't seem to reproduce this.  any additional info would be great.  thanks!"}}