Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17085] Android: Map module V2 not rendering map on Android 2.3.X

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-10-24T22:34:46.000+0000
Affected Version/sRelease 3.2.1, Release 3.2.3
Fix Version/sRelease 3.4.1, Release 3.4.2, Release 3.5.0, Release 4.0.0
ComponentsAndroid
Labelsmodule_googlemapv2, qe-manualtest, qe-testadded, supportTeam
ReporterMarco Cota
AssigneeHieu Pham
Created2014-06-06T17:11:26.000+0000
Updated2014-11-21T18:48:24.000+0000

Description

Issue

When using the Map Module 2.1.3 for Android the map tiles are not being rendered correctly in devices with Android SDK 2.3.x but they work correctly on Android 4.X

Steps to repro

1. Run the testcase on an Android device 2.3.x Expected Result: The map will be rendered on screen Actual Result: The mapview is rendered and show on screen but the map tiles are never showed (Attachement device-2014-06-06-120722.png).

Test Case

var win = Ti.UI.createWindow();
var MapModule = require('ti.map');
var mapObj = MapModule.createView({
		width: Ti.UI.FILL,
		height: Ti.UI.FILL,
		userLocation: true
	});
	
win.add(mapObj);
win.open();

Attachments

FileDateSize
Bug_Testing.zip2014-06-06T17:11:26.000+00002456755
device-2014-06-06-120722.png2014-06-06T17:11:26.000+000015202

Comments

  1. Lokesh Choudhary 2014-06-06

    The issue is reproducible. I do not see maps on 2.3.X device. Environment: Appc Studio : 3.3.0.201405271647 Ti SDK : 3.3.0.v20140605150555 Mac OSX : 10.8.5 Alloy : 1.4.0-beta2 CLI - 3.3.0-beta2 Code Processor: 1.1.1 Map module : 2.1.4 Sony Xperia - android 2.3.7
  2. Ping Wang 2014-10-22

    Still reproducible with Ti SDK 3.4.0.GA. The logcat shows:
       D/REQUEST ( 4764): Connection opened to:https://clients4.google.com/glm/mmap/api
       D/REQUEST ( 4764): Open Connection
       D/REQUEST ( 4764): DRD(605): 62|108
       D/REQUEST ( 4764): Close
       D/REQUEST ( 4764): Error processing: com.google.maps.api.android.lib6.b.d@40959250 not retrying
       D/REQUEST ( 4764): Retrying: com.google.maps.api.android.lib6.gmm6.m.m@40900b08
       E/REQUEST ( 4764): ERROR
       E/REQUEST ( 4764): java.lang.NullPointerException
       E/REQUEST ( 4764): 	at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnectionImpl$HttpsEngine.makeSslConnection(HttpsURLConnectionImpl.java:412)
       E/REQUEST ( 4764): 	at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnectionImpl$HttpsEngine.makeConnection(HttpsURLConnectionImpl.java:378)
       E/REQUEST ( 4764): 	at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:205)
       E/REQUEST ( 4764): 	at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:614)
       E/REQUEST ( 4764): 	at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:268)
       E/REQUEST ( 4764): 	at com.google.maps.api.android.lib6.b.l.run(Unknown Source)
       E/REQUEST ( 4764): 	at java.lang.Thread.run(Thread.java:1027)
       
    Similar to TIMOB-17877.
  3. Hieu Pham 2014-10-23

    ti.map module PR: https://github.com/appcelerator-modules/ti.map/pull/67 master PR: https://github.com/appcelerator/titanium_mobile/pull/6256 3_4_X PR: https://github.com/appcelerator/titanium_mobile/pull/6274 3_4_1 PR: https://github.com/appcelerator/titanium_mobile/pull/6273
  4. Ewan Harris 2014-10-27

    Verified fix on: Mac OSX 10.10 Appcelerator Studio, build: 3.4.1.201410191611 Titanium SDK build: 3.4.1.v20141024151719 Titanium CLI, build: 3.4.1-dev Alloy: 1.5.1 Samsung Galaxy S2 (2.3.6) Using the code provided I built to the device above and when the app loaded the map was displayed. Closing ticket.

JSON Source