Android :: Google Maps & Apps With Mapview Have Different Current Positions

Jul 20, 2010

I have a mapview where I want to track the user's current location. GPS as well as 'use wireless networks' is activated in my phone settings.

Nevertheless, since I'm indoor I don't get a GPS fix, therefore the location is determined via network; wifi spot is available.

I have the Google Maps app running as well as my application running.

Strangely, the current location differes between Google Maps and my application, where the Google Maps is very accurate while in my app the location is somehow off a few 100 meters.

In my application I basically do the following (for debugging purposes now):

1) initially place one marker on the map: geopoint retrieved via locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);

2) initially place another marker on the map: geopoint retrieved via locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);

This will put the last known locations of both providers onto the map (eventually last known from outside my app).

3) then for the regular updates (since I don't get a GPS fix anyway indoor here), I do:

locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, baseLocationListener);

You can see for the frequency and distance I pass the 0 param in both cases.

In the app manifest, the following permissions are granted:

android.permission.ACCESS_COARSE_LOCATION
android.permission.ACCESS_FINE_LOCATION
android.permission.ACCESS_MOCK_LOCATION

Actually my baseLocationListener does get called, which I see in the log, but the updated location is somehow the same as the last known current position (of LocationManager.NETWORK_PROVIDER), same lat/lng.

I thought maybe I overlooked something or missed a parameter or setting, or my code has a bug. Therefore I installed some other (3 in total) LBS apps from the Android market that also show the current user's location. The current locations displayed in those apps are equals to the one in my application - and they're all some 100 meters off - but at least all the same.

See the screenshot here:

http://img33.imageshack.us/img33/8679/mapproblem.png

Now I am wondering:

1) as I understand, getLastKnowLocation is system-wide and not app-wide, why are there differences between the location in Google maps and all the other apps?

2) does Google Maps not update the lastKnownLocation of a provider?

3) does Google Maps use a different custom location provider (i.e. due to licensing reasons) other than GPS_PROVIDER or NETWORK_PROVIDER as they are in the SDK?

4) how do achieve the same accurate result with the NETWORK_PROVIDER like Google Maps does?

Android :: Google Maps & apps with mapview have different current positions


Android :: Google Maps & Apps With Mapview Have Different Current Positions Options

Jul 20, 2010

It seems that the problem is in the data quality of the different map provider that are used for Google Maps and MapView in SDK, which differ.

The map tiles coordinates don't seem to be very accurate, just like in the public google maps web api / tiles.

See this screenshot for an example, where I pinned the same geo point. http://img339.imageshack.us/i/gmaps2.png/

The map using the public map api is off a few hundred meters. Seems that we just have to live with it.

CODE:................

View 2 Replies View Related

Android :: Google Maps - MapView - Draw A Nice Flight Route Between 2 Points

Aug 1, 2010

I wonder, how can I draw a nice flight route between 2 points on a google map's MapView? look at this: http://maps.forum.nu/gm_flight_path.html

View 6 Replies View Related

Android :: Error When Write Code Import Com.google.android.maps.MapView

Mar 29, 2010

i am new to android development. I got an error when write the code "import com.google.android.maps.MapView; in eclipse. The error is "The import com.google can not be resolved."

View 2 Replies View Related

Android :: Unable To Import Com.google.android.maps.MapView?

Nov 13, 2010

import android.app.Activity;
import android.os.Bundle;
import android.widget.LinearLayout;
import android.view.ViewGroup;
import android.widget.*;
import com.google.android.maps.MapView;

public class MapView extends MapActivity{
/** Called when the activity is first created. */
LinearLayout linearLayout;
MapView mapView;

public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.map);
mapView = (MapView) findViewById(R.id.mapview);
mapView.setBuiltInZoomControls(true);
MapController mapController = mapView.getController();
}
}

View 2 Replies View Related

Samsung Moment :: Google Maps Not Identifying Correct Current Location

Nov 14, 2009

My google maps identifies me in india despite havving active network and wifi connection...anybody else have this issue and can it be fixed?

View 2 Replies View Related

Android :: Load Markers Dynamically For Current Position In Android Google Maps?

Aug 5, 2010

I'm currently developing an app for Android which uses google map service. Because users will be able to see thousands of markers I would like to load only those which are currently within the map bounds (i.e. when user look at specific map tile). I know how to do it with javascript/html. However, Android doesn't seem to provide any similar methods such as containsLatLng(latlng) or getBounds (I only found getLatitudeSpan and getLongitudeSpan, but don't know how can I use them in order to achieve the similar effect). Can anyone give me some hint on that?

View 4 Replies View Related

General :: Google Apps Like GMAIL / GOOGLE+ / PLAY / Maps Not Working In Airtel 3G

Apr 16, 2014

I am using Nexus 4 Bought from US thro my friend.Current Android version id 4.4.2..My Service Provider is Airtel. All my google applications like Gmail, Maps, Play,Google Plus are working fine in WIFI.But when i try to refresh or update these application thro Airtel 3g,i am getting No Connection Error.

All my 3rd party apps like Facebook,Whatsapp are working fine in 3G.

View 3 Replies View Related

Android :: Possible To Show My Maps In MapView?

Aug 31, 2010

The Google map is too older for me, so I create my map in Google map and add some lines and marks. Is there a way to show my maps in MapView?

View 2 Replies View Related

Android :: Launch A Directions On Google Maps Apps

Nov 27, 2009

I'm trying to learn the Android SDK but I have a problem, and no issue found on this group.

In fact: I have an object "Store" with the properties "Latitude" and "Longitude". I want put a button which launch the google maps app and which prepare the direction, like that.

View 3 Replies View Related

Android :: FindViewById Returns Null MapView When Following Maps Tutorial

Jun 4, 2009

I'm following this tutorial here: http://developer.android.com/guide/tutorials/views/hello-mapview.html

and am on point 11

Here's the res/layout/main.xml:

CODE:........

Here's the code:

CODE:........................

View 2 Replies View Related

Android :: MapView Has Bad Resolution Comparing To Generic Maps / Solution To This?

Sep 7, 2010

I just received a HTC Desire to test on. I noticed, that a mapView residuing in a frame smaller than a whole screen is not as sharp as a generic maps application. Is there any solution to this?

View 2 Replies View Related

Android :: Com.google.android.apps.maps: Not Stopping

Nov 15, 2009

Has anyone else noticed a process that shows up as "com.google.android.apps.maps:" in TasKiller?

It does not seem to die and I have two copies of it in my task list.

It also appears that it has a second line of text that is not displayed... Maybe that is why it won't die?

I wanted to blame it on "Car Finder - Cinn Dev -CinnDev.com" but it still ran after an uninstall.

I have my location turned off in google maps as well as Latitude (I believe..)

For that matter, I never used Voice Dialer and Corporate Calendar. How do I turn them off?

View 2 Replies View Related

Android :: Google Maps - Settings In Emulator For Displaying Maps

Sep 25, 2010

I use the google code from devloper.android.com I use that application but in the emulator it shows only the crossed lines not the map so is there any settings in emulator for displaying maps

CODE:.....

Android mainfest

CODE:..................

View 4 Replies View Related

Android :: Google MapView Doesn't Work After Signed App

Jun 2, 2010

I am facing to android application signing problem. My application contains Google MapView. When I compile the app and run on the emulator, MapView works fine. But signed the app, MapView doesn't work. I've get Google Map API. This works on the simulator. I could sign the app once 2 months ago. Then I've upgraded the app. Now I need to sign the app again. Actually I don't know why signed app's mapView doesn't work. How to fix it?

I used following steps when sign the app: Run Eclipse. Select the project. Right Click -> Android Tools -> Export Signed Application Package -> Then Filled forms. (In forms, Validity years: 200, and all passwords are same.)

View 2 Replies View Related

Android :: MapView Disabled - Google Server Response?

Jan 30, 2009

Now, I'm developing an Android app called "Echo". But 5 hours ago, My Dev phone haven't displayed MapView. First, I supposed that my API-key have been disabled. I tried to Maps API Key signup agian. But google server response error.
> Server Error > The server encountered a temporary error and could not complete your request.
> Please try again in 30 seconds.

View 4 Replies View Related

Android :: Make Screen Contains Google MapView And ListView?

Apr 19, 2010

I don't know how to create an custom Activity extending MapActivity and ListActivity ?
I am trying screen that contains of google map and list view.

How to make it?

View 1 Replies View Related

Android :: Default Marker For Droid Google Mapview?

Aug 31, 2010

Just wondering if there is a standard/default overlay/marker that I can use in the MAPVIEW?

I have been searching on the web and all tutorials talk about extending the Overlay and put your custom image on it.

Is there a easier way? I just want to have the a marker, nothing fancy.

View 1 Replies View Related

General :: Google Maps 6.9 - Where Are Offline Maps Stored

Jul 12, 2012

what is the path to the offline map files saved by Google Maps 6.9?

View 9 Replies View Related

Android : Save / Activity With MapView And After Reload Same Mapview?

Jul 16, 2010

I had found a lot of stackoverflow post about save an Activity and the reload it.

My question: How can I have an Activity with an MapView and after reload the same mapview?

What is the best way to switch between activity and views?

View 2 Replies View Related

Android :: Google Latitude Application For Access Through Google Maps?

Mar 5, 2009

Is Google Latitude available in the UK or not, because it doesn't seem to be working for me? I have received the RC9 update for G1 and have Google Maps 3.0. Is there an a Google Latitude application that I should have or do I access everything through Google Maps? When I go the www.google.com/latitude on my G1, it offers me the option of "launching" Latitude but it just takes me to Google Maps. From there, I cannot see the locations of my Google "friends" (who have agreed to show location), neither does my own location show up on the Latitude homepage on the web (I have settings turned to "detect my location automatically").

View 13 Replies View Related

Android :: Overlays Not Working In Google MapView Tutorial Android

Feb 16, 2010

Got some errors following the tutorial for MapView when i was going to integrate overlays.

CODE:..............

I am trying to learn and i got an awesome app idea which needs mapview, webview, overlays and tabs.

View 1 Replies View Related

Android : Get The Current Assigned Google Account

Sep 27, 2009

Has anyone found a way to get the current google e-mail adderss assigned on the phone?

I've tried doing a search for in the contacts with, but it never returns : Uri contactUri = Uri.withAppendedPath(Contacts.People.CONTENT_URI, "owner");

I have found a permssion called "READ_OWNER_DATA" but I don't seem able to find out a way of seeing what the permission allows you to do.

View 3 Replies View Related

Motorola Droid :: Unable To Find Google Voice Or Google Maps In Market

Oct 19, 2010

I'm running Cyanogenmod 6. I just noticed that I can't find Google voice or Google maps in the market. I do have the apps installed, but can't see them int he market to get updates. I tried out LFY1.7 and Ultimate Droid 1.0.0, and see the same issue.

View 5 Replies View Related

General :: Google Maps App Doesn't Sync Names With Google Bookmarks

Apr 17, 2013

I'm using the latest version of Google Maps on JB 4.2.2 [Nexus 4]..I noticed that I cannot edit the names of my locations in "My Places" in the phone app. So I used Google Bookmarks (google.com/bookmarks) from my PC to edit/rename My Places. However, the names do not sync or carry through to the Google Maps app on the phone. The names in the app are still the generic names, coordinates or street names.

Is there any way to change the names of My Places and get them to sync with the phone app? Really baffling!

View 2 Replies View Related

General :: App Or Mod To Google Maps Allow To View Maps (satellite View) Offline

Sep 4, 2012

I'm searching for an app or mod to google maps that allow to view maps (satellite view) offline

View 1 Replies View Related

Android :: How To Make Google Map Zoom In To Current Location

Nov 10, 2010

I would like to make my map zoom into my current location.
This current location is defined currently by sending lat and long to the emulator.
How would i go about doing this?

My current mapactivity.java
Code...

View 2 Replies View Related

Android :: Want List Of Current Apps When Open A Folder?

Jun 1, 2010

When moving apps into folders does it only create a shortcut to the app? When I open app drawer I would like to have/see only 3 or 4 folders...not a list of current apps. Is this possible?

View 2 Replies View Related

HTC Droid Eris :: Will Google Shopper Work With Current Android 1.5?

Feb 22, 2010

will google shopper work with current android 1.5? and if not are we going to get it when the update comes soon hopefully!!!!

View 4 Replies View Related

Android :: Google Apps - Any Apps For Integrating With Google Picasa?

Jan 25, 2010

I'd like to confirm if those are apps built by Google for GDoc (Google Documents) GTask (Google Task)Any apps for integrating with Google Picasa? If you know any other Google apps,

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved