Discussion Forums  >  Maps, Device Location, Tracking

Replies: 25    Views: 111

ram
Android Fan
Profile
Posts: 15
Reg: Aug 27, 2012
bangalore
1,700
08/31/12 10:03 PM (13 years ago)

emulator not showing map location

after getting api key and change in soure code(string,map.xml,manifest.xml) emulator not showing any location (it simply blank line page) where i should change next?
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
08/31/12 10:07 PM (13 years ago)
The emulator wont show the map image because you have to export the signed apk file in order to show the map images. Just export the signed content of your project with your keystore and then test that apk file on your device.
 
ram
Android Fan
Profile
Posts: 15
Reg: Aug 27, 2012
bangalore
1,700
like
08/31/12 10:24 PM (13 years ago)
hi frd i got ur point , by use of The Eclipse Keytool Plugin i generate md5 fingerprint and generate api key which key store i want to use .i confused http://www.youtube.com/watch?v=IaXE2FUENFI
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
08/31/12 10:43 PM (13 years ago)
Hi Ram, You need to create an apk that is signed with your release key. Then install that on your device (or emulator), and you should see map tiles. Mark
 
ram
Android Fan
Profile
Posts: 15
Reg: Aug 27, 2012
bangalore
1,700
like
08/31/12 10:55 PM (13 years ago)
i want use new keystore or existing keystore? during export and existing keystore means wat is the location release key and debug key is same?(api key)
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
08/31/12 11:02 PM (13 years ago)
Use the keytool to get an MD5 fingerprint for your release keystore. If you don't have a release keystore, you can use the tool to create one. With that MD5 fingerprint, get the Google Maps API key. Then modify the appropriate buzztouch files with that key. Create an apk file, signing it with your release keystore. Install the apk on your device. Hopefully the map tiles will show up. Mark
 
ram
Android Fan
Profile
Posts: 15
Reg: Aug 27, 2012
bangalore
1,700
like
08/31/12 11:55 PM (13 years ago)
thanks mark but release keystore and debug keystore is same?
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
09/01/12 07:38 AM (13 years ago)
but release keystore and debug keystore is same? No, they're not. Fred
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
09/01/12 12:50 PM (13 years ago)
Hey Ram, Couple more things that are important to understand: * Your Eclipse install comes with a debug.keystore, but nothing else. * You need to manually create your release.keystore, and you can use the Keytool Plugin to do so. * You must use the same release.keystore you're going to sign your final app with to get your Google Maps API. They must be the same keystore. You can't create a keystore for the maps API, and one for apk release, and expect it to work. Here's a tutorial I wrote up about keystores...it should help get you on the right track! Mark
 
twotonesimone
Aspiring developer
Profile
Posts: 26
Reg: Sep 01, 2012
Wadhurst
4,060
like
09/10/12 02:08 PM (13 years ago)
sounds really helpful Mark but you forgot the link to the tutorial? thanks :)
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
09/10/12 02:48 PM (13 years ago)
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
09/12/12 06:35 AM (13 years ago)
I looked at both and as always great guides but still a little confused on how you install the apk file on the emulator? I followed the video and received both keys and pasted in strings so I'm still showing a white grid. Don't I need to paste the code google gives you some where also?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
09/12/12 07:01 AM (13 years ago)
Hi LA, You just need to paste the release key in the string.xml file, where is says GoogleMapsApiReleaseKey (or something similar to that). Then in screen_map.xml you need to make sure it says ReleaseKey and not DebugKey (you'll see where...it's a small file). Then compile and sign the app with the SAME release keystore you used to get the maps API key. That's essential...it has to be the same key. Then install the apk in your emulator (here's a video showing how : http://www.youtube.com/watch?v=5Ohlah9xTv0) and you should be good! Mark
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
09/12/12 09:00 AM (13 years ago)
It says android:apiKey= then I put my api key there in quotes with a /> correct? not debug key? I did the install of apk of adobe which was easy vid..thank you but stuck on the "Then compile and sign the app with the SAME release keystore you used to get the maps API key. That's essential...it has to be the same key. " ?? I dont want to go to market or anything just want the map to show up on emulator.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
09/12/12 09:04 AM (13 years ago)
The string should look exactly like this: android:apiKey="@string/googleMapsAPIKeyRelease" You don't put the actual API key there...that gets transferred in as a variable when the program compiles. Make sure it looks exactly lie the above. The only way I and others have been able to get the map tiles to show up is to use the release key. While it's the same key you'll use when you publish, it doesn't mean you HAVE to publish. It's just a way of signing your app. Mark
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
09/12/12 09:11 AM (13 years ago)
ok that part is fine then. I have put the keys in the strings as per guide but what u mean by compile and sign the app? If my API key is already in strings then how do I sign?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
09/12/12 09:15 AM (13 years ago)
You have to create a .apk file that is basically the app. Read through the doc I sent you (The buzztouch Guide to Android) and it shows you all the steps. Mark
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
09/12/12 09:23 AM (13 years ago)
Will do again and I do remember creating a .apk file but sometimes here the developers need to try to remember we r aspiring developers and still trying to remember the lingo. Sometimes our lingo becomes crossed which the steps become confusing :-)
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
09/12/12 09:27 AM (13 years ago)
Totally understand! That's why I wrote that document...because it was how I learn (I don't really consider myself a developer) and I wanted to give people a step-by-step method for creating and publishing their apps. If there is anything in the document that is unclear or which can be improved upon, just let me know! Thanks, Mark
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
09/12/12 09:46 AM (13 years ago)
The guide to Android link is broken.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
09/12/12 09:50 AM (13 years ago)
I just tested it out and it's working. Here is the link I used: https://www.buzztouch.com/files/howtos/buzztouch_For_Android-A_Users_Guide.pdf They just switched the site to SSL (https vs. http), so you may have to log out of your account and them log back in. But the above link does work. Mark
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
09/12/12 09:56 AM (13 years ago)
Thank you and yes it works..lol
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
09/12/12 10:17 AM (13 years ago)
According to the guide, you really cannot "test" the map unless you export it to a real phone or the web?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
09/12/12 10:20 AM (13 years ago)
That's correct. I've only been able to get the map tiles to show up in the Emulator once or twice using the debug key. And you can't do anything that involves the GPS, of course, since there isn't one in the Emulator. Keep in mind that these API Keys are for Android apps, so I don't think they'll work for a web site. I don't believe you need keys any longer for putting Google maps on a web site. Short answer is, if you compile your app and sign it with a release keystore, you should be able to get map tiles to show up in the emulator or on a real device. Mark
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
09/12/12 01:36 PM (13 years ago)
Thank you Mark. On a off topic real quick, in your guide how did u get the tabs on the bottom on of your screen shot?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
09/12/12 01:44 PM (13 years ago)
That's a Tabbed Menu Layout. You can find that in your control panel. You can either configure the app to have a Home Screen, or a Tabbed Menu Layout. 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.