Can't display GoogleMaps in application

Discussion in 'Application Development' started by agmonser, Jul 22, 2009.

  1. agmonser

    agmonser New Member
    5

    Jun 10, 2009
    2
    0
    5
    Software developer
    Belgrade, Serbia
    Hi guys,

    I'm trying to display GoogleMaps in my application using emulator, but instead of map I just get an empty screen with crosses and Google logo in the bottom left corner.

    I'm using Internet permission in manifest file, just as the library "com.google.android.maps". I have also supported my application with Android Maps API key and I placed it in layout as android:apiKey value for MapView, but it still can't display the map.

    main.xml:

    <com.google.android.maps.MapView
    android:id="@+id/myMapView"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:enabled="true"
    android:clickable="true"
    android:apiKey="07vNiwHa094tV14bUdyK0VTtXx0eeAZlk6WdKXQ"
    />

    manifest.xml:

    <uses-library android:name="com.google.android.maps" />
    ...
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission
    android:name="android.permission.ACCESS_FINE_LOCATION" />


    I have used two different apiKey values, regarding whether I signed
    the application with debug or my own created keystore, but it didn't
    work with none of them.

    If someone can help me, I would really appreciate it.

    Best regards,
    Alex
     

    Advertisement

Share This Page

Loading...