Use Google Map API v2.0 for lower version of Android - android

I need to use the Google Map API for my android application, but as we are now aware that API versoin 1 is deprecated, I can not use MAP API v2.0 for the lower versions of Android.
So can you please give me any suggestions what alternative can be used to show google map to the lower versions of Android?
Thanks,
Shubhangi.

The Maps API are bundled with Google Play services and are compatible with Android 2.2 and higher. All devices with Android 8 API level support OpenGL 2.0, so devices with Android 2.1 version can't support Google Maps v2. You can check in the Documentation
Note: Note, though, that not all Android 2.2/2.3 devices have the ability to get the Play Services Framework, particularly those devices that never received the Play Store and are stuck with the old Android Market. Android 3.0+ should be fine

Related

Which one to choose as Project build target ? Google APIs or SDK platform

I have been searching but couldn't find the difference between both of these things. I have read other questions in which people have said that we should use Google Apis as build target when we want to integrate Google Maps Api or use other Google apis.
The problem is that i am using maps on projects that were build on simple Android 4.4 not Google API (platform 4.4) and the maps are working just fine on my Galaxy s3.
How are they possibly working?
And if they are working then what is the difference between Google APIs and SDK platform?
Or is the difference only related to emulators?
It is really pointless to use the Google API's now because most if not all things included in that have been deprecated and moved to google play services. Selecting Google API will not do anything except maybe increase the size of your program. The difference being is in addition to the 4.4 SDK you would also get all the Google API stuff with it
You don't need (but it won't hurt you) to use Google APIs if you use Google Maps Android API v2. Google APIs is for when you work with deprecated Google Maps Android API v1 or you program USB.
The google API includes Google Maps and other Google-specific libraries. The Android one only includes core android libraries.
As for which one to choose, I would go with the Android API until you find that you need the Google API; such as when you need Google Maps functionality.
http://code.google.com/android/add-ons/google-apis/index.html is a link to the Google API page.

Google Play Services for Froyo

I updated SDk for android after 4.4 release. I saw that they have bifurcated Google Play Services and Google Play Services for Froyo. What is the reason behind this? Now suppose I want to use integrate Google Map in app how to use these two services for the Google Map Integration ?
Per the Google Play Services 4.0 announcement:
With over 97% of devices now running Android 2.3 (Gingerbread) or newer platform versions, we’re dropping support for Froyo from this release of the Google Play services SDK in order to make it possible to offer more powerful APIs in the future. That means you will not be able to utilize these new APIs on devices running Android 2.2 (Froyo).
If you use the 'Google Play Services for Froyo', you will not be able to use the new features included in Google Play Service 4.0. For Maps, the 4.0 features include
The Maps API enhances map customization features, letting you specify marker opacity, fade-in effects, and visibility of 3D buildings. It’s also now possible to change ground overlay images.

Android apps targeted at Android 2.2 and Google Maps V1

I'm pretty new to Android dev, not so new to Java. Anyhow I'm in the planning stage of my application which will rely heavily on Google map api.
I wanted to jump in to the code today but came across this dilemma. I won't be using any special UI components or anything so new that I would need to set my targeted version to higher than 2.2.
First thing I would like to display a map via Google map api. Anyhow the problem I have is when visiting https://developers.google.com/maps/documentation/android/v1/ To learn more about the API and how to use it I found out that it's no longer supported and has been replaced with V2. What bugged me was the statement that they are no longer releasing api keys for Google maps V1. And the V2 requires minimal Android API to be 17 which puts my app targeted at phones running Android 4.3+ which does not really cover that much devices.
Does this mean my application is a no-go and I have to deal with it being targeted for Android 4.3+ or can I still use V1 and target my app for Android 2.2+
Thanks in advance
The minSdkVersion of apps using the Google Maps V2 API for Android is not 17, but 8.
What you mean is probably the targetSdkVersion which should always be the highest available.
So you're good to go there.

Android geofencing minimum requirements?

Which android version is required for android new Geofencing feature ? Not able to get particular information on Android documentation..
If you are using Google Geofence API you need Google Play services. Devices older than Android 2.2 or devices without the Google Play Store app are not supported.
As #Waza_Be commented it requires API8 and will work on devices with at least Froyo.

Upgrading to the Google Maps Android API 2 monodroid

I have an android application that use Google Maps Android API Version 1 for its map. Now, I want to use Google Maps API Version 2 for on my application (https://developers.google.com/maps/documentation/android/) .
What is more quicker solution to upgrade my projects code to version 2? It looks that all codes changes. I have codes for changing center of map, adding overlays, changing zoomlevel, finding map bound lat/lng and etc.
And Also whether this API Also supports Android versions 2.3 or not?
Thanks
Google Maps v2 is completely different from Google Maps v2, so there probably won't be much code you can save / port over.
Google Maps v2 requires Android 2.2 or higher and Google Play services.
There is a sample for Xamarin.Android up on Github. It targets Android 4.0 and higher but can be easily changed to support Android 2.2 or higher.
The API v2 supports devices from 2.2.
I believe the quickest way to switch to v2 is by removing your MapActivity-based class and all code related to that and creating a new FragmentActivity-based.

Categories

Resources