Discussion Forums  >  Maps, Device Location, Tracking

Replies: 11    Views: 103

MikeWhite
Lost but trying
Profile
Posts: 6
Reg: Dec 26, 2012
Grove, Oxfordsh...
4,810
03/05/13 03:53 AM (11 years ago)

Grey tiles again...

Hi everyone, I had really hoped not to have to post a problem quite so soon but... OK, I'm running this on an Android device not the emulator. Despite having appropriate v2 API keys for Google Maps and inserting them into the strings.xml file I'm still seeing grey tiles on loading the custom map screen. I have set debuggable to false in AndrodManifest.xml and downloaded and recompiled more times that I care to remeber to no avail. Interestingly, when I tap and call up driving directions and then go back to the map it displays perfectly normally. Is there something I'm still missing? Any suggestions gratefully received! thanks! Mike
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
03/05/13 05:31 AM (11 years ago)
one last item you may have forgotten; in your screen_map.xml file, make sure the line reads: android:apiKey="@string/googleMapsAPIKeyDebug" if you signed with your Debug Key or android:apiKey="@string/googleMapsAPIKeyRelease" if you signed with your release. Cheers! -- Smug
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
03/05/13 06:18 AM (11 years ago)
I echo what @SmugWimp about the xml file and the tiles will show up in the emulator now also. LA
 
MikeWhite
Lost but trying
Profile
Posts: 6
Reg: Dec 26, 2012
Grove, Oxfordsh...
4,810
like
03/05/13 06:42 AM (11 years ago)
Thanks Smug but the line is already android:apiKey="@string/googleMapsAPIKeyRelease" Mike
 
MikeWhite
Lost but trying
Profile
Posts: 6
Reg: Dec 26, 2012
Grove, Oxfordsh...
4,810
like
03/05/13 07:04 AM (11 years ago)
Thanks Smug but the line is already android:apiKey="@string/googleMapsAPIKeyRelease" Mike
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
03/05/13 07:24 AM (11 years ago)
Hi @MikeWhite, You would put your release key in there, but if your using the Google Maps v2, then I don't think it's compatible with buzztouch yet. Don't hold me to this but @GoNorthWest posted about the v2 about a week ago. LA
 
MikeWhite
Lost but trying
Profile
Posts: 6
Reg: Dec 26, 2012
Grove, Oxfordsh...
4,810
like
03/05/13 07:45 AM (11 years ago)
Ah, that explains a lot... I'll make do with a link to a native app call rather than a location map then. Thanks LA Mike
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
03/05/13 07:47 AM (11 years ago)
Your welcome friend! LA
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
03/05/13 09:37 AM (11 years ago)
Hi Mike, Is the key you're using a Google Maps API v2 key or a Google Maps Android v1 key? They're actually quite different. One is a key that you use on a website, and the other is specifically for Android apps. It looks like you might still be able to sign up for a key here: https://developers.google.com/maps/documentation/android/v1/maps-api-signup Mark
 
MikeWhite
Lost but trying
Profile
Posts: 6
Reg: Dec 26, 2012
Grove, Oxfordsh...
4,810
like
03/05/13 10:05 AM (11 years ago)
You Sir, are a gentleman and a scholar! I didn't expect to be able to still get an old v1 key but it worked a treat once I did. Thanks Mike
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
03/05/13 10:08 AM (11 years ago)
Rock on! Glad we got things worked out. Guard that key closely until buzztouch makes the changes to support the v2 Android API. As long as you sign the app with the same release keystore you used to generate the api key, you can use it on multiple apps. And...if you used your debug.keystore to generate the api key, you might want to quickly whip up a release keystore and grab an api key with that as well. Mark
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
03/05/13 11:24 AM (11 years ago)
Nice catch @GoNorthWest! LA
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.