jawdoss
Android Fan
Profile
Posts: 359
Reg: Jun 10, 2012
Gold Coast, Que...
9,090
09/09/12 03:10 PM (13 years ago)

Sorry, can you explain api

Hey guys i have seemed to have forgotten :/ Can you please explain what the importance of api keys are and the easiest way to manage/get api keys on a mac, using eclipse. Have done this before, just forgotten from my holiday LOL. :(
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
09/09/12 05:36 PM (13 years ago)
I wrote this up a while back. Hope it's what you're looking for: ========================================= After struggling through this and finally having success, I thought I'd write up a step-by-step guide for what worked for me. This is using eclipse on a Mac: Create a folder in your Documents folder called googlekeys (or whatever you want) With your BuzzTouch App open in eclipse: Click File -> Export -> Export Android Application Name your project at the Select the project to export prompt. Click Next Select create new keystore Set the location for the new keystore to Documents/googlekeys and save as googlekeystore (or whatever you want, just remember the name). Enter and confirm a password Enter an alias (ie. appAlias), password, confirm and set validity for 100 years. Enter your name and click next Select a destination for the APK file. I have a folder in my Documents folder called Android APKs TO CREATE YOUR DEBUG KEY: Open terminal. Enter the following command to get the debug md5 fingerprint: keytool -list -keystore ~/.android/debug.keystore password: android Copy the debug md5 fingerprint. It will look like this: 52:17:0F:1C:B6:D6:66:45:59:A9:CD:A6:84:C4:DB:F3 In your browser, go to: http://code.google.com/intl/pt-PT/android/maps-api-signup.html Paste the md5 fingerprint, click Generate API key Copy the google key, create a text file and paste the debug key so you can access it later. TO CREATE YOUR RELEASE KEY: In the terminal, enter the following. Make sure to use the correct alias name you entered above, and the keystore directory and name (ie. googlekeys & googlekeystore): keytool -list -alias alias-you-created-before -keystore /Users/yourusername/Documents/googlekeys/googlekeystore You'll be prompted for a password. Enter the password you created earlier. Copy the md5 release fingerprint. In your browser, go to: http://code.google.com/intl/pt-PT/android/maps-api-signup.html Paste the md5 fingerprint, click Generate API key Copy your google key and paste it into your text file for reference later. Now follow the BuzzTouch video tutorial on updating the map keys. Hope this helps. It worked for me. Be sure the AndroidManifest.xml debuggable setting is set to "false". Add the keys to strings.xml
 
jawdoss
Android Fan
Profile
Posts: 359
Reg: Jun 10, 2012
Gold Coast, Que...
9,090
like
09/10/12 05:22 AM (13 years ago)
If i don't have any maps i don't need the api key then do i? I have an app without maps in it but theres a red cross in the src, then most of them (BT_ blah blah) have red crosses too. I HAVE set it to google api 2.2 (8) :(
 

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.