Discussion Forums  >  Maps, Device Location, Tracking

Replies: 8    Views: 323

johnnylonz
Aspiring developer
Profile
Posts: 26
Reg: Aug 11, 2011
Florida
260
09/05/12 11:58 AM (13 years ago)

Maps not showing up in emulator or real device

I'm building an app for Android using BT v 1.5. For some reason no matter what I try I can't get maps to show up in the emulator or a real device (trying to export for release). This is a summary of what I've done: •Set android:debuggable="false" in androidmanifest.xml file •Exported app, created new keystore set to 25 years •Generated MD5 fingerprint, submitted and generated API key through google's developer page •Pasted the key in the resvaluesstring.xml file like so (not the real key): <string name="googleMapsAPIKeyRelease">0oYoJTnGQYNBciyMASfbutxEAZBqAsEjshrbpIw</string> Once I've done this, and I re-export the app using the keystore I created in the original export, and install it on a number of real devices, when you navigate to a map it just shows a blank white grid with a red pin and no map data loads. I've tried completely re-downloading the source code from BT and rebuilding the app from scratch and nothing worked. Anyone have an idea of what I could be missing? I've gone over all the tutorials I could find with a fine-toothed comb over and over and I can't seem to figure it out. Thanks!
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
09/05/12 12:56 PM (13 years ago)
Hi! In res > layout > screen_map.xml, make sure the line: android:apiKey="@string/googleMapsAPIKeyRelease" is set to Release and not Debug. That's around line 12 of the file. Change to Release if it says Debug. Hopefully that was it! Mark
 
johnnylonz
Aspiring developer
Profile
Posts: 26
Reg: Aug 11, 2011
Florida
260
like
09/05/12 01:17 PM (13 years ago)
Wow! That did the trick! Thank you so much!
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
09/05/12 01:18 PM (13 years ago)
Rock on!
 
EMKAY
Aspiring developer
Profile
Posts: 5
Reg: Sep 02, 2012
ATL
2,200
like
09/06/12 07:32 AM (13 years ago)
Hey....im having the same issue...it looks like this right now http://img152.imageshack.us/img152/90/maperror.png All i see is the red pointer on a blank map and the directions will not start running on navigation when clicked.....any suggestions to fix this issue?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
09/06/12 07:43 AM (13 years ago)
Hi @EMKAY, Have you specified your Google Maps API key in the strings.xml file? And signed the apk with your release key? Also...maps don't ever tend to work in the Emulator...you really need to try it on a real device. Mark
 
EMKAY
Aspiring developer
Profile
Posts: 5
Reg: Sep 02, 2012
ATL
2,200
like
09/06/12 09:54 AM (13 years ago)
I did run it on an actual device and incurred same issue.....And im new to developing apps...so when you say "specified your Google Maps API key in the strings.xml file? And signed the apk with your release key?" i am sort of lost.....lol....I would be thankful if you could break it down for me somehow or point me torwards a tutorial...
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
09/06/12 09:56 AM (13 years ago)
Here is a document that shows how to obtain the Google Maps API key. http://www.buzztouch.com/files/howtos/Obtaining_a_Google_Maps_API_Key_v1.0.pdf And a document on doing stuff for Android in general. http://www.buzztouch.com/files/howtos/buzztouch_For_Android-A_Users_Guide.pdf Give those a look. They should help! Mark
 
HowAreYou
I hate code!
Profile
Posts: 54
Reg: Jan 09, 2013
Orlando
6,490
like
01/19/13 12:46 PM (13 years ago)
I know this is a late entry. But I had the same problem with my map location plugin not working and created a little work-a-round: Instead of using the plugin, I simply typed the address I wanted a map to into google maps. Then, I got the url of that page. Next, I created a document from a web-address (URL) screen and plugged in the google maps url page. BOOM!! :)
 

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.