0

It's my first time that i use Google API. I use it with my Android App by using the beta google java api client. To test my app in the emulator, i took an API Key access from my google account and all work well. But now, what is the procedure about this API Key access if i want share my app in Google Play ? Do I leave my same Key access in the code or in the app, do i must ask final user to register with his own key acces with his google account ? Thank you for answer.

Hasina
  • 335
  • 3
  • 13
  • when u want to upload an app in the googleplay u need to get an all together new key that is private only to the app in the play. – Terril Thomas Oct 17 '12 at 09:58
  • @HardikTrivedi I use google api for google calendar – Hasina Oct 17 '12 at 10:21
  • @ErrorHandler how can i do that ? Can you give me some steps to follow ? – Hasina Oct 17 '12 at 10:25
  • For google calendar you dont need to change the key – Hardik Trivedi Oct 17 '12 at 10:49
  • @HardikTrivedi So, in other word for google api calendar, can we say that this key is independant of google accounts : users with their google accounts registered in their devices can use the app with the api key access that i generated with my google account without problems and security risk ? – Hasina Oct 17 '12 at 11:11
  • Any key you generate independent to your keystore file, you can use same api key for any device – Hardik Trivedi Oct 17 '12 at 11:43

2 Answers2

0

This is simple steps that u need to follow instead of registering it in the site just register the key in Google play .Here is the link example to follow up also follow up with this SO chat u might get some idea click

Community
  • 1
  • 1
Terril Thomas
  • 1,486
  • 13
  • 32
0

You should go this path in terminal (cd Library/Android/sdk/platform-tools/) Mac os, after that you can run command below

Create Debug key

keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android

Create Release Key

keytool -list -v -keystore /Users/macbook16/Documents/AndroidProjects/natural-therapy-android/app/keystore.jks  -alias myaliassample

Note : /Users/macbook16/Documents/AndroidProjects/natural-therapy-android/app/keystore.jks this path is my project .jks file path, therefore you should replace your project jks file path, And myaliassample is exampl alias, you should replace the command like of your alias