question

workinmaninteractive avatar image
workinmaninteractive asked

Unable to read api key ????

Anybody know what could cause this problem? I have created the api_key.txt file with the values generated in the security profile and add it in my resources folder. But when I ran the app, the app crashes and i got this log error saying that it couldn't read the txt file?? But the text file is in assets folder. What did I do wrong? 10-28 14:45:41.760: E/GameCircleClient(19884): Unable to read api key. GameCircle requires an api key to be included in 'assets/api_key.txt'. GameCircle will not initialize. 10-28 14:45:41.760: E/GameCircleClient(19884): java.lang.IllegalArgumentException: Invalid API Key Is there a rule on how to set the API Key name(can I use a random name for this?), Package (I use my project package name) and Signature(the signature I got from my key generated through Eclipse for my project)? I hope somebody can help me. Thanks.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

workinmaninteractive avatar image
workinmaninteractive answered
I think I know the problem, I was running the app without a signed key. Anybody know how to run the app through Eclipse with a signed key?
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Bipin@Amazon avatar image
Bipin@Amazon answered
C:\Documents and Settings\Administrator\.android\debug.keystore password is -> android Now if you use the debug keystore which eclipse uses, it would easy for development and run the application from eclipse work environment easily. Make sure you copy the full API key into a new file named api_key.txt, and then save the file in your project’s /assets folder.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.