Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-12125

Android: Implement support for Google Maps API V2

    Details

      Description

      In Titanium we are using, as far as I know, the API v1 of the Google Maps. This is getting deprecated and we're seeing some developers running into problems already. The map is not being displayed in production. Our docs are sending us to a webpage that no longer exist: http://code.google.com/android/maps-api-signup.html
      We need to implement API v2

      https://developers.google.com/maps/documentation/android/

      Testing Steps:

      1. Run app.js in examples/
      2. Add this to tiapp.xml

      <manifest>
              	<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
         			<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
                  <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
                  <permission android:name="com.map.permission.MAPS_RECEIVE" android:protectionLevel="signature"/>
                  <uses-feature android:glEsVersion="0x00020000" android:required="true"/>
                  <uses-permission android:name="com.map.permission.MAPS_RECEIVE"/>
                  <application>
                      <meta-data
                          android:name="com.google.android.maps.v2.API_KEY" android:value="API KEY HERE"/>
                  </application>
              </manifest>
      

      3. Replace "API KEY HERE" with real API key, which can be obtain from google. You can find instructions of how to obtain key here: https://developers.google.com/maps/documentation/android/start#the_google_maps_api_key

      4. Make sure the testing device has Google Play installed. Otherwise maps wont work

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hpham Hieu Pham
                Reporter:
                penrique Pedro Enrique (Inactive)
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-15217
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code