ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel
  • »
  • Technology»
  • Communications»
  • Smartphones»
  • Android Phones

How to obtain Google Maps API release key ?

Updated on March 25, 2014

Steps to obtain Google API :-

Developing an android application that revolves around google maps can be really profitable if you really know what you are doing. There can be different kinds of applications like gps based apps, travelling apps, parking apps, fitness apps, the possibilities are countless. Developing an android application can be a fun thing to do if you really love apps.

Step 1.

Open SDK Manager and make sure that Google play services in the extras in SDK are installed.

Step 2.

Now you need to export your application. You just need to do a certain things to export your application listed below,

- Right click the package
- Right click Android Tools
- Export Signed Application package.
- Enter your Application name.

Step 3.

Create a new keystore. Set up the alias and passwords etc.

Step 4.

Save your finished Apk. You will see the SHA1 code, which is certificate fingerprint of your application in your Eclipse Window. You will need the SHA1 code to Obtain API key. If it does not work for you, another way to see the SHA1 code of your application is through Command prompt.

Step 5.

Open the keytool directory in the Windows. On my Computer it is like the above screenshot, but it can be little different depending on your jdk. You will need this path.

Step 6.

Change the directory in the command prompt to the above path .

- Open Command Prompt.
- Click Start.
- Type cmd in Search box.
- Type CD(for Change Directory) and the above path.

Step 7.

In Location, what you see is your keystore name, you will need this in the next step. It is basically where you saved your key of your application while exporting it.

Step 8.

Type this command in Command Prompt.
-- 'keytool -list -keystore your_keystore_name' .

Enter the keystore password. You will see the same SHA1, certificate fingerprint.

Step 9.

- Go to Google API's Console at - ' https://code.google.com/apis/console/ '.

On the Dashboard, above Overview,
- Click the Dropdown Menu and
- Click Create to Create a new project.

- Select Services.
- Scroll down to Google Maps Android API v2 and turn its switch On.

- Click API Access in left Menu.

- Click Create New Android Key.

- Enter SHA1 ; yourpackagename.
Don't forget the semicolon between the SHA1 key and package name.

- Save your API key somewhere.

Step 10.

Write this code in your manifest file just before .
In place of API_KEY enter your actual API key.

Step 11.

- Select Permissions.
- Click Uses Permission.
- From the Name Dropdown Menu, Select android.permission.INTERNET and Click Add.
- Save your Manifest and you are good to go.


Now that you have obtained the API key, set some permissions in the Android manifest file. You can continue adding google maps to your application.

Click to Rate This Article