{ "id": "97693", "key": "TIMOB-10317", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2013-03-27T16:29:18.000+0000", "created": "2012-07-19T18:39:35.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "exalture", "parity" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T22:55:01.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "When embedding a Ti.Map.View inside a Ti.UI.TableViewRow on the Android platform, the app crashes after scrolling back to the map a second time. This does not occur on the iPhone platform.\r\n\r\nh2. Steps to reproduce.\r\n# Scroll down to view embedded MapView\r\n# Scroll back up to top of list, obscuring the MapView from the visible screen\r\n# Scroll back down to the MapView in the list\r\n# App crashes with 'MapView already created' exception\r\n\r\n{code:title=app.js}\r\nvar mountainView = Titanium.Map.createAnnotation({\r\n latitude:37.390749,\r\n longitude:-122.081651,\r\n title:\"Appcelerator Headquarters\",\r\n subtitle:'Mountain View, CA',\r\n pincolor:Titanium.Map.ANNOTATION_RED,\r\n animate:true,\r\n myid:1\r\n});\r\nvar mapview = Titanium.Map.createView({\r\n mapType: Titanium.Map.STANDARD_TYPE,\r\n region: {latitude:33.74511, longitude:-84.38993, \r\n latitudeDelta:0.01, longitudeDelta:0.01},\r\n animate:true,\r\n regionFit:true,\r\n userLocation:true,\r\n annotations:[mountainView],\r\n height:300\r\n});\r\nvar maprow = Ti.UI.createTableViewRow();\r\nmaprow.add(mapview);\r\n \r\nvar table = Ti.UI.createTableView();\r\ntable.setData([\r\n Ti.UI.createTableViewRow({ title:'buffer row' }),\r\n Ti.UI.createTableViewRow({ title:'buffer row' }),\r\n Ti.UI.createTableViewRow({ title:'buffer row' }),\r\n Ti.UI.createTableViewRow({ title:'buffer row' }),\r\n Ti.UI.createTableViewRow({ title:'buffer row' }),\r\n Ti.UI.createTableViewRow({ title:'buffer row' }),\r\n Ti.UI.createTableViewRow({ title:'buffer row' }),\r\n Ti.UI.createTableViewRow({ title:'buffer row' }),\r\n Ti.UI.createTableViewRow({ title:'buffer row' }),\r\n Ti.UI.createTableViewRow({ title:'buffer row' }),\r\n Ti.UI.createTableViewRow({ title:'buffer row' }),\r\n Ti.UI.createTableViewRow({ title:'buffer row' }),\r\n Ti.UI.createTableViewRow({ title:'buffer row' }),\r\n Ti.UI.createTableViewRow({ title:'buffer row' }),\r\n Ti.UI.createTableViewRow({ title:'buffer row' }),\r\n Ti.UI.createTableViewRow({ title:'buffer row' }),\r\n Ti.UI.createTableViewRow({ title:'buffer row' }),\r\n Ti.UI.createTableViewRow({ title:'buffer row' }),\r\n Ti.UI.createTableViewRow({ title:'buffer row' }),\r\n Ti.UI.createTableViewRow({ title:'buffer row' }),\r\n Ti.UI.createTableViewRow({ title:'buffer row' }),\r\n maprow\r\n]);\r\n \r\nvar win = Ti.UI.createWindow();\r\nwin.add(table);\r\nwin.open();\r\n{code}\r\n\r\nh2. Exceptions\r\n\r\n{quote}\r\n07-18 16:03:26.202: E/TiApplication(2041): (main) [6561,11060] Sending event: exception on thread: main msg:java.lang.IllegalStateException: MapView already created. Android can support one MapView per Application.; Titanium 2.0.2,2012/04/18 12:19,0684d32\r\n\r\n07-18 16:03:26.202: E/TiApplication(2041): java.lang.IllegalStateException: MapView already created. Android can support one MapView per Application.\r\n{quote}", "attachment": [], "flagged": false, "summary": "Android: Ti.Map.View crashes when inside TableView on scroll", "creator": { "name": "tropica", "key": "tropica", "displayName": "Michael Walsh", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tropica", "key": "tropica", "displayName": "Michael Walsh", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK: 2.1.0GA\r\nPlatform OS: Android\r\nPlatform OS Version: 2.2", "comment": { "comments": [ { "id": "244304", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Note that this is possible by using the new Google maps module on SDK 3.0.2 and above: https://marketplace.appcelerator.com/apps/5005?1856365980", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-27T16:32:00.000+0000", "updated": "2013-03-27T16:32:00.000+0000" }, { "id": "415174", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as \"Won't Fix\".", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T22:55:01.000+0000", "updated": "2017-03-22T22:55:01.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }