Android :: Map Overlay Labels - Display Name Of Location

Mar 15, 2010

I am building a MapView and I want my custom overlay items to display the name of the location they are marking when the user taps them, like the Android Maps app. I setup the onTap listener and the floating TextView to hold the location name. I still need to set it up so that it redraws the label when the user moves the map, etc. Anyway, I am wondering if I am reinventing the wheel here. Is there a built-in method I am unaware of? I would think that most implementations of MapView have labels. For reference, my implementation so far: in map xml:

<LinearLayout android:id="@+id/mapBubbleWrap" android:layout_width="wrap_content"
andoid:layout_height="wrap_content" android:layout_alignParentTop="true">
<TextView android:id="@+id/mapBubble" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:visibility="gone"
android:background="#ffffff" android:textColor="#ff0000"/>
</LinearLayout>

in my extended ItemizedOverlay:
public boolean onTap(int index) { this.setFocus( mOverlays.get(index) ); return true; }
in my Activity onFocus:
public void onFocusChanged( ItemizedOverlay overlay, OverlayItem item ) {
if( item != null) { mapBubble.setText(item.getTitle());
Point newPoint = mapView.getProjection().toPixels(item.getPoint(), null);
mapBubbleWrap.setPadding(newPoint.x, newPoint.y-10, 0, 0);
mapBubble.setVisibility(View.VISIBLE); } }

Android :: Map Overlay Labels - Display Name of Location


Android :: Override Enable Location In My Location Overlay

Mar 4, 2010

I want to override the method enableMyLocation() in MyLocationOverlay class, in order to implement my own positioning algorithm to get latitude/longitude, and then plot them onto a MapView. I figured out how to do that, but now I'm stuck because I dont know what Canvas to pass when I call the method drawMyLocation().
Here is the MyLocationOverlay class

View 4 Replies View Related

Android :: Change Update Time Of Location Overlay

Aug 18, 2010

I am trying to see if anyone knows if it is possible to change the update time of MyLocationOverlay (http://bit .ly /dBIVdj). I have tried subclassing MyLocationOverlay and implementing my own location manager but when that happens I do not see the overlay on the map. I would try overriding the drawMyLocation method however I don't know which canvas to provide the method (since I would be drawing onLocationChange). To summarize, I am looking to do three things in MyLocationOverlay subclass:

1. Change the location update times to whatever I want.

2. Draw the "my location" dot with the radius when the onLocationChanged() method is called.
I've thought about making my own special class with special overlay -- but I feel like there has to be a better method to get what I want out of this class.

View 13 Replies View Related

Android :: How Can I Replace Compass Image Of Location Overlay?

Aug 24, 2010

I want to use my image to replace the Compass image of MyLocationOverlay, how can i implement?

View 1 Replies View Related

Android :: Customize My Location Overlay Update Times

Aug 11, 2010

I am trying to implement the MyLocationOverlay class from google maps. However, when I try and use my own locationManager -- I cannot get the overlay to acutally draw on the map. I am wondering if I am doing something wrong.

I don't want to call the super method(enbaleMyLocation) of the MyLocationOverlay class because that request updates from the locationManager way too quickly and will eat my battery alive.

Here is my code...

View 2 Replies View Related

Android :: My Location Overlay - Customizing Compass Position On Screen?

Nov 3, 2010

I am using these three lines to add a compass on the MapView: mMyLocationOverlay = new MyLocationOverlay (this,mapView);mMyLocationOverlay. enableCompass(); mapView.getOverlays() .add(mMyLocation Overlay) ; However the default position of the compass showing on the screen is not too good for my apps, and I want to move it to somewhere else. Anyone knows how I can achieve that?

View 2 Replies View Related

Android : Location/maps - Speed - Delete Overlay Without Deleting All The Others

Oct 26, 2010

I'm messing around with maps and gps and i have some questions. Hope any of you point me in the right direction:

- I´m loading about 400 overlays in a mapview, but it takes 2-3 minutes. Is there any way to speed things up?

- On the other hand, I use another overlay to point device gps position, but when location point change i need to delete this overlay to put it again in it's new position. How can i delete this overlay without deleting all the others?

View 15 Replies View Related

Android :: How To Return Location Pressed To MapActivity From An Overlay OnTap Method

Aug 30, 2010

I have an activity that has a button which opens a new MapActivity to select a location by tapping on the map.

The map has an overlay that overrides the onTap method to get the location but I want to return that location to the previous activity but, I don't know how to return the geopoint to the mapactivity in order to call the setResult() and finish() methods, because I can't call them from the Overlay.onTap method.

View 2 Replies View Related

Android :: Display AlertDialog As System Overlay Window From Service

Sep 28, 2010

I have issue with displaying AlertDialog from Service. I am able to display custom layout window using Toast or using WindowManager(TYPE_SYSTEM_ALERT or TYPE_SYSTEM_OVERLAY). But, I do not want to use custom layout, I prefer to use nice AlertDialog GUI directly.

Scenario:

Running Service. No active Activity present. On some external event, Service sends Notification
When user press Notification, Service is informed via PendingIntent and AlertDialog should be displayed (created with AlertDialog.Builder(this))

Error: ERROR/AndroidRuntime(1063): Caused by: android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application. Searching for the answer lead me to impression that I am trying something that is currently not possible (Android 2.2). Or maybe it is.

View 1 Replies View Related

Android :: Map Open Overlay When Pin Is Clicked - Overlay Contains Description / Button

Aug 18, 2010

I like tu use the MapActivity to display some pins. When a pin is pressed i like to open a description. This can I obtain following the tutorial: http://developer.android.com /resources /tutorials/views/hello-mapview. But now I like to put a button on the overlay window. That button should open a detail activity. How can I make this? How is possible to personalize the overlay "info window"?

View 2 Replies View Related

Android :: Not Being Able To Display Current Location On Map / Code Fr This?

Oct 14, 2010

I am new to android and not being able to display current location on map so can you provide me the code for displaying Location with manifest.xml and main.xml.

View 2 Replies View Related

Android : Display Image Background - Transparent Text At Particular Location

Oct 6, 2010

I need to display image has background and transparent text at particular location of the image text,here my problem is it display well in some devices and not being proper alignment in larger screens,even i used separate resource file like layout,layout-large,layout-small but in some case it's not working well,i set. Code...

View 1 Replies View Related

HTC Hero :: Clock - Weather Widget - Won't Display Current Location

Sep 1, 2009

I've had my Hero on Orange for 4 or 5 days now and apart from when I first switched on the phone the weather app has just said "No weather data available" and the clock/weather widget has just had my location. I have the "location by cell" thing switched on, and I did manage to get it working once with the GPS, but other than that it just displays my location. It's the same whatever location I am in. The other cities download the weather just fine (London, Paris, New York, etc.). It's not like I'm somewhere tiny either, I am in Bromley. It doesn't make any difference whether I'm using WiFi or 3G.

View 49 Replies View Related

General :: 7 Inch Galaxy Tab - Display Moving Google Map With Current Location Centered?

Mar 18, 2012

Any widget that will display a moving google map with my current location centered? There are a couple apps I've found that are close, they just don't update in realtime. The reason I ask is because I have my 7" galaxy tab mounted in my truck. I use a program called torque to add gauge widgets (coolant temp,boost pressure, rpm,etc) to my home screen and would like to have a moving map display as well. I understand this would be a battery hog,but the tablet is always plugged in.

View 1 Replies View Related

Android :: Adding Labels To Points On Map?

Jan 6, 2010

I'm trying to add a label to each of the points on a map that I've created. Setting the "title" and "snippet" values of the OverlayItem don't seem to automatically cause these labels to appear however. I would've thought this would be a pretty simple and common requirement. Am I missing something? Can someone tell me if there's a function that does this?

View 3 Replies View Related

Android :: Need Screen Which Contains A Few Labels Under Them Listview

Dec 4, 2009

I am starting with listactivity. I was able to create a simple list view using ListActivity and Arrayadapters. The problem before me now is i need a screen which contains a few labels and fields and under them a listview. how to go about it ? moreover whats the difference between layout and activity ? how well should i use them ? Until now I thought one application one activity, but after looking Apisamples i found myself wrong. A few correct links will help. is "busy programmers' guide to android dev" a good book ? Can I get a softcopy from somebody?

View 3 Replies View Related

Android :: Any Way To Get Notifications For New Emails Into Labels?

Feb 25, 2009

I've found that apps which come into my inbox bring up a notification, awesome. However, I have Gmail filters setup to sort out my numerous emails into various labels, but keep them unread. Is there a way to get notifications for new emails which go into those labels?

View 7 Replies View Related

Android :: Check New Google Mails Archived To Labels?

May 25, 2010

I am new to Android. I plan to check for new mails on Google Mail (GMail) that are archived to their labels. Are there any examples that'll show how to do this (Gmail API, etc.?)? I searched a lot but found no helpful information about this, hope someone can help. What do I need?

Is there a way to check (with push) whether there are new mails in a label. I think the standard Gmail Android app could not do this!?

View 2 Replies View Related

Android :: Multiple Exchange Accounts With One Inbox And Email With Different Labels

May 10, 2010

I have multiple email accounts & would love to find an app that will act like Thunderbird. I want to check all the accounts and look at one Inbox and see all the mail that has come in with different labels. Is there an app that will do this out there?

View 36 Replies View Related

Android :: How To Install Folder Organizer / Icon Labels On Phone?

Jun 30, 2010

I just installed Folder Organizer Lite on my Desire in order to be able to change the icons on my home screen. It worked like a charm, but now I have a question. I am able to edit the name of the icons, for example I have changed Advanced Task Killer to ATK, but I would like to have the option to not have any text at all. When I go to alter the text as usual and just delete the text, nothing changes. So does anyone out there know how to completely remove text from underneath icons?

View 2 Replies View Related

Android :: Text Boxes / Labels Buttons Shrink In Size

Mar 2, 2010

I designed the user interface of my app on the emulator and then I installed it on the Nexus one. For some reason the text boxes, labels buttons etc. have shrink in size. It looks as if the view has been zoomed out on the phone. If I arrange it correctly on the phone the objects don't fit on the emulator. Has anyone faced this? Is there some setting to have consistency between the look of the emulator and Nexus One.

View 7 Replies View Related

Android :: How To Create ListView Disabled Item Labels For Sections?

Jul 27, 2010

I have a customized Cursor based adapter for my ListView. Each Cursor has a few columns of data, sorted by the priority column. I know you can create a disabled list item to act as a sort of header, like in the Market app (the little green labels). What I would like to do is display a header for each group of items with a different priority. They are already sorted by priority. Example data:
title, priority
note1, high
note3, high
note2, low
note4, low

Example of what I want in ListView:
= High Priority =
-note1
-note3
= Low Priority =
-note2
-note4

View 1 Replies View Related

Android :: Difference In MapView Elements Size (Street Labels)

Mar 27, 2010

Comparing a MapView as used in an app through Google Maps API against the Google Maps app, I found that the granularity of all elements, most visibly, street labels, in Google Maps is bigger than the street labels in MapView. This is on a Nexus One, presumably other devices show a similar behavior. I did not find any hint in the documentation how to dial this for a MapView.

View 2 Replies View Related

Android :: Location Manager Minimum Update Time Overridden / When Location Changes?

Oct 26, 2010

I'm developing a mapping app using Eclipse 3.5.I'm setting the minimum update period with the LocationManager's requestLocationUpdates method, via a configuration activity. When I set the property I see in Logcat that the system process sets the value OK.When I actually send a new location from the DDMS emulator control and the location changes on the map view, I see that the system process then sets the minimum time to zero.Below is a capture of the system's log messages. You can see that I'm setting the period to 32 seconds, then 16, then, after I've sent a simulated location change the system sets it to zero.The map responds to location changes to location changes instantly even if they are sent only a couple of seconds apart.

View 1 Replies View Related

Android :: Location Manager Does Not Detect Location Correctly

Sep 17, 2010

In my application I have to fetch the current location. First it correctly fetches the location. But we are moving from the current location to some other location. It shows the previous address. It is not updating the location. My code is: locManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE); locListener = new MyLocationListener();locManager.requestLocationUpdates(LocationManager .GPS_PROVIDER ,0,0,locListener); location = locManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);if(location != null){latitude = location.getLatitude();longitude = location.getLongitude();} Please find the mistake and when i launch first time it is not working on second time itself it is working so check this thing also.

View 1 Replies View Related

Android :: Testing Location Using Network As Location Provider?

Jan 27, 2010

I have an application which uses the network as the location provider (rather than GPS eg.), however I can't seem to figure out how to send the emulator test coordinates. In DDMS I would usually send coordinates in the Emulator Control tab.Is there a place to simulate coordinates derived from the cell phone network provider?

View 6 Replies View Related

HTC EVO 4G :: Any Way To Disable Application Icons Labels?

Jul 2, 2010

Hello everyone. Is there a feature or a check box that I am missing that allows you to turn off the little text labels beneath the application icons on the home screen? I'm kind of doubtful, but a search did not return an answer. It would certainly clean up the home screen. Plus a lot of labels are "cut off" due to length and that is just annoying.

View 10 Replies View Related

HTC Desire :: How To Customize Contacts Labels?

Oct 18, 2010

Eventually found out how to do this as there was a customize feature on the HTC Magic. The solution is to do it through Google Contacts and then synchronize the contacts back to the phone. Simple - pity no one at HTC Support seemed to know.

View 10 Replies View Related

HTC EVO 4G :: Gmail Labels Order Or Filter?

Sep 1, 2010

We have used a Google domain and provided mail (gmail) for some time. Have quite a number of labels in use to file things. Only a few labels I need synced to my EVO. Inbox is obvious and is at the top of the list so easy to find etc. Problem is that the 4 or 5 others that I use regularly are all down the list in alpha order. Is there anyway to reorder the list of labels to bring the sync'd ones to the top or to filter so non-synced labels do not show in the list? Or perhaps shortcuts I could build on my home page to go directly to other than inbox?

View 1 Replies View Related

HTC EVO 4G :: Hiding Text Labels Under Icons

Jun 11, 2010

Can it be done? is there an app for that?

View 8 Replies View Related







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