-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash when Google Map is added #50
Comments
I too have the crashing problem. I'm just not sure if it's only with NappDrawer it happens, but it does happen. A Q&A here discusses it in more detail: http://developer.appcelerator.com/question/151567/google-maps-v2-module-crashes-when-view-placed-in-tab-group And a bugticket on JIRA here: https://jira.appcelerator.org/browse/TIMODOPEN-230 Another JIRA: https://jira.appcelerator.org/browse/TIMOB-13864 The tickets appear to be largely ignored by Appcelerator though, so it would be nice if we could find a solution for this! My temporary workaround has been to create a new view and add the map to that. Then I replace the existing centerView with this new one. This seems the prevent the crash. |
Here's my simple code: var NappDrawerModule = require('dk.napp.drawer'); var leftMenuView = Ti.UI.createView({ var centerView = Ti.UI.createView({ var mapView = MapModule.createView({ var mainWindow = NappDrawerModule.createDrawer({ bitfabrikken, is your workaround something like this? It's still crashing... all the time. I have no problem with the map alone... |
Added a bit to your example code, which makes it work.. But it's weird.
|
Hey it works!! Thanks a lot for the workaround, bitfabrikken! Yes it is a bit weird, but it'll do for now until a better solution comes out. Thanks again. |
Update: Unfortunately, this doesn't work on newer android devices. I tried on Samsung Galaxy W, Android 2.3... it works just fine, but when tried on S3 and Note 3, it crashes everytime... |
The fix works for me on Nexus 4, Nexus 5 and Nexus 7 (the first model). |
@viezel - do you have any ideas on this issue? Maybe it's not your module, but the module it's built on? Or maybe a general Titanium thing? |
im almost sure it has nothing to do with my module. I know their are certain bugs in jira regarding the new map module. |
Viezel, I know you closed this issue, but regardless of what solution I use posted, I cannot get a map drawn in the centerView without crashing the app. I can put it on a setInterval delay of 5000ms and still, once the add method is called - crash. This is a bit of the XML I used in the alloy to set the main view area: |
this is still happening, did anyone find a workaround? |
I have this problem for a long time and finally @bitfabrikken solution works for me. Important thing is, that you have to add mapView after drawer opens. |
App always crashes when I added map to the centerView. There was no problem with the map itself since I've tested it without NappDrawer. Anyone had this figured out - or NappDrawer doesn't support map?
Building with Titanium SDK 3.2, on android, with Google Maps v2 (2.1.3 version module)
Thanks in advance for any help.
The text was updated successfully, but these errors were encountered: