Discussion Forums  >  Uncategorized

Replies: 7    Views: 548

ERDM1
Android Fan
Profile
Posts: 6
Reg: Mar 19, 2011
Holbrook NY
60
04/20/11 03:23 PM (14 years ago)

Pulling my hair out...MD5

OK-Im out of ideas....Here's my issue. Trying to get the MD5 key/s for the Google Maps to work. OK I have created my signed application package in Eclipse....The name of the file is jf5 and it's alias is the same(pjf5)...I have placed it in a folder called PFJ5 in MyDocuments...After CDing down to C:\Program Files\Java\jre6\bin> and then Each and every time I run the CMD prompt I get an error keystore file does not exist....Here is what I am using....keytool -list -alias pjf5 -keystore C:\Use rs\pjw\Documents\My Current Work\PJ_Ferry\pjf5\ -storepass -****** -keypass ******
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
04/20/11 05:59 PM (14 years ago)
 
ERDM1
Android Fan
Profile
Posts: 6
Reg: Mar 19, 2011
Holbrook NY
60
like
04/21/11 09:29 AM (14 years ago)
David-Thanks that worked....But here is where I am now....Entered my key in the strings file....Made all the suggested changes in AndroidManifest.xml & Act_ActivityBase.java file.....I get the pin but no map tiles....Ideas?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
04/21/11 10:59 PM (14 years ago)
Ok...so pin, and map, but no tiles. Common problem, easy to fix. I'm guessing you've compiled in Release mode. Doesn't matter really, one thing to 'toggle' back-n-forth if you compile in Debug or Release. a) In Eclipse, find /res/layout/screen_locationmap.xml b) Look at this file and fine this: @string/googleMapsAPIKeyDebug c) If you're compiling in Debug, this is what it should read. If you're comping in Release, you need to change it to: @string/googleMapsAPIKeyRelease In english: 'Hey compiler...look at my strings file and grab the value for my release key' d) Next, open the /values/strings.xml file and make sure you have both keys entered. The idea is that the layout file uses either the debug key you have entered in strings.xml or the release key, not both. You change this depending on how you're compiling.
 
FrudeCoder
Aspiring developer
Profile
Posts: 19
Reg: Mar 05, 2011
Canton, GA
190
like
04/22/11 12:03 PM (14 years ago)
Quick question: If I had screen_locationmap.xml in Debug mode when I generated the signed .apk so I could get the release keys, and then I input the release key into strings.xml and then put locationmap into Release mode, do I need to re-generate the .apk or will it work in release mode next time it loads on an Android device/simulator?
 
ERDM1
Android Fan
Profile
Posts: 6
Reg: Mar 19, 2011
Holbrook NY
60
like
04/22/11 01:22 PM (14 years ago)
Hmmm...Changing to @string/googleMapsAPIKeyDebug OR @string/googleMapsAPIKeyRelease gives me the pin and a dotted grid...No map tiles....
 
Annonymous
Profile
04/22/11 02:51 PM (14 years ago)
Hmmm...Changing to @string/googleMapsAPIKeyDebug OR @string/googleMapsAPIKeyRelease gives me the pin and a dotted grid...No map tiles....
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
04/22/11 11:47 PM (14 years ago)
What you're describing is always, 100% of the time related to the API keys. This means you: a) Have string/googleMapsAPIKeyDebug and are compiling in RELEASE MODE b) Have string/googleMapsAPIKeyRelease and are compling in DEBUG MODE c) Have invalid API keys (maps will work without valid keys but no map-tiles will show Not sure how else to advise?
 

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.