Discussion Forums  >  Maps, Device Location, Tracking

Replies: 15    Views: 228

DeckG
Aspiring developer
Profile
Posts: 36
Reg: Apr 18, 2012
Oamaru, New Zea...
1,810
06/06/12 04:21 PM (13 years ago)

Maps and API key Buzztouch V2

Hi, Spent the last day and a half trying to get the google maps plugin working. I've installed the keystore in eclipse Created debug and release keys on the Google API webpage Installed the keys in strings.xml Tried changing android:debuggable="true" and "false" But maps will not show on the device. I tried changing android:apiKey="@string/googleMapsAPIKeyDebug" to android:apiKey="@string/googleMapsAPIKeyRelease" in screen_map.xml but still not working. In the Logcat I'm seeing java.io.exception: server returned: 3 at android_maps_conflict_avoidance.com.google...... etc Anyone have any idea where I should go from here. The maps is almost the last thing I have to sort out before I demonstrate my new skills to my client. Cheers, Derek
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
06/06/12 04:26 PM (13 years ago)
Two suggestions: Bury, burn, drive a stake thru (wooden), hang, tar & feather the debug key. Read my Buzztouch & Google maps article. www.MySkylla.com Fred
 
DeckG
Aspiring developer
Profile
Posts: 36
Reg: Apr 18, 2012
Oamaru, New Zea...
1,810
like
06/06/12 04:36 PM (13 years ago)
Thanks Fred, I went through your article countless times yesterday. I did find a forum entry that stated that the release key will only work if the app has been downloaded from the android store, is that true? D
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
06/06/12 04:49 PM (13 years ago)
that the release key will only work if the app has been downloaded from the android store, is that true? D Not to my knowledge. It's not a requirement per Google. Fred
 
DeckG
Aspiring developer
Profile
Posts: 36
Reg: Apr 18, 2012
Oamaru, New Zea...
1,810
like
06/06/12 05:48 PM (13 years ago)
Still not working. MapActivity Couldn't get connection factory client Am going to completely strip everything down and start from scratch after lunch, if this doesnt work then I'll just use a web page with an embedded map. D
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/06/12 06:23 PM (13 years ago)
Hi D, Is the problem that you're getting gray map tiles when running your app in the emulator? If so, do everything you did above, but then create a release version of your app using the release key. Then install the apk to your emulator using this method: http://www.androidaz.com/development/how-install-application-and-copy-files-android-emulator That should take care of it! Mark
 
DeckG
Aspiring developer
Profile
Posts: 36
Reg: Apr 18, 2012
Oamaru, New Zea...
1,810
like
06/06/12 06:51 PM (13 years ago)
Hi Mark, Thanks for that, but the problem is no map tiles on the galaxy sII, just a grid pattern. Any ideas before I find a bucket of water for the laptop and phone to put them out of their misery? Derek
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/06/12 06:54 PM (13 years ago)
Hi Derek, Yeah...same solution. Just create an apk with your release key instead of the debug key...keeping all the other stuff you mentioned above the same...and then install that apk onto your device. Remember to delete the other first. The issue seems to be that map tiles don't work with a debug key for some reason...at least that's been my experience. http://www.buzztouch.com/resources/Common_Android_Errors_and_Solutions_v1.0.pdf Mark
 
Arubaman
Aspiring developer
Profile
Posts: 636
Reg: Oct 20, 2011
Akron
16,910
like
06/06/12 07:18 PM (13 years ago)
In 1.5 Debug key always worked for me if I put the key under strings.xml and screen_map.xml not sure if the same will work under 2.0
 
DeckG
Aspiring developer
Profile
Posts: 36
Reg: Apr 18, 2012
Oamaru, New Zea...
1,810
like
06/06/12 07:23 PM (13 years ago)
Installing the release version manually on my phone worked! Now to sort out the accuracy of the pins. Bit of a pain to install manually though, anyone have any ideas where in my workflow I could fix this or is it a problem with the galaxy sII?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/06/12 07:27 PM (13 years ago)
Not a problem with the Galaxy SII in particular. And not sure why it's an issue at all. You can connect your device to your computer, run Eclipse, and export to the device. But, since I don't have an Android device, not sure how to do that. Google! Mark
 
DeckG
Aspiring developer
Profile
Posts: 36
Reg: Apr 18, 2012
Oamaru, New Zea...
1,810
like
06/06/12 07:28 PM (13 years ago)
Exporting to the device didn't work, but I'm happy with the maps working for my demo to the client. Next on my list is how to place a call to the market if the app needed is not installed......
 
DeckG
Aspiring developer
Profile
Posts: 36
Reg: Apr 18, 2012
Oamaru, New Zea...
1,810
like
06/06/12 07:31 PM (13 years ago)
p.s. this is the best forum I've ever used for response time, usually have to wait a day or so for replies as live in New Zealand!
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/06/12 07:38 PM (13 years ago)
Yeah, this forum rocks! People on it pretty much 24/7. Feel free to PM me also if you have any questions! Mark
 
DeckG
Aspiring developer
Profile
Posts: 36
Reg: Apr 18, 2012
Oamaru, New Zea...
1,810
like
06/06/12 07:41 PM (13 years ago)
Much appreciated Mark, until 6 months ago the last programming I did was with a c64! Now writing php, java and html5, big change in career from being a nurse!
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/06/12 07:55 PM (13 years ago)
Sweet! There are a few other nurses/healthcare people on the forums who have pumped out some amazing apps! Can't wait to see yours! Mark
 

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.