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
Related
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.
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
Is there any way (or any API) that we can use to check if TSP Hovering is supported by android devices?
There are listeners added in android API 14 i.e. View.OnHoverListener. But this does not show if Finger Hover is supported.
Here is link which describes Samsung doesn't provide any such API.
I want generalized solution using Android APIs.
Does anyone have any idea about this or any hack ?
Since I only have a restriction on V3 in my api registration:
The solution defaults to the latested. Today Google Maps API was updated to version 3.8. Now my marker touch sensitivity on my iPAD 2 is a lot less sensitive. I have to be exact before it recognizes the custom marker touched that has draggable:true.
When I set the library to V3.7 all is fine.
Is there something that I need to change in V3.8 to relax the sensitivity of marker objects to touch recognition?
This problem is also in V3.9. It happens when the draggable=true is set on a marker. It happens in iOS 5.1 and Android 3.2
See related post in Bugs.
Complete beginner here so forgive me.
Porting an iOS App over to Android. We have custom image tiles laid over google maps. On iOS the streetmap displays as usual outside of our custom image tiles however on the Android version it is only showing a blank grid and we can't figure it out. The location works however it's just not showing the map.
We've tried a couple of different devices and the issue is the same across the board.
Any suggestions? If there is more info that I can provide that might help narrow the issue down, just ask.
EDIT: The device we are testing it on is a HTC. Apparently it works on a Nexus. Known compatibility issue?
If your MapView is not loading standard map tiles, either:
you do not have the INTERNET permission, or
you do not have an Internet connection, or
you are not using the right Maps API key for the signing key