Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Ti.Map Module v2 on Android 2.3.x

$
0
0

Hi there! I'm developing an application that shows a simple map layer. I know, ti.map module v2 works only on API_LEVEL >= 10, but I think the solution is closer we can imagine. I've followed the instructions in Ti documentation, and I know that maps communicates with Google (SHA1 correct).

The code is that:

var Map = require('ti.map');
 
var mapview = Map.createView({
    mapType:Map.NORMAL_TYPE,
    width:'100%',
    height:Ti.UI.SIZE,
    top:10
});
Map is shown without render any graphics (only tiles and plus/minus buttons are displayed), but the error is:
[ERROR] :  REQUEST: ERROR
[ERROR] :  REQUEST: java.lang.NullPointerException
[ERROR] :  REQUEST:     at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnectionImpl$HttpsEngine.makeSslConnection(HttpsURLConnectionImpl.java:412)
[ERROR] :  REQUEST:     at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnectionImpl$HttpsEngine.makeConnection(HttpsURLConnectionImpl.java:378)
[ERROR] :  REQUEST:     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:205)
[ERROR] :  REQUEST:     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:614)
[ERROR] :  REQUEST:     at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:268)
[ERROR] :  REQUEST:     at com.google.maps.api.android.lib6.b.l.run(Unknown Source)
[ERROR] :  REQUEST:     at java.lang.Thread.run(Thread.java:1019)
Devices: Google Nexus One 2.3.7 / Moto Droid Razr 2.3.7 Ti SDK: 3.4.0.GA / Ti Cli: 3.4

There is any workaround to that or any alternative? Thank you!


Viewing all articles
Browse latest Browse all 8068

Trending Articles