Android :: Possible To Show My Maps In MapView?
Aug 31, 2010The 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 RepliesThe 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 RepliesIs there a way to always show the zoom controls on a MapView? I have added the zoom controls using code...
]
but the zoom controls fade in and out. I want them to always be visible.
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?
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:........................
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 RelatedAs the object of this topic. is there a limit for the numebr of markers to show on a MapView at the same time with the Google API?
View 3 Replies View RelatedIt 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:................
I have a MapActivity. If it's set to an appropriate location and zoom level to see traffic none is shown after it's first created until you interact with the map (click on it, drag, etc) at which point traffic shows up. Naturally I want traffic to show up without any user interaction after it loads but I've been unable to figure out how to trigger it. Any ideas?
View 3 Replies View RelatedI have been trying to get this seemingly simple problem fixed for about half a day now. I have a working MapView and I just want to show the default zoom keys and have them there all the time. They do not appear at all - it's not that they appear then go away.
Code...
I have tried commenting out the setZoom and tried moving the setBuiltInZoom controls to the updateLocation method. I've found a lot of posts in relation to this problem but none that solve it.
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 Relatedi 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 Relatedimport 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();
}
}
I'm just trying to run MapsDemo who is in 'samples' of the SDK, but consider this: http:/ i.imagehost.org/0829/mapss_don_t_show.png the Google maps is working perfectly http://j.imagehost.org/0640/google_maps.png ).
View 5 Replies View RelatedI've doubled checked my API key is right and that is right I doubled checked that it was correct. Here is my source and XML could anyone check to see what is wrong. Also I make sure I have Internet. code...
View 1 Replies View RelatedI 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?
I created a custom map in Google Maps "My Maps". Now i want to show that map on an android device, but not just opening it as a web page but showing it using MapView or smth similar. I want to be able to center on a place I have marked on the map etc. My custom map is a map containing the location of all gas stations in a city.
View 1 Replies View RelatedI can't figure out how to tell my Map to redraw its overlays once I've updated them. Currently the user has to touch the screen before the map is redrawn.
View 2 Replies View RelatedWhen I try to connect to the Market, it says "A network error has occured." In the notifications bar it has the 3G icon, and I'm able to use the browser without any troubles. Also, in the Google Maps app that comes with the phone, I don't see any map. I just see a grid with a blue circle with "Your Location" in the center. I'm was at the Verizon store yesterday because whenever I tried to call someone it said that my phone wasn't authenticated, and when I mentioned these two particular problems, he said that once my phone was authenticated everything should work.
View 9 Replies View RelatedI would like to use My Desire with offline maps and GPs like a satnav eg TomTom. As I understand it Google maps requires the data connection up to load relevant map. This can be expensive when roaming in Europe. So is it possible to obtain maps for memory and use the GPS to show location just like a TomTom.
View 1 Replies View RelatedSince I've had the phone now for a little over a month, about half the time that I start up Maps, it shows "My Position" as being at a house I lived at about a year ago, which is about an hour drive from where I live now. Back then, I was not with Verizon, but with ATT.
After a minute or so on Maps, it brings up my correct position. That changed about 4 days ago when I received a signal extender that was ordered from Verizon. Now, Maps starts up showing that I'm near a golf course in Canyon Lake, California. About 3 minutes later, it corrects itself.
I was wondering if there was any mods for Google maps that will show red light cameras
View 1 Replies View RelatedA few of us at work are wondering if we can use the google map or anyother type of locating device on our phones without phone service. Does the google maps show our location using the cell towers?
View 15 Replies View RelatedI 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:..................
hello all, i am trying to develop a google maps application for android enabled phones using the javascript v3 api released by google.. but i do not understand how to code the entire thing in android.. cuz as far as i am concerned i have only used java code for developing an application in android.. my last semester project consisted of a client application for picasa web albums.. the complete code was written in java.. i am new to use javascripts.. has anyone developed an application for android using javascripts before?? if yes i need your help.. i need to start the project soon..
View 2 Replies View RelatedI ask because I began using My Tracks a couple of weeks ago...very cool. I logged onto Google Maps from my office and there were the "tracks" I had saved. I never took action to upload them, they were just there I suppose as a function of allowing Google to sync. BUT I created and saved a map on the PC expecting to be able to see it on my phone, but it didn't happen.
View 9 Replies View Relatedwhat is the path to the offline map files saved by Google Maps 6.9?
View 9 Replies View RelatedI followed the steps in document to display MapView. But blank grid is displayed instead of google map. My code...
View 2 Replies View RelatedI've just downloaded the Cupcake SDK. I'm afraid I can't find MapView anymore...
View 5 Replies View RelatedMy problem is my MapView becoming very laggy and so non-responsive at times, that Android thinks its hit deadlock and tries to close it.
I am adding 60 overlays to the map view and i originally thought that the icon size may be causing the problem by using up all the memory. When i decreased the overlay icon size, it did improve things, though it is still to slow to be usable. Has anyone experienced anything similar and have a workaround? There may be a better way of doing it other then extending the Hello MapView example.
How to get MapView API in android?
View 2 Replies View Related