{ "id": "155626", "key": "AC-3350", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2016-03-20T19:02:24.000+0000", "created": "2016-03-10T22:35:46.000+0000", "labels": [ "android", "crashing", "map", "snapshot", "snapshot_not_working_correctly" ], "versions": [ { "id": "17032", "name": "Appcelerator Studio 4.3.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-20T19:02:24.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": "14550", "name": "Appcelerator Modules", "description": "Please enter tickets related to Modules here." } ], "description": "Hi guys,\r\nI have problem with Google maps integration on Android app. I need to add small map view to scrollable as shop detail info. On iPhone, everything works fine. On android, when I add mapView to mainView, app crashes. So I tried to add small mapView to another window, wjich is now appearing correctly and tried to convert it to image somehow. I read documentation and found out, that there is snapshot() method for Android and eventlistener onsnapshotready. Problem is, that this method does nothing for me and eventlistener never gets fired, so I can't get image from current map - I call this method in app.js after map creation. I tried to create template window and add map to it and add eventlistener(open) and there call mapView.snapshot - this crash application.\r\nIs there another way to convert map to image(on background, without displaying it)? Or how to solve crashing when I add map view to another view?(scrollview in my case). \r\nI use nappDrawer as side menu, I wrote some time ago problems with maps and nappDrawer and it should be fixed now... \r\nNote: I test on device, not in emulator(Motorola Moto G2, Android 4.4.4)\r\nThank you for your answer.\r\nBest regards,\r\nMarian Kucharcik", "attachment": [], "flagged": false, "summary": "[Android] Map module View method snapshot not working correctly", "creator": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "subtasks": [], "reporter": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "environment": "OSX El Capitan\r\nTiSDK 5.2.0 GA", "comment": { "comments": [ { "id": "379616", "author": { "name": "jnaher", "key": "jnaher", "displayName": "Jebun Naher", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nThanks for your report. Could you please share a runnable test case with steps to reproduce and environment so that we can figure out this issue.\r\n\r\nRegards.", "updateAuthor": { "name": "jnaher", "key": "jnaher", "displayName": "Jebun Naher", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-03-13T10:21:36.000+0000", "updated": "2016-03-13T10:21:36.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }