Archive | Fail Log RSS for this section

LeafletJS and Android WebView crash on first startup

After one month of crazy panic to get my jquerymobile/leafletjs application working on a webview in Android without crash on first run, I found the solution:

// Magic code
webView.freeMemory();
webView.setLayerType(WebView.LAYER_TYPE_SOFTWARE, null);

I hope could be useful for someone.

Advertisement