user1457922
user1457922

Reputation:

Android Google Map not loading

Before I start, yes, I have searched and, no, the other related topics littered with (or without) solutions did not help me.

I recently started programming in Android, so I'm far from experienced. However I'm noticing quite some resemblance to C# in terms of writing which made it a logical choice for me.

Currently working on a quick test app that's supposed to display the GMap in a fragment, however, nothing is coming up apart from a light grey background and the + and - signs towards the bottom right.

The logcat depicted the following error:

08-29 08:28:48.190: E/Google Maps Android API(5147): Failed to load map. Error contacting Google servers. This is probably an authentication issue (but could be due to network errors).

Okay, now I'm thinking something went wrong with the API stuff, though I followed most of what's displayed on this page. I suppose I could ask the author but most of the others seem to have luck & joy with similair methods & code so the issue must be specificly me. However I did find this page, but it is now an older topic with no solutions at all.

I'm testing this on an actual android device, Galaxy S2, and everything else seems to work fine apart from this bit.

I used the keytool, wrote the SHA-1 fingerprint I got from the keytool (linked to debug.keystore), and put this in the console, along with what I'm gonna call my namespace. I retrieved the API key, stuck it in the manifest and launched the app only to burst into tears.

I tried multiple things up to this point over the past few days. One completely prevented the app from booting, while another even gave me a bright yellow map (with no streets or info, just the interface).

Any suggestions/hints/tips?

Upvotes: 3

Views: 11000

Answers (2)

user1457922
user1457922

Reputation:

@silvia_aut Was right. My issue turned out to be that I was running the app directly from within Eclipse (thus always with a debug configuration it appears).

I followed this tutorial, followed by downloading an AppInstaller app from the store, putting the app in the root folder and installing the app through the AppInstaller. And everything seems to be working now.

Thanks!

Upvotes: 0

Related Questions