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 8010685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:48:53+00:00 2026-06-04T18:48:53+00:00

I am using my emulator in Basement. This code is running .but the map

  • 0

I am using my emulator in Basement. This code is running .but the map not showing the current location. I also tried to send the lat long from emulator control but the emulator control showing the wrong lat lon.

     package com.maps;
     import com.google.android.maps.GeoPoint;
     import com.google.android.maps.MapActivity;
     import com.google.android.maps.MapController;
     import com.google.android.maps.MapView;
     import android.content.Context;
     import android.location.Location;
     import android.location.LocationListener;
       @Override
       public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        MapView view= (MapView) findViewById(R.id.mapView) ;
        view.setBuiltInZoomControls(true);
        final MapController control=view.getController();
        LocationManager manager=(LocationManager)            this.getSystemService(Context.LOCATION_SERVICE);     
        LocationListener listener=new LocationListener() {          
    public void onStatusChanged(String provider, int status, Bundle extras) {   
            }           
            public void onProviderEnabled(String provider) {
                        }
        public void onProviderDisabled(String provider) {
                // TODO Auto-generated method stub
            }       
    };   
        manager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, listener);
    }
    @Override
    protected boolean isRouteDisplayed()
    {
        return true;
    }
}
  • 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-06-04T18:48:55+00:00Added an answer on June 4, 2026 at 6:48 pm

    For fetching the GPS, you have to be in open field for first time while starting the application. Basement is fully covered area, so it would hard for GPS hardware like mobile’s to fetch the GPS location. However GPS hardwares which are in Cars can fetch GPS signal from basement too.

    The alternate way for this requirement is to fetch the cell-id and pass it to the google’s reverse Api, which will give you lat-lon in the result. You can get cell-id from anywhere, an you can see that you have coverage in basement too. Also you can visit my recent answer for more detail regarding GPS in Emulator. Also you can download an example GPX file from here

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

Sidebar

Related Questions

Here is my code to display the google map in my android emulator using
Here is the code to find the current location, but nothing shows on the
This is pretty simple: I'm using NetBeans on Linux with Android emulator 1.6. I
I run my app in the AVD emulator using eclipse but I'm unable to
I'm trying to record sound using Android Emulator. I know that this question is
I am not using the emulator (to slow), and am debugging on actual device
I am not sure how to simulate the HTC Sense UI using the emulator.
I just tried to test my first android app using the emulator, it crashed
I'm not able to connect to internet on Android Emulator, I'm using Tata Photon+
friends, while testing application on eclipse using emulator google map is being displayed properly.

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.