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?

Android :: load markers dynamically for current position in Android google maps?


Android :: Move Markers With Maps API To A New Position?

Sep 21, 2009

I'm wondering if it is possible to move markers when using a MapView. I use a fullscreen MapView which has a few (not more than 5) markers which I would like to move and update by just moving the markers to a new position.

View 2 Replies View Related

Android :: Load Only Markers That Would Be Displayed On Current Screen?

Aug 5, 2010

Using Google Maps on Android does anyone have any ideas on how to load only markers that would be displayed on the current screen? I'm thinking about sending a request to a web service that returns the lat/lng for the relevant markers. But what would the parameters be that I could use to calculate if a given lat/lng is within the screen?

View 1 Replies View Related

Android :: Use Google Maps As Car Locater / Way To Mark Position?

Jun 14, 2010

So, it seems logical you could use Google maps as a car locater for parking. BUT I see no way to mark the position your at. Like, drop or leave a push pin marker with a long press when you are at your location.

View 10 Replies View Related

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?

View 2 Replies View Related

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

HTC Hero :: Google Maps - Position Accurate To 400 Meters

Aug 23, 2009

Google maps shows my current position of several streets away. I know it says accurate to 400 meters so I'll live with it, but when it states my address as being a village several miles away it annoys the hell out of me, particularly as I live in a medium sized town.

View 5 Replies View Related

Samsung Behold 2 :: Cannot Locate Position While Using Google Maps

Feb 7, 2010

I just got my Behold 2 a couple of days ago and love it. Like ya'll, I hope they update droid to 2.0 or greater. The problem that I am having is with the GPS. I have turned it on in the settings, but it does not seem to work. I cannot locate my position while using google maps. I downloaded a weather app and it could not locate my position either. The icon lights up showing that the phone is searching but it does not find anything. I am thinking that I should trade this one in for another while I can. Anyone else have this problem? (I have been outside during clear weather during the searches.)

View 3 Replies View Related

General :: Google Maps Navigation - GPS Not Updating Map Position

Oct 15, 2013

When using Google maps, if I set a destination and navigate to it, the ma just sits there and doesn't move when I drive off, nor does my location on it.

However if I stay on Google maps, and drive about my position is updated correctly but obviously I can't navigate that way.

I tried mapquest and that works with no problem as an alternative, but what the he'll it's wrong with maps?

I've already cleared Google maps in the apps section?

View 1 Replies View Related

Motorola Droid :: Google Maps Show Old Position And Then Corrects Itself

Jan 23, 2010

Since 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.

View 19 Replies View Related

Sprint HTC Hero :: Google Maps Does Not Follow Position / Setting To Do While Driving?

Mar 9, 2010

When I load Google Maps and it first locates me, it centers the map on my location. Once I am travelling, the map does not follow my location. My location dot will go right off the map and I have to manually drag the map to see the next section I am now driving on.

Is there a setting to make Google Maps follow my position while driving?

View 4 Replies View Related

HTC EVO 4G :: Google Maps Application Slow To Load

Jun 15, 2010

Anyone else having problems with the Google Maps App on the EVO? Whenever I try to view my location, zoom in or out, or drag the map around, all I get is the white pixilated screen. Sometimes it will load, sometimes it won't. Sometimes it takes over 3 minutes to load. I don't understand because I've checked my 3G connection and it's strong - I'm assuming the phone connects to the internet to download the maps. I used to have a Hero and it wasn't this slow.

View 4 Replies View Related

Motorola Droid :: Google Maps - Unable To Load The URL

Jan 19, 2010

This has been posted under the sprint htc hero forum, however i know there are much more people posting here that can help with this problem. Maps works fine, but when I open the app a pop up shows "unable to load the url", its pretty annoying. How can I get rid of this....clearing the cache and defaults did nothing.

View 2 Replies View Related

Sprint HTC Hero :: Unable To Load The URL - Google Maps

Jan 10, 2010

Every time I open Google Maps, a little pop-up window says "Unable to load the URL" The program works fine, it's just kind of annoying. Does anyone else experience this? Is there a known solution? I cleared the cache and data and force-stopped the ap, but it still happens. For what it's worth, the same exact thing happened on my Moment (well, on the Moment Google Maps didn't work at all due to the POS GPS)

View 4 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 :: Change Position Of ImageView Dynamically?

Aug 2, 2010

I want my arrows to continuously move left and right with a delay of certain milliseconds dynamically. Any clue?

Here's my code...

View 1 Replies View Related

Android :: Changing Position And Margin Of Button Dynamically

Sep 24, 2010

I would like to change margin of my buttons in application. Suppose I have 5 buttons like this in a linear layout, one below d other. When I focus on a button, its width should increase (which I know how to handle) and at the same time, width should increase linearly towards both left and right. i.e. If the current width of the button is 250 with x co-ordinate as 50 (that means button's left is 50 and button's right is 300), when I focus on the button I should get x co-ordinate as 75 (left = 25 and right = 325). How to change the margin/x co-ordinate of the button?

View 1 Replies View Related

Android :: Get Current Position From DataInputStream In Java?

Aug 12, 2010

Can anybody tell me how to get the current position of the index while reading the binary file from DataInputStream? I have seen a mark() method but one is Boolean type and the other is void. I need to read the indexes on separate locations to use them again.

View 1 Replies View Related

Android :: Add Markers To A Google Map On Droid?

Aug 4, 2010

I've got a place I want to add on my map at a particular lat / lng. I'd like to display that on my map when the activity starts. How would I do this?

View 1 Replies View Related

Android : How To Load XML Files Dynamically

Feb 4, 2010

I need help on how to load XML file dynamically in the code.I have an activity and for the activity I have 5 xml layout files.I want to load one of the XML file depending on the some logical condition.for e.g

switch(i) { case 1: //load XML file 1 break; case 2: //load XML file 2 break; case 3: //load XML file 3 break; }

View 4 Replies View Related

Android :: Insert Text Into EditText At Current Position?

Aug 31, 2010

I want to insert a constant string into an EditText by the press of a button. The string should be inserted at the current position in the EditText.
If I use EditText.append the text gets inserted at the end of the EditText.

How can I do that? I couldn't find a suitable method.

View 3 Replies View Related

Android :: Current Orientation Of Device / Slider Position

Feb 5, 2009

How do i find the current orientation of the phone (portrait or landscape) How do i find the slider position?

View 2 Replies View Related

Android :: Clear All Map Overlays Or Markers From Google Map?

Mar 31, 2010

I want to clear all map overlays or markers from google map and using following code

if(!mapOverlays.isEmpty())
{
mapOverlays.clear();
}

which is giving me exception can any one guide me? am i right or wrong if i am wrong then kindly provide me the solution to my problem. i want map clean if there is any marker on it.

View 2 Replies View Related

Android : Dynamically Load App List In Droid?

Aug 13, 2010

Let's say, there are four apps in the system: app1, app2, app3, app4.

Be default, when the system is up, all apps will be shown in the home screen. Now if we provide a customized log in screen, user A log in, then for this user, he can only see (and use ) app1 and app2. Then A log out, user B log in, he can only see app3 and app4.

Does API provide such capability to load the app list dynamically?

View 1 Replies View Related

Android : Load Layout Dynamically At Runtime In Droid?

Nov 20, 2010

My application requires 2 screens and for this I have created two different XML layout files using RelativeLayout. One layout file loads whenever I run my Activity. Now I want to load the second layout on to the same Activity , when user click on a button in OptionsMenu and also when user press Back button the first screen loads instead of exiting the application. So that i don't need to create another Intent in my application.

View 3 Replies View Related

Getting Latitude And Longitude Of Current Position?

Feb 22, 2012

how do you actually get the co-ordinates ofyour position in java? I thought I had it figured out but i seemto be getting a nullpointerException so it must not be getting anything.

Code:
LocationManager lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
Location location = lm.getLastKnownLocation(LocationManager.GPS_PROVIDER);
double lati = location.getLatitude();
double longi = location.getLongitude();
GeoPoint me = new GeoPoint((int)(lati*1E6), (int) (longi*1E6));

View 9 Replies View Related

Android :: Getting Maps To Accept A Dynamically Generated KML File

Mar 18, 2010

I have a button that launches the google maps app on my device via an intent. I want to be able to pass it a php page that generates a KML file.

I have done this on a website before using the googlemaps api in JS - but it doesn't seem to work on Android.

My php file is as follows;

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

Launching with:

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

It launches maps, finds the file - but won't display it 'because it contains errors'.

Is this just not possible, or are there other ways to construct the intent that might work?

View 2 Replies View Related

Android :: How To Load A Java Class Dynamically On Android/dalvik?

Jun 11, 2010

I'm wondering if and how one can load dex or class files dynamically in dalvik, some quick'n'dirty test function I wrote was this:

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

whereas the Foo interface is this

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

and f.dex contains some dx'ed implementation of that interface:

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

The above test driver throws at defineClass() and it doesn't work and I investigated the dalvik code and found this:

http://www.google.com/codesearch/p?hl=en#atE6BTe41-M/vm/Jni.c&q=Jni.c...

So I'm wondering if anyone can enlighten me if this is possible in some other way or not supposed to be possible.

View 1 Replies View Related

Android :: Android - Want To Display Map But No Current Position?

Oct 19, 2010

In my actual project I need to draw a MapView with a given running/walking/cycling path on top of it. I don't need the current position so I added an overlay just for the path (no MyLocationOverlay). The path is painted but I don't see the Map in the emulator - only the grey tiles. The apiKey is set in the layout (MapView) and INTERNET permission is set in the Manifest. So I'm wondering if I need more. Is it the emulator simply not working well (I do have 3G and 2 bars in the emulator) or do I need something else? Do I need to build an additional overlay or add additional permissions (xxxLOCATION) to the Manifest.

View 1 Replies View Related

Android :: Cannot Load Maps With Production API Key

May 26, 2009

I obtained a production maps API key. I then signed the .apk with the production keystore cert, but when I load it onto my phone there is no maps data. I do, however, get maps data with the dev key. What am I missing here?????? This is literally blocking my release here.

View 7 Replies View Related







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