Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6754027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:13:54+00:00 2026-05-26T13:13:54+00:00

I implemented the app that displays the map. and it shows the particular location

  • 0

I implemented the app that displays the map. and it shows the particular location using latitude and longitude. but it shows an empty map.how to see the map. please can anybody help me.
enter image description here

code

public class mapsdemo extends MapActivity
{

MapView mapView;
GeoPoint gp;
MapController mc;

/** Called when the activity is first created. */
@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    mapView = (MapView) findViewById(R.id.mapView);
    mapView.setBuiltInZoomControls(true);
    mapView.displayZoomControls(true);

    List mapOverlays = mapView.getOverlays();
    Drawable drawable = this.getResources().getDrawable(R.drawable.icon);
    HelloItemizedOverlay itemizedOverlay = new HelloItemizedOverlay(drawable, this);

    double lat = 17.385044;
    double longi = 78.486671;

    gp = new GeoPoint((int) (lat *1E6),(int) (longi *1E6));
    OverlayItem overlayitem =  new OverlayItem(gp, "Hello", "I'm in Hyd");                                                                      
    itemizedOverlay.addOverlay(overlayitem);        
    mapOverlays.add(itemizedOverlay);

    mc = mapView.getController();
    mc.animateTo(gp);
    mc.setZoom(13);
}

@Override
protected boolean isRouteDisplayed() {      
    return false;
}

}

main.xml
< ?xml version="1.0" encoding="utf-8"?>

< LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >

 < com.google.android.maps.MapView
                 android:layout_width="fill_parent"
                 android:layout_height="fill_parent"
                 android:apiKey="00YCOT71Vu0btHPPlbIR9uvF0-l4mcAVT9_6HMw"   
                 android:id="@+id/mapView"  
                 android:enabled="true"
                 android:clickable="true"        
                 />
< /LinearLayout>

manifeast

<?xml version="1.0" encoding="utf-8"?>

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.maps.demo"
      android:versionCode="1"
      android:versionName="1.0">

    < uses-sdk android:minSdkVersion="7" />

    <uses-permission android:name="android.permission.INTERNET"></uses-permission>

    <application android:icon="@drawable/icon" android:label="@string/app_name">
        <activity android:name=".mapsdemo"
                  android:label="@string/app_name"
                  android:theme="@android:style/Theme.NoTitleBar">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <uses-library android:name="com.google.android.maps" />
    </application>
</manifest>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T13:13:54+00:00Added an answer on May 26, 2026 at 1:13 pm

    This is most likely caused by a signature mismatch. Make sure that you registered your private key from the keystore used to package your application with Google at the maps API signup page and ensure the key that is issued is in your layout file for the MapView.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have implemented Facebook into my app but now I find that whenever I
I implemented some app that can start Play Store. This is some kind of
I have a django app that I made and have implemented a plist into
I have an app that includes a search feature. This feature is implemented by
I have implemented a Pin-Lock viewController such that every time app becomes active, the
i'm trying to code an app that displays the current device position on a
I am writing an app that requires the user's current location (lastknownlocation won't be
My test app that finds current location of the device is working fine in
I am trying to create an app that will obtain the users location via
In my Win32 app, I had a modal dialog that displays settings that I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.