I'm migrating an app from Google Maps Android API v2 to Google Maps Android API for Business following instructions here : https://developers.google.com/maps/documentation/business/mobile/android/config#migrate_an_existing_application
This should be very straightforward but unfortunately after replacing all the com.google.android.gms.maps references to com.google.android.m4b.maps, the app is compiling right but the map is not showing : I get a gray rectangle instead.
One possible reason (and actually one thing I don't understand so far) is that the API key is the exact same as the one I used for Google Maps Android API. Logically, there should be a personal code to enter somewhere, something like the Client ID / Crypto key I've been sent by Google.
Can anyone help me?
From the documentation link below ,
https://developers.google.com/maps/documentation/business/mobile/android/auth
there seems to be a hidden service named "Google Maps Mobile SDK service"
which will be enabled by Google Enterprise Support when you sign up for the Google Map Mobile SDK for Business.
Once we purchase Business licence, enable this service in our project
and generate a Map V2 API key using same procedure for non business version
we should be able to see the tiles loading on Android Device.
Note:This observation is only based on documentation link above and not an experimented one.
Related
When I use Google maps api v2, Google maps comes with Google logo on lower left and some more trademark on lower right.
But recently I came across an app on play store Fake Location Spoofer Free. This app has a modified Google Logo as shown in below image
I Googled how can I modify Google logo but I could not find anything relevant. So anyone has any idea how they modified it? One more thing, I used this app on Bluestacks app player, this is the only app in which map is rendering very well. So what so special with this app. I used other apps too like FakeGps but it is not rendering well in Bluestacks app player.
Using the Android hierarchyviewer tool to find the ID of the Google logo in the view hierarchy, then get a reference to this view using findViewById and changing its visibility.
However, I would first read the Google Maps ToS to ensure this is not a violation subject to legal implications.
Spoofer app is using Google maps api version 1. Google has deprecated api version 1, so new developers can not use it. But the apps using api version 1 can continue with this. Map container has been changed in latest api, that's why apps using latest api version is not rendering correctly on Bluestacks.
We are using google map android api 2.0 for providing map functionality in our android application.
In our application Google map will be used for capturing and showing location on below use cases .
Whenever a client opens the application (from androiddevice ) depending upon location
services current location will be captured and using reverse geocoding process
appropriate address will be generated.
In reverse flow if any end user wants to enter address manually, using geocoding Service
appropriate location will be showed on the map.
Here are my questions
1>> What is the daily map load(api calls) limit for google map android api 2.0 as there is for google map javascript api 3.0(25k map loads per day)?
2>> What is the geocoding(android.location.Geocoder) limits(No. of geocoding request) per day?we are not using server side geocoding which limit is 2500 free request per day.Does this limit applies to android geocoding(android.location.Geocoder)?
3>> Our app is for government authority and city citizen will be using it,for that can I use google map android api 2.0 or I have to purchase Google Maps Mobile SDK for Business?
4>> what is the difference between Google Maps Mobile SDK for Business and Google Maps Android API 2.0?difference in terms of map loads per day and gecoding limits ?
5>> In what case scenario I should use Google Maps Mobile SDK for Business and Google Maps Android API 2.0?
Any answer clarifying above questions will be really helpful!!!
Thanks in advance
The accepted answer is misleading because although the API console shows no limits on the Maps API, you will be contacted by Google to enable billing or get a Maps for Business licence if the usage of Maps API stays high consistently.
Here are the differences in the usage quotas between the Google Maps Android API and Google Maps API for Business: https://developers.google.com/maps/licensing
Below are the key differences in the SDK of the two APIs:
https://developers.google.com/maps/documentation/business/mobile/android/#comparing_versions
P.S. The SDK comparison table above says that Maps for Mobile SDK is available only as a static library, but if you read the previous paragraph on the same page you can see that you can also get the latest version of Maps for Business SDK through the Android SDK Manager.
I'm a GDE for Google Maps (not Googler), and I asked these questions to the Google Maps team before.
1) No limitation for Google Maps Android API v2.
See the Google APIs Console.
2) I heard no limitation for the android.location.Geocoder from Google Maps team,
because of it's part of Android System.
Read this answer: Android Geocoder quota limits
3) You can use both. But if you want to distribute it without online store, you should contract with the business agreement. Follow the TOS 9.1.2
https://developers.google.com/maps/terms#section_9_1_2
4) There is no support by Google for Google Maps Android API v2.
Read this page.
https://developers.google.com/maps/documentation/business/mobile/
I am trying to programmatically obtain the home/work address stored in Google Maps.
It is present (at least) in the Android version of Google Maps, under "My Places" in the web version, and it is used by Google Now.
I have looked at the API docs and the Android SDK, but have found no trace of it.
Anyone know if it is possible?
Thanks.
Home and Work locations from Google Maps are not available in any of the Google Maps APIs, it's not possible to access these locations via the APIs.
I would file a Feature Request on the Issue Tracker to express your interest and share some use cases with the API team so they can consider this moving forward.
Is there a way to use the offline mode in Android apps using the Google Maps API?
Any direction to a tutorial or source code would be a massive help. I've been searching for hours without any luck. I know Google has released a way of using maps offline, but is it available for Android developers?
See this solution or this one. Basically you just create your own tileprovider and access tiles locally. It is totally doable with the v2 API. API Reference
There's some false information floating around out there that the v2 Google Maps API requires an Internet connection. There was a but where the API would require a single access after app install to verify with Google Play services, but I believe this has been fixed.
See this and this.
I am new in android programming, I had problem in showing Map with getting the location that is touched, could any one help. Here please me code bellow. Thank you in advance.
Note: I took the code from this site, I used displaying the Map and it was working but when I am trying to use the last code in the site for display the touch location, does not work.
After seeing the link you have given for code reference .i have seen that you are developing with the old outdated API V1 for android which will not work now because the new Maps API V2 for android is now applicable.
Find more about the new API HERE on Android Developer Site.
The API is now distributed as part of the Google Play services SDK,
which you can download with the Android SDK Manager.
Maps are now encapsulated in the MapFragment class, an extension of Android's Fragment class.
Now you can add a map as a piece of a larger Activity. With a
MapFragment object, you can show a map by itself on smaller screens,
such as mobile phones, or as a part of a more complex UI on
larger-screen devices, such as tablets.
Because maps are encapsulated in the MapFragment class, you can
implement them by extending the Android standard Activity class,
rather than extending the MapActivity used in version 1.
The Maps API now uses vector tiles. Their data representation is
smaller, so maps appear in your apps faster, and use less bandwidth.
Caching is improved, so users will typically see a map without empty areas.
Maps are now 3D. By moving the user's viewpoint, you can show the map with perspective.
See my blog posts i have tried to summarize all there is needed to build an App with Google Maps API V2 for Android.
Solution to Problems with Maps API V2(using google_play_services_lib).
Creating an Android App with Maps API V2 for minSDK=8 (Android 2.2 Froyo).
Creating an Android App with Maps API V2 for minSDK=11 (Android 3.0 HoneyComb).
I've played with the Google Maps Android Library V2 a bit.
Here is an example I did that works, see if it can help you.
I stripped out my own API key, but i've included many different parts including the need to setup:
http://www.digitalopium.com/android-google-maps-api-tutorial/
-Debug/Retail Certificates and the SHA-1 key
-Google Project and the Android Map API key
-Google Play services via the Android SDK
-Project setup including the manifest file and code snippets.
Google has changed the method of obtainig map keys, previously it was using MD5 fingerprint
Now you can follow the link to integrate the map
Integrating google maps in android applicaiton
This tutorial has a section about getting location from touched position. Hope it will help you. Google Maps Android v2 Tutorial