{"action":"created","issue":{"url":"https://api.github.com/repos/pardom/ActiveAndroid/issues/406","labels_url":"https://api.github.com/repos/pardom/ActiveAndroid/issues/406/labels{/name}","comments_url":"https://api.github.com/repos/pardom/ActiveAndroid/issues/406/comments","events_url":"https://api.github.com/repos/pardom/ActiveAndroid/issues/406/events","html_url":"https://github.com/pardom/ActiveAndroid/issues/406","id":100942010,"number":406,"title":"Saving multiple records (even with Transaction and IntentService) blocks UI","user":{"login":"rafaelcgo","id":641554,"avatar_url":"https://avatars.githubusercontent.com/u/641554?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaelcgo","html_url":"https://github.com/rafaelcgo","followers_url":"https://api.github.com/users/rafaelcgo/followers","following_url":"https://api.github.com/users/rafaelcgo/following{/other_user}","gists_url":"https://api.github.com/users/rafaelcgo/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelcgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelcgo/subscriptions","organizations_url":"https://api.github.com/users/rafaelcgo/orgs","repos_url":"https://api.github.com/users/rafaelcgo/repos","events_url":"https://api.github.com/users/rafaelcgo/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelcgo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-14T06:03:58Z","updated_at":"2015-08-19T12:54:17Z","closed_at":null,"body":"Is this the expected behavior?\r\n\r\nJust migrated the code from my `Activity` to a `IntentService` (`onHandleIntent()`) to unblock the UI without success.\r\nIf I change the saving loop to a `Sleep(10000)` UI doesn't get stuck...\r\n\r\nBlocks UI:\r\n```java\r\n        ActiveAndroid.beginTransaction();\r\n        try {\r\n            for (University university : universities) {\r\n                university.save();\r\n            }\r\n            ActiveAndroid.setTransactionSuccessful();\r\n        }\r\n        finally {\r\n            ActiveAndroid.endTransaction();\r\n        }\r\n```\r\n\r\nDoes not block UI:\r\n```java\r\n        try {\r\n            Thread.sleep(10000);\r\n        } catch (Exception e) {}\r\n```"},"comment":{"url":"https://api.github.com/repos/pardom/ActiveAndroid/issues/comments/132580811","html_url":"https://github.com/pardom/ActiveAndroid/issues/406#issuecomment-132580811","issue_url":"https://api.github.com/repos/pardom/ActiveAndroid/issues/406","id":132580811,"user":{"login":"kernelheart","id":7766593,"avatar_url":"https://avatars.githubusercontent.com/u/7766593?v=3","gravatar_id":"","url":"https://api.github.com/users/kernelheart","html_url":"https://github.com/kernelheart","followers_url":"https://api.github.com/users/kernelheart/followers","following_url":"https://api.github.com/users/kernelheart/following{/other_user}","gists_url":"https://api.github.com/users/kernelheart/gists{/gist_id}","starred_url":"https://api.github.com/users/kernelheart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kernelheart/subscriptions","organizations_url":"https://api.github.com/users/kernelheart/orgs","repos_url":"https://api.github.com/users/kernelheart/repos","events_url":"https://api.github.com/users/kernelheart/events{/privacy}","received_events_url":"https://api.github.com/users/kernelheart/received_events","type":"User","site_admin":false},"created_at":"2015-08-19T12:54:17Z","updated_at":"2015-08-19T12:54:17Z","body":"Hi, you are not alone.  \r\nI have same issue. Could someone explain how to save records in background.\r\nThanks in advance.     "}}