{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/2364","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/2364/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/2364/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/2364/events","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/2364","id":107252655,"number":2364,"title":"avoid recreating Android map view upon device rotation","user":{"login":"incanus","id":17722,"avatar_url":"https://avatars.githubusercontent.com/u/17722?v=3","gravatar_id":"","url":"https://api.github.com/users/incanus","html_url":"https://github.com/incanus","followers_url":"https://api.github.com/users/incanus/followers","following_url":"https://api.github.com/users/incanus/following{/other_user}","gists_url":"https://api.github.com/users/incanus/gists{/gist_id}","starred_url":"https://api.github.com/users/incanus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/incanus/subscriptions","organizations_url":"https://api.github.com/users/incanus/orgs","repos_url":"https://api.github.com/users/incanus/repos","events_url":"https://api.github.com/users/incanus/events{/privacy}","received_events_url":"https://api.github.com/users/incanus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/Android","name":"Android","color":"5319e7"},{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/performance","name":"performance","color":"33aa33"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/milestones/11","html_url":"https://github.com/mapbox/mapbox-gl-native/milestones/android-v0.2.0","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/milestones/11/labels","id":1252366,"number":11,"title":"android-v0.2.0","description":"","creator":{"login":"bleege","id":989928,"avatar_url":"https://avatars.githubusercontent.com/u/989928?v=3","gravatar_id":"","url":"https://api.github.com/users/bleege","html_url":"https://github.com/bleege","followers_url":"https://api.github.com/users/bleege/followers","following_url":"https://api.github.com/users/bleege/following{/other_user}","gists_url":"https://api.github.com/users/bleege/gists{/gist_id}","starred_url":"https://api.github.com/users/bleege/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bleege/subscriptions","organizations_url":"https://api.github.com/users/bleege/orgs","repos_url":"https://api.github.com/users/bleege/repos","events_url":"https://api.github.com/users/bleege/events{/privacy}","received_events_url":"https://api.github.com/users/bleege/received_events","type":"User","site_admin":false},"open_issues":55,"closed_issues":6,"state":"open","created_at":"2015-08-12T19:07:24Z","updated_at":"2015-09-21T10:34:39Z","due_on":null,"closed_at":null},"comments":18,"created_at":"2015-09-18T18:27:05Z","updated_at":"2015-09-21T20:45:31Z","closed_at":null,"body":"Thinking up the chain from #2295 (which still needs to be fixed), if you look at, say, Google Maps, the map view _does not appear to be_ recreated upon device rotation. It may be that a new activity is created, then revealed, and/or the map view is moved between them, but something non-trivial is going on. \r\n\r\nEven solving #2295, having to reload all the tiles, even from cache, is a distracting delay. We should look into ways to make this better. \r\n\r\n/cc @bleege @ljbade "},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/comments/142103437","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/2364#issuecomment-142103437","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/2364","id":142103437,"user":{"login":"incanus","id":17722,"avatar_url":"https://avatars.githubusercontent.com/u/17722?v=3","gravatar_id":"","url":"https://api.github.com/users/incanus","html_url":"https://github.com/incanus","followers_url":"https://api.github.com/users/incanus/followers","following_url":"https://api.github.com/users/incanus/following{/other_user}","gists_url":"https://api.github.com/users/incanus/gists{/gist_id}","starred_url":"https://api.github.com/users/incanus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/incanus/subscriptions","organizations_url":"https://api.github.com/users/incanus/orgs","repos_url":"https://api.github.com/users/incanus/repos","events_url":"https://api.github.com/users/incanus/events{/privacy}","received_events_url":"https://api.github.com/users/incanus/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T20:45:31Z","updated_at":"2015-09-21T20:45:31Z","body":">  this is the same issue as what's plaguing #2295 \r\n\r\nI think this is just _a cause_ of the conditions for #2295, but you can replicate similarly by creating a map activity that is destroyed  before HTTP requests  comes back, even without rotating the device. \r\n\r\nThat is, rotating is the easiest way to replicate the crash, but is not the cause of it. "}}