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

Grid, empty Mapview in android 2.3

$
0
0

Hi all,

I've been trying to work days but no way.

The fact is that there is no way to display a mapview on a smartphone with android 2.3 but if it works well on android 4 and above.

I only see the grid and zoom controls on adroid 2.3.

I have successfully installed Google Play Services in the latest version, I've had add mapview directly to the window without success, I have also tried modal window set to false and nothing.

The Api Key I have it configured correctly since I uploaded the application to Google Play and working properly as I said in android 4 and above.

SDK 3.2.3 / 3.3.0

tiapp.xml

<android xmlns:android="http://schemas.android.com/apk/res/android">
        <manifest android:installLocation="preferExternal"
            android:versionCode="10" android:versionName="1.2.0">
            <application android:hardwareAccelerated="true" android:largeHeap="true"/>
            <uses-sdk android:maxSdkVersion="19"
                android:minSdkVersion="10" android:targetSdkVersion="19"/>
            <uses-permission android:name="android.permission.INTERNET"/>
            <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
            <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
            <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
            <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
            <uses-feature android:glEsVersion="0x00020000" android:required="true"/>
            <uses-permission android:name="com.example.app.permission.MAPS_RECEIVE"/>
            <permission android:name="com.example.app.permission.MAPS_RECEIVE" android:protectionLevel="signature"/>
            <application>
                <meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="XXX"/>
            </application>
        </manifest>
    </android>
.js
var Map = require('ti.map');
                var mapview = Map.createView({
                    mapType: Map.NORMAL_TYPE,
                    region: {latitude: 40.6854154,
                        longitude: -17.88848876953125,
                            latitudeDelta:0.1, longitudeDelta:0.1},
                    animate:true,               
                    regionFit:true,
                    userLocation:true,
                    annotations:[pointIni,pointFin] 
                });
Thanks in advance for any help.

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>