Saturday, February 23, 2013

Android Maps API v2 API Key Generate

Android  Maps API v2 API Key Generate

Google introduced new Maps Android API v2.
Below  how to generate an API key in Maps Android API v2

What in API V2?
*Android API v2 they are using Vector tile so maps loading too fast even slower connection.
*Maps are encapsulated with map fragment class and its extension of android Fragment class
* Maps Now in 3D.
*Caching also improved so user can see without empty areas.

Google Developer Documentation

*NOTE: Android Maps API v2 not supporting in Emulator only supporting real device.

Getting Started Maps Android API v2

Step 1.
Before getting Google map key
First you have to generate Fingerprint SHA1 digital signatures.
Let see how to do...

Get your keystore file and GOTO cmd prompt

C:\Program Files\Java\jre7\bin>keytool.exe -list -v -alias androiddebugkey -keys
tore "D:\debug.keystore" -storepass android -keypass android




Then you will fingerprint SHA1 Value .Check the below screen shot.



Step 2

Go to this Below Link
Google API Console https://code.google.com/apis/console/ 

There you can able to see like below image. Select API Access


 Step 3

Go to the bottom of  the Page
There you can able to see like below screen shot  and select create a new android key

 
Step 4.

If you select the create new android key. Then one popup will appear like below the screenshot.

Step 5.
Successfully Google API key generated

Check the below screen shot


Step 6:
Configure you MAP API Key to your project

Main.xml


fragment xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
     class="com.google.android.gms.maps.MapFragment"
    >


</fragment>



Manifest file



<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.whatsaround.whatsaround"
    android:versionCode="1"
    android:versionName="1.0" >
     
          <permission
    android:name="com.whatsaround.whatsaround.permission.MAPS_RECEIVE"
    android:protectionLevel="signature"/>

  <uses-permission android:name="com.whatsaround.whatsaround.permission.MAPS_RECEIVE"/>
       
         <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="16" />
      
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>

    <uses-feature
    android:glEsVersion="0x00020000"
    android:required="true"/>

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
         <meta-data
    android:name="com.google.android.maps.v2.API_KEY"
    android:value="HERE YOUR API KEY"/>
        <activity
            android:name="com.whatsaround.whatsaround.MainActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>


*Note Map V2 not supported in emulator so please check in real device

11 comments:

  1. Тhе cheеѕе wοuld
    be mеlted and bubbly, but oρtimum οf all thе topріngs would not bе burnt.
    Ѕitting dоwn there on your сounter, it
    barely appears to be like capаblе
    of thіѕ sort οf wоndегs,
    but the very firѕt timеrs anԁ the seаsoned сooκs alіke
    wіll ԁelight in іnсluding thаt customary tаste to theiг mоst desired dіshes.
    The wall panelѕ can be introduceԁ in hallωayѕ, dοorways, and shining strаight as a ԁancе grounԁ.


    Ϲhecκ οut mу site http://dexterping94.beeplog.com

    ReplyDelete
  2. Without the internet, this is not possible to play these novoline
    games online and even they can't live online that they perform now with public for additional characteristics and completely attractive in a delusion earth to participate in a game. One way to test yourself is to deal yourself hand after hand in front of a mirror and watch yourself as you react to the cards. In fact an ideal online casino will make the entire gaming experience a pleasurable and a real experience to the gamer.

    Look into my weblog - youtube videos downloaden

    ReplyDelete
  3. An outstanding share! I have just forwarded this onto a friend
    who has been doing a little research on this. And he actually bought me lunch due to the fact that I found it for him.

    .. lol. So allow me to reword this.... Thanks for the meal!
    ! But yeah, thanx for spending time to talk about this subject here on your web
    page.

    Here is my page :: website
    My web page > loadsafriends.com

    ReplyDelete
  4. I all the time used to read piece of writing in news papers but now as I am a user of internet therefore from now I am using net for articles or reviews, thanks to web.


    Feel free to visit my web blog ... http://www.expanti.com/hand4/link/5920
    Also see my website - http://www.asbbook.com/index.php?do=/blog/82360/why-internet-shopping-is-highly-desired-currently

    ReplyDelete
  5. Ι visited many wеbsitеѕ
    but the audіо quality for audio songs current аt thiѕ website is reallу fabulous.
    tinnitus
    My web page :: tinnitus

    ReplyDelete
  6. I was suggested this blog by my cousin. I'm not sure whether this post is written by him as nobody else know such detailed about my trouble. You are wonderful! Thanks!

    Here is my website: radio sender

    ReplyDelete
  7. Number of men and women who're facing financial disaster gets sigh of relief using these handiest no credit check loans instant payday loans auto loan tip #2 a good credit history - while seeming obvious, most individuals are unaware in the effect a a low credit score history has on their own auto loan rate.

    ReplyDelete
  8. my God, i thought you were going to chip in with some decisive insght at the
    end there, not leave it with ‘we leave it to you to decide’.


    Feel free to surf to my web site; website

    ReplyDelete
  9. Remarkable YouTube movies posted at this site, I am going to
    subscribe for on a regular basis updates, as I don’t want to
    miss this series.

    my web site ... skippyarticles.com

    ReplyDelete
  10. I truly love your blog.. Great colors & theme. Did you
    build this amazing site yourself? Please reply back as I'm looking to create my own site and would love to find out where you got this from or just what the theme is named. Appreciate it!
    " http://bit.ly/13jRpqN buy youtube likes reviews "

    Have a look at my web-site ... youtube comments

    ReplyDelete
  11. I have tried hundred times but could not succeeded, But reading this post finally I generated. Thanks for the sharing and just keep up the good work.

    ReplyDelete

Check out this may be help you

Related Posts Plugin for WordPress, Blogger...