Android Studio Google Maps v2 - android

I wonder if anyone has documentation on how to implement Google Maps v2 on Android Studio, the official documentation does not explain this.
Thanks in advance.

Well these steps worked good to me
First, update the version of your android studio to version 0.5.4 or later
Second, make the project as you want only recommend you to create at least 17 ​​API for Google Maps V2 run with no problem and select Google Maps Activity
Third, the good thing about this update is that Android Studio in Manifest.xml and Activity are already configured to do the test directly
Fourth, do not forget to configure and enter your own api_key
Fifth: I recommend to you use Genymotion to test your apps with maps, the emulator is much easier to manage, faster and easier to install Google Play Services
http://www.genymotion.com/
http://www.youtube.com/watch?v=iCRNqCXGNK0

Related

How to run Google Map API V2 on genymotion

I have implemented an android application with Google Map, using v2 Version . i tested the app on a real device . it is working fine , but i want to test it on genymotion also . How can i do that ?
You need to follow the directions posted in this forum: http://forum.xda-developers.com/showthread.php?t=2528952%5d
Long Story Short
Genymotion emulators are missing a set of libraries that real devices have. For example to many features nowadays (such as google maps api related features) you need to have the google-play libraries. Same rule applies for all other third party apis e.g. Facebook SDK.
Some people in the forum (link above) have created such libraries that you install on your Genymotion emulator simply by drag&drop.
Hope it helps.
you have to download gapps from below link and drag and drop in emulator.
https://basketbuild.com/gapps
As others have noted, you need to download the google apps and drag and drop the downloaded zip onto your emulator. Perhaps, the best place to download from is the from the opengapps.org project. Plenty of options there too.
Genymotion emulators are missing a set of libraries that real devices have. For example to many features nowadays (such as google maps api related features) you need to have the google-play libraries. Same rule applies for all other third party apis e.g. Facebook SDK. Some people in the forum (link above) have created such libraries that you install on your Genymotion emulator simply by drag&drop.

Google Play Services error in android emulator (eclipse)

Hey I've been trying since a week now to get the maps thing working on Eclipse. I downloaded all the necessary packages and did everything that they've asked to on the "getting started" page on google's developer site that is meant for developing using Google Maps. But when I run the code in the emulator it tells me, "Google play services is not supported by your device"
Need some help guys as to what to do. Please do let me know about any suggestions.
Yup, you can get Google map V2 in emulator too. I got it please refer this step by step procedure this link which I answered in previous question.
To work with Google Map API v2, you are required to have Google Play services enabled device.
To test your app when using the Google Play services SDK, you must use either:
A compatible Android device that runs Android 2.3 or higher and includes Google Play Store.
The Android emulator with an AVD that runs the Google APIs platform based on Android 4.2.2 or higher.
Update:
I would suggest you to give Genymotion emulator a try.

Google API Level 18 emulator "This app won't run unless you update Google Play services"

I am running an emulator with Google API level 18 but whenever I open my google maps based application I get the error message "This app won't run unless you update Google Play services".
How can I get google play services to run on my emulator? I have looked at other stackoverflow questions but they say to use the latest API, which I already am.
EDIT: It is worth noting i am using the support library
EDIT: Screenshot of my emulator setup:
You need to setup an emulator with the API level you need + the Google API! For every API level there are 2 version of ROM! One with Google APIs and one without! If you choose the first you will be ok to run any app that uses Google Play Services!
You should create emulator with target version Google APIs - API level 18, start it and add Google account (System settings - Add account - Google)
i had the same problem once as i tried to feed my app with dummy-locationdata via emulator.
There is still no map-support for the emulator, though you can workaround and get it running the hard way!
in my eyes, best tutorial for your purpose is THIS TUTORIAL.
On a device, you need to have Google Play Services intalled. I'm not sure if it's possible to have it installed on an emulator. You can try searching for workarounds. But I've had this problem before, I just ended up using a real device.

Android App to BlackBerry Playbook - Google Maps Issue

I'm porting my android app to playbook and keep getting an error related to not supporting Google Maps, however I don't use that anywhere in my project. It's also not mentioned anywhere in my manifest.
I'm at a loss here, not sure what to do next. Any ideas?
Just to update on this: I was able to compile and run the app on the emulator w/ that warning present so - lets see if it gets past approval process, will update.
The Google Maps API for Android is unsupported on the Blackberry Playbook. See https://bdsc.webapps.blackberry.com/android/apisupport/ for a list of what can and cannot be ported.
For now, there is no way around this. If you want to create a Google Maps application for the Playbook, you will need to use the AIR SDK with the Google Maps Flash API

How to integrate Google map with my app in Android2.1?

I am writing an application in android 2.1. I just want to implement Google map for my app. I found this link Google Map. Its good.
But I found out, For google map I have to create a project with a Google API version. Which is Along with Android2.2. But my application is in Android2.1. So How I can integrate Google map with 2.1.
What I am thinking I have to create a new project with Google API2.2 version. Then I have to move all my code from current project to that. Am I wrong?
If I am right, Then will this run on 2.1? I it always run for 2.2 and above only?
You can select Google APIs for 2.1 also. Select Google APIS with 2.0.1 and then follow the link
as mentioned by you.
One thing is sure that for whole application you should include only one api version that can
be Google android 2.1 or google android 2.2, i have jst checked it you can use any one api of
the mentioned above two.. and you will get d same result, without changing your code.....

Categories

Resources