Google map api it’s not work in API27 emulator - android

I can’t use google map with android emulator in API27.
When I open the app, it show nothing ,just google logo show at left-down corner.
But it work in API26 and lower version emulator with the same code.
I know many people have the same problem too.
But there is no solution to fix this problem.
I hope there is any one had fixed it and tell me what’s going on....
Thanks
https://upload.cc/i/4C65rs.png
E/Google Maps Android API: Google Maps Android API v2 only supports devices with OpenGL ES 2.0 and above

Related

Google maps app works on Android 9.0 but not lower

I recently started programming with cordova (using eclipse) for a Google map multiplatform app.
Currently, I am only working on android builds.
The app works well on Android with API 28, it shows a yellow flash screen with blue words then the google maps, makes a call to retrieve some data from my data base and shows it on the map. There is also a lateral black menu bar (working on that content).
But, if I try to execute this app on an Android 7.0 (API 24) or basically any other API lower than 28. The flash screen is completely white with blue words instead of yellow and the Google maps doesn't load (the side black menu does).
I have done some debugging to that and the app still does the call to my data base and retrieves the information. It doesn't show any error (it showed some but I corrected them and didn't solve this issue).
Does anyone have any idea what the problem might be?
Thanks a lot to all of you.
EDIT:
Here is the code and some new logs i got after trying to solve the problem.
https://www.dropbox.com/s/lm8fbsk6v97frq3/www.rar?dl=0
in the map API inicialization i had to take out the our API key since i am not allowed to share it.
Thanks for your interest with my problem. Ask me anything.
I just ran your app on a Nexus S Android 7.0 (API 24) emulator and indeed, your map did not show up at all.
I changed its height from 100% to a fixed size such as height:400px and then it loaded without issues. Switching back to height:100% and then adding position:absolute also worked, and so did wrapping the map in a containing <div> with a given height.
The thing is, a Google map needs to have an explicit height set in order to be displayed at all, but your map and body both do have a height, so upon further code inspection I noticed you're using jquery mobile which has its own CSS. I removed both your jquery mobile's JS and CSS scripts and voila! The map's right there. :)
Check the google play version of your emulator to see if its compatible. On my emulator, and old version of the google maps API would not register or load unless I had fully updated the play store. This could be fixed by downgrading the version of the google maps API you are currently using to a previous version.

Google map not showing on Android 2.3 device

I recently learn how to implements a Google map in my app. It works very well on Android 4.** devices, but then, I try on a 2.3 device and the map now looks like this.
No map, but the UI looks fine, and the distance between the two points sounds good.
I would like to know what's wrong, and I assume it's not a Google API key problem since my app works on more recent devices.
Thanks in advance.
Try Hardware acceleration when you set the view.
http://developer.android.com/guide/topics/graphics/hardware-accel.html
EDIT : Apparently the link I pointed to is says HW Acceleration is only for 3.0+
Thanks #WarrenFaith
Since you see the grid, this is not an API key related issue. When the key is wrong, you can see only gray background and zoom buttons.
This is a connectivity issue. Make sure your device can reach internet and download tiles.
You have to check that the device has OpenGL v2 support:
Specify requirement for OpenGL ES version 2
The Google Maps Android API uses OpenGL ES version 2 to render the
map. If OpenGL ES version 2 is not installed, your map will not
appear. We recommend that you add the following element
as a child of the element in AndroidManifest.xml:
This notifies external services of the requirement. In particular, it has the effect of preventing Google
Play Store from displaying your app on devices that don't support
OpenGL ES version 2.
Here you have the link: https://developers.google.com/maps/documentation/android/start?hl=es#specify_requirement_for_opengl_es_version_2

Google Maps API V2 - InfoWindow miss the marker

I believe the picture says everything. I have my app running on several devices, but ONLY with this particular device of friend of mine (a Galaxy S4) the InfoWindow miss the marker.
My guess it is something related to the very high density of his device (XXHIGH).
I also installed the sample map application from the SKD on his device and the result is the same, which proves that there's nothing wrong with my code:
Any ideas?
Thanks
I suggest posting this on gmaps-api-issues with a screenshot from maps sample app.
Edit:
Posted here: http://code.google.com/p/gmaps-api-issues/issues/detail?id=5439

Google Maps V3 on HDPI Android

Anyone know what might be going on with the Google Maps V3 on HDPI Android devices? When the map loads on my device it zooms to the appropriate level when first loading, but then pops out of the zoom to a much smaller zoom level1. I have changed no code, but this change happened in the last couple days. I found documentation regarding display of Google Static Maps on HDPI devices and am hoping someone can point me in the right direction to correct this issue using v3.
Here are screen shots to show initial and then final:
This may be a problem with the latest nightly release of the Maps API. Try specifying v=3.5 when you load the API.

Pinch to Zoom Google Maps API v3 Android Webkit

I am writing a webkit app, and i'm using google maps api v3. I tried it on a android phone (HTC Desire) but it dosen't pinch to zoom. Note, i don't want to pinch and zoom a web page I want to pinch to zoom a google map v3 map in a web view. Has anyone got this working on android?
It would appear that, currently, you cannot rely on being able to receive pinch-to-zoom events on Android browsers. Here it is in the Android issue tracker: http://code.google.com/p/android/issues/detail?id=11909
works in tablet 3.2 - Amazing pinch to zoom on a map works ! just like ipad. Who would have thought that a new version of android would fix an issue - rather than creating another bug - requiring yet another work around. Android i rate your version control 2 stars out of 5 up from 1 well done..well ...better get back to fixing the incompatibilities in my other apps!

Categories

Resources