1 Replies - 799 Views - Last Post: 23 September 2013 - 03:44 AM

#1 GaryDoo   User is offline

  • D.I.C Head

Reputation: 5
  • View blog
  • Posts: 142
  • Joined: 10-February 13

Google Maps works on newer devices but not on older devices

Posted 20 September 2013 - 01:33 AM

I'm really hoping someone can help me. I'm using google maps in an application. I am working on someone else's code so I'm not sure how to fix this problem. The code checks to see if textureview is supported, if it is use it else use surface view. The maps work perfectly with newer devices, however, when testing it on a htc desire 2.2.2, there are no maps displayed. It actually says in the logcat authentication error, I'm not sure how this is possible because there isn't any authentication error when running on newer devices.

The code used is from this library

https://github.com/N...apFragment.java

In the services section of the Google API's console Google Maps Android API v2 only is set on. Google play services are installed

The authentication error I think is unusual as there isn't an issue with the newer devices, it says authorisation error: please ensure the key and the fingerprint certificate match those in the api console. When I check, the key matches but the finger print doesn't. This is strange and the key was generated with use of the fingerprint in the api console. Plus there's no authorisation error with the newer phones...does this make any sense to anyone?

This post has been edited by GaryDoo: 20 September 2013 - 01:34 AM


Is This A Good Question/Topic? 0
  • +

Replies To: Google Maps works on newer devices but not on older devices

#2 GaryDoo   User is offline

  • D.I.C Head

Reputation: 5
  • View blog
  • Posts: 142
  • Joined: 10-February 13

Re: Google Maps works on newer devices but not on older devices

Posted 23 September 2013 - 03:44 AM

For anyone that might come across this issue in future... This line
holder.setFormat(PixelFormat.RGB_888);

of the git hub library code was preventing the map from being displayed, it wasn't anything to do with authorization. The authorization issue was that I wasn't using the correct debug key, but when I had sorted this issue, the maps not displaying was still causing hassle.

So after much debugging and commenting of code, I discovered that the above line is the culprit. So I added a simple check and it's sorted
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1