Hi I've spent the last few days trying to make work the ti.map module inside an android App. I have read and followed all the posts, articles, examples, I could find but still not luck.
When I open the map I get a blank black screen and after few seconds an alert says that the app has stopped working. This is happening both on emulator and device.
I'm using SDK 3.1.2.GA
I went back to the example inside the module ti.map and set a new app from scratch and even in this app the map is not working and app stops working.
This is my app.js. It is a very basic app copied from documentation
I have obtained my dev SHA1 dev key and used to get an api key. I pasted it in the tiapp.xml (which can be seen here). I have replaced my app id in the required tiapp places.
Can you please help me with this?
Thank you
Luca
Tiapp.XML<?xml version="1.0" encoding="UTF-8"?><ti:app xmlns:ti="http://ti.appcelerator.org"> <id>it.neting.googlemapv2test</id> <name>Google Map V2 Android Test</name> <version>1.0</version> <publisher>luca</publisher> <url>http://</url> <description>not specified</description> <copyright>2013 by luca</copyright> <icon>appicon.png</icon> <persistent-wifi>false</persistent-wifi> <prerendered-icon>false</prerendered-icon> <statusbar-style>default</statusbar-style> <statusbar-hidden>false</statusbar-hidden> <fullscreen>false</fullscreen> <navbar-hidden>false</navbar-hidden> <analytics>true</analytics> <guid>7a42ba5c-3868-490d-bb85-1289f7014010</guid> <property name="ti.ui.defaultunit" type="string">system</property> <iphone> <orientations device="iphone"> <orientation>Ti.UI.PORTRAIT</orientation> </orientations> <orientations device="ipad"> <orientation>Ti.UI.PORTRAIT</orientation> <orientation>Ti.UI.UPSIDE_PORTRAIT</orientation> <orientation>Ti.UI.LANDSCAPE_LEFT</orientation> <orientation>Ti.UI.LANDSCAPE_RIGHT</orientation> </orientations> </iphone> <android xmlns:android="http://schemas.android.com/apk/res/android"> <supports-screens android:anyDensity="false" android:largeScreens="false" android:normalScreens="true" android:smallScreens="true" android:xlargeScreens="false"/> <uses-sdk android:minSdkVersion="10"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION"/> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> <!-- Allows the API to download data from Google Map servers --> <uses-permission android:name="android.permission.INTERNET"/> <!-- Allows the API to access Google web-based services --> <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/> <!-- Specify OpenGL ES 2.0 as a requirement --> <uses-feature android:glEsVersion="0x00020000" android:required="true"/> <!-- Replace <com.domain.appid> with your application ID --> <uses-permission android:name="it.neting.googlemapv2test.permission.MAPS_RECEIVE"/> <permission android:name="it.neting.googlemapv2test.permission.MAPS_RECEIVE" android:protectionLevel="signature"/> <!-- TI_MANIFEST --> <application android:debuggable="true" android:icon="@drawable/appicon" android:label="Muro Dipinto" android:name="MuroDipintoApplication"> <!-- TI_APPLICATION --> <activity android:configChanges="keyboardHidden|orientation" android:label="Muro Dipinto" android:name=".MuroDipintoActivity"> <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> </activity> <activity android:configChanges="keyboardHidden|orientation" android:name="org.appcelerator.titanium.TiActivity"/> <activity android:name="ti.modules.titanium.ui.android.TiPreferencesActivity"/> <service android:exported="false" android:name="org.appcelerator.titanium.analytics.TiAnalyticsService"/> <meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="AIzaSyAxx0noeZPk3tLKE6rlYGDVtJ91yNtEegI"/> </application> </android> <mobileweb> <precache/> <splash> <enabled>true</enabled> <inline-css-images>true</inline-css-images> </splash> <theme>default</theme> </mobileweb> <modules> <module platform="android">ti.map</module> </modules> <deployment-targets> <target device="android">true</target> <target device="blackberry">false</target> <target device="ipad">false</target> <target device="iphone">false</target> <target device="mobileweb">false</target> <target device="tizen">false</target> </deployment-targets> <sdk-version>3.1.2.GA</sdk-version> <property name="ti.deploytype">test</property></ti:app>