How do you debug your app so that you can sign and get an API key?

285 views
Skip to first unread message
Assigned to shai...@media.mit.edu by taifu...@gmail.com

halin...@gmail.com

unread,
Jan 18, 2014, 9:59:54 AM1/18/14
to mitappinv...@googlegroups.com
Hello,

I am trying to obtain an API key for my fusion table for my app. Before I can do so, I need to obtain an API key. It seems like in order to do so, I need a SHA1 fingerprint. I think in order to obtain a fingerprint, I need to sign it in either debugging or release mode. I figured that I would start in debugging mode. Any help that you can provide in any of these areas would be incredibly helpful. Thank you.

Attached is my .aia file if needed.

Best,
Halina

SCED_Hal.apk

Hal Abelson

unread,
Jan 18, 2014, 10:19:42 AM1/18/14
to mitappinv...@googlegroups.com, halin...@gmail.com
The pizza party tutorial http://explore.appinventor.mit.edu/ai2/pizzaparty includes instructions on how to get an API key for fusion tables

Halina Dour

unread,
Jan 18, 2014, 10:24:29 AM1/18/14
to Hal Abelson, mitappinventortest
Unfortunately, the Pizza Party tutorial is dated.  One can no longer get their simple API Access key as it describes.  There apparently are many other steps that I listed in my post.  I started at Pizza Party and ended at my post.

Also, as a follow-up to my earlier post, I chose to start working with fusion tables rather than MySQL, because I was getting very lost in all the background knowledge needed for MySQL (e.g., php, servers).  I went through a few hours of downloads, tutorials, and instructions and then decided to go back to fusion tables.  Now, I am getting stuck on the API Access key.
--
Halina J Dour, M.A.
Graduate Student, UCLA
hd...@ucla.edu

This email may contain material that is confidential and/or privileged for the sole use of the intended recipient. Any review, reliance or distribution by others or forwarding without expressed permission is strictly prohibited.  If you are not the intended recipient, please contact the sender and delete all copies.

Hal Abelson

unread,
Jan 18, 2014, 10:54:34 AM1/18/14
to Halina Dour, mitappinventortest, Shaileen Pokress
I'm forwarding this to someone who might be able to help you.  I was not aware that the pizza party tutorial was dated (if indeed that's the case).

As far as I know, there is nothing different about the process of getting an APi key for an App Inventor app that uses fusion tables, than for any other use of fusion tables.

SHAY:  Is it really the case that the Pizza Party tutorial no longer works?


Halina Dour

unread,
Jan 18, 2014, 12:10:28 PM1/18/14
to Hal Abelson, mitappinventortest, Shaileen Pokress
I figured out how to get my SHA-1 fingerprint by typing: "keytool -exportcert -alias androiddebugkey -keystore android.keystore -list -v" into my mac Terminal.  It asked for my password, but when i typed in "android", I get the following error msg: "Alias <androiddebugkey> does not exist" and if I take out that piece of code, it says "<mykey> does not exist.

Again, any help you can provide would be wonderful.

Taifun

unread,
Jan 18, 2014, 12:12:50 PM1/18/14
to mitappinv...@googlegroups.com, Hal Abelson, Shaileen Pokress, halin...@gmail.com
Unfortunately, the Pizza Party tutorial is dated.  One can no longer get their simple API Access key as it describes.  
for me the Pizza Party Tutorial works fine
there is no SHA1 fingerprint necessary, just follow the steps described in the tutorial
Taifun

Halina Dour

unread,
Jan 18, 2014, 12:14:29 PM1/18/14
to Taifun, mitappinventortest, Hal Abelson, Shaileen Pokress
I need it to obtain an API access key for fusion tables.  How did you work with fusion tables without an access key?

Taifun

unread,
Jan 18, 2014, 12:16:48 PM1/18/14
to mitappinv...@googlegroups.com, Taifun, Hal Abelson, Shaileen Pokress, halin...@gmail.com
you have to select "Simple API access"
Taifun

Getting an API Key

In order to use the FusiontablesControl Component you need to acquire a Google Applications Programming Interface (API) key, an API Key. To get an API key, follow these instructions:

  1. Go to your Google APIs Console and login if necessary.
  2. Select the Services item from the menu on the upper left.
  3. In the list of services, find the Fusion Tables API service and click the toggle button that currently says "off".
  4. Read and agree to the terms of service. When you return to the APIs Console page you'll see that the on/off switch next to Fusion Tables API is now "On" and green.
  5. Go back up the menu on the upper left of the screen and select the API Access item.
  6. Your API Key will be in the rectangular box in the section called "Simple API Access". You will need set the "API Key" property of the Fusiontables Control component in any app that you make that uses Fusion Tables. (More info below.)

Halina Dour

unread,
Jan 18, 2014, 12:19:26 PM1/18/14
to Taifun, mitappinventortest, Hal Abelson, Shaileen Pokress
Yes, but that is no longer up to date.  In order to get my simple API access code I need to get my SHA-1 fingerprint.  If you try it right now you will see. 

Halina Dour

unread,
Jan 18, 2014, 12:23:21 PM1/18/14
to Taifun, mitappinventortest, Hal Abelson, Shaileen Pokress
Now if I type "keytool -exportcert -keystore android.keystore -v", it seems to work because it asks for my password, but when I type in "android" it says the password is wrong.

Taifun

unread,
Jan 18, 2014, 12:49:21 PM1/18/14
to mitappinv...@googlegroups.com, Taifun, Hal Abelson, Shaileen Pokress, halin...@gmail.com
if you use the new Google Cloud Console, in the Credentials menu click onto Public API access "create new key"

in the next window select "Browser key"

in the next window just click "create"

here you are...



Taifun


Halina Dour

unread,
Jan 18, 2014, 1:26:16 PM1/18/14
to Taifun, mitappinventortest, Hal Abelson, Shaileen Pokress
Thank you so much for all your help Taifun and Hal. 

In order for me to use fusion tables, I needed an Android API Access key, which required the SHA-1 fingerprint of the app.  I was able to get it, finally, after many iterations and versions of the following code: keytool -exportcert -keystore android.keystore -list -v (when my file was save in the appropriate directory).  Initially, this did not work (e.g., either an error appeared or it did not recognize my password "android"), but my cousin tried it on his Windows 8.1 and was able to obtain it then with the following code:  keytool -list -keystore android.keystore.  That did not work for me, but when I went back later with the original code:
keytool -exportcert -keystore android.keystore -list -v, it worked on my mac.  I am not sure what was causing all of those problems. 

Thank you again for all of your help with my issues.  I very much appreciated it :)

Taifun

unread,
Jan 22, 2014, 5:23:18 PM1/22/14
to mitappinv...@googlegroups.com, Hal Abelson, Shaileen Pokress
probably MIT likes to update the Pizza Party tutorial concerning how to get an API key with the new Google Cloud console to avoid further misunderstandings?
Taifun

Shaileen Pokress

unread,
Jan 23, 2014, 2:57:12 PM1/23/14
to mitappinv...@googlegroups.com, halin...@gmail.com
The MIT Pizza Party tutorial has been updated to reflect the latest changes to the Google Fusion Tables API. You do not need to get an SHA fingerprint. The instructions that are in the tutorial are correct as of today. Of course, as we've seen in the past Google often changes the workflow for setting up a new table. We'll try to stay on top of it as much as possible.

Best, 
Shay


On Saturday, January 18, 2014 9:59:54 AM UTC-5, halin...@gmail.com wrote:
Reply all
Reply to author
Forward
0 new messages