Android :: Displaying Information Box When Clicked On A Map Marker
Nov 15, 2009
I am looking for code examples of how to draw a description box when clicking on a map marker. Something similar to google map's implementation - http://code.google.com/apis/maps/documentation/examples/icon-custom.html (Click on the marker to see an example)
View 4 Replies
Jun 18, 2010
I am displaying google map and on top of that some overlay items(Markers) are there. When tapping on the markers, I need to display PopUpWindow. The code is executing but popup is not displaying.
popUp.showAtLocation(layout, Gravity.TOP, 0, 0); popUp.setFocusable(true); popUp.setTouchable(true); popUp.setOutsideTouchable(false); popUp.update(0,50, 320, 70);
Here layout is an object of LinearLayout.
I created another android application, in that, I put the above code and its working perfectly. PopupWindow is displaying.
View 2 Replies
View Related
May 19, 2010
I'm building a google map application that marks several points on the map. I'm currently trying to get the dialog box to appear when the marker is clicked. Right now, the markers appear at the right places but when i click them, the entire application stops unexpectedly/forced to close.Does anyone have any suggestions on what is wrong and how i should go about fixing it?
View 1 Replies
View Related
Apr 6, 2009
I want to display the status of the activity execution on the screen using the TextView while activity is executing. I am appending the String messages at different stages of execution in the TextView, which is defined in the Layout main.xml (e.g. TextView.append("Server started..").
For e.g. I am running socket communication application in which my android application is the server and it is receiving the messages from the local desktop. So in this application I want to show "Server started.." message when socket server on android started , then a messge "waiting for message.." and then "message receivied.." when message received by android server.All 3 steps are the part of a single activity.
But in my case, I am getting all 3 messages at a time after activity execution completed. Is there any API available, using which I can show the status during the execution also.
View 20 Replies
View Related
Mar 29, 2010
In my application when a user clicks on a button I want to open the contacts application and display a particular contacts information. At the minute I have this:
Intent intent = new Intent(Intent.ACTION_VIEW, People.CONTENT_URI);
startActivity(intent);
This displays the contact application with all the contacts displayed. But how do I get it to display just one contact according to the contacts name or number?
This Code works: (answer)
Uri contactUri = ContentUris.withAppendedId(People.CONTENT_URI, 23);
Intent intent = new Intent(Intent.ACTION_VIEW, contactUri);
startActivity(intent);
View 1 Replies
View Related
Jul 7, 2010
I am a Mac user (photographer/ videographer). I also rely heavily on my iPod Touch when mobile (i can often find a wifi signal when i am out and about). I use iCal on the Touch and iCal on my Mac as well as the address book on both everyday and as a Mobile Me user, my two devices sync so everything is mirrored and up to date. I also HATE AT&T for their terrible signal strength and coverage and have been a loyal Verizon customer for many years and this is why I don't have an iPhone. Okay, all that being said, is there an easy way to still use everything I love and rely on with my Mac (the calender and address book, mainly) and easily sync all of my existing information and future info to an Android based device? How easy is it to use an Android device with a Mac? I don't want to have to manually re-enter my entire address book into a new device.
View 8 Replies
View Related
Oct 27, 2010
I was wondering how can I display a bubble (a bubble like when you use Google map and you click on a marker there is that bubble that appear with a picture ans some informations) when I tap on one of my Marker that are on my Android Google map?
View 2 Replies
View Related
May 20, 2010
i want to add a marker to a position int the map ,so i add a image through canvas by overwrite overlay .But i want to get the other activity through clicking the image,who can tell me what can i do?
View 2 Replies
View Related
Oct 12, 2010
I am developing an application which shows the current location of the user. I want to display a marker on the current location of the user.
I have used an image as marker to display current location. But i want to display an animated arrow showing the range just like in the google maps android app. Can anyone please tell me how to achieve this.
View 1 Replies
View Related
Sep 1, 2009
Can any one help to create map view with a marker.
When we are clicking marker it should display info window.
By clicking that info window it shoul goto another layout.
View 5 Replies
View Related
Jun 4, 2009
Hey Is it easy/possible to drag marker objects in a MapView?
View 10 Replies
View Related
Oct 15, 2010
How can I drag a marker on the map?
How to handle it in onTouchEvent()?
I had written one code that actually drags. But it feels like the map is moving instead of the marker. That code is...
View 1 Replies
View Related
May 21, 2010
I want to add a dialog or a window in the map when click the marker as folows?but i don't know what to do. Does put the dialog int the Overlay or MapView?
View 12 Replies
View Related
Sep 7, 2010
It is possible to draw markers in runtime or at onLocationChange event, not on Create event?
View 1 Replies
View Related
Aug 25, 2010
I've got the following code which gets information from a database and plots it on a map. The information is there and clickable but the actual icon androidmarker is not visable. Why? How do I fix this? code...
View 1 Replies
View Related
Nov 14, 2010
how do i change the default blue animated marker for MyLocationOverlay in google maps?
View 1 Replies
View Related
Feb 25, 2010
I have a made custom popup marker. There is a button on the popup that shows up when you click on a marker on the map. Its function is to open a new activity when the button is clicked. So in the onClick function of the setOnClickListener() call, I created a new object of the Activity class and used that to call the various methods that needs to start the activity but I keep getting a java.lang.NullPointerException thrown regarding the line that calls the startActivityForResult() method. Not sure of the best way to go about this. I have pasted a sample code...
View 8 Replies
View Related
Sep 24, 2010
I want to create a mapview marker with 4 elements:
- picture (of user)
- background
- text (username)
- Arrow to show an direction
OverlayItem.setMarker() accept only a drawable.
How can I create an drawable with 4 Items? Or can i add an View as marker to overlayItem?
any ideas?
View 1 Replies
View Related
Apr 26, 2010
I displayed map and on top of map, I displayed a number of overlay Items(Markers). Clicking on overlay Items or markers will do some action. But the problem is when I click around the marker, means outside the marker, at that time also, the event triggers. I want to restrict that exactly when I am clicking on the marker, event has to take place. I am doing the event in opTap() method.
How can I restrict the event triggering to exactly when I click on the marker.
View 4 Replies
View Related
Jul 20, 2010
I can draw overlay items onto google maps just fine, an image that looks like:
_____
| |
______
/
Where the "/" part is the "pin" that marks the lat/lon on the map and a picture in the middle of it. My question is, is there any way to expand this when the user clicks on it? I'll of course have to change this to some kind of dialog or layout and change it when it gets clicked.
I want to have it smaller like that with just an image when not clicked on, but when it is clicked on it expands over like a second to:
--------------------------------------
| <image> <buttons> |
| <buttons> |
| <some info here> |
| |
--------------------------------------
/
Is this possible?
View 2 Replies
View Related
Jan 31, 2010
How do I add a marker on a particular location in the map?
I saw this code that shows the coordinates of the touched location. And I want a marker to pop or be shown in that same location everytime it is touched. How do I do this? Code...
View 2 Replies
View Related
Oct 7, 2010
Why I have to code so much for it. Like, I dont want to care about...the position of the balloon (I just want to assign a geopoint) the layout of a basic balloon (Later on I might want to implement a xml based layout) the number of shown balloons (only display one at a time) the open/close behaviour of the balloon (close, when an other bollon is tabbed)
View 1 Replies
View Related
Oct 9, 2010
I am working on a MapView app in Android. I have three markers that I want to be able to use the Google Map API getlocation-function on, later on. In order to try it out I would like to move the marker with a drag and drop-function, and then check the location.
Anyone who has gotten a drag and drop to work on an android marker, or know a way to start figuring it out?
View 1 Replies
View Related
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
Nov 8, 2010
I have map in m android app but it doesn't work well. I spent last two hours looking in code line by line but I don't know what is the problem.I set in manifest uses google maps. Map shows marker, doesn't show map ( instead in background is grid lines), zoom controls disappear after few seconds and not come back. What can be a problem ?
View 1 Replies
View Related
Nov 24, 2010
How can I read an XML file and then take over the individual items as markers in an overlay.
Here is an example of my XML files.
CODE:...............
I'm still a newbie in Java / Android but nowhere can I find a guide.
View 1 Replies
View Related
Apr 23, 2009
hello everyone, I would like to use the new AudioRecord class to record in PCM format. Create class and setRecordPositionUpdateListener to it, then start recording, I can't get any notification from system forever,why?(I didn't get any error when running)
The next is my code.
CODE:.............................
View 10 Replies
View Related
Jul 26, 2010
I want to place an animated marker showing a user's current location in an Overlay over a MapActivity. I need to be able to turn the animation on and off.
I thought this could be accomplished as follows:
CODE:..............
The constructor is invoked from the main MapActivity.onResume() using
locationOverlay = MyLocationOverlay(this)
And the animate/draw is invoked by
CODE:.................
However, the run() method never seems to be invoked.
View 1 Replies
View Related
Aug 9, 2013
I am trying to put a Marker of a special location, I have tried all the marking ways but cannot figure it out...here is my code
import com.google.android.gms.maps.SupportMapFragment;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
[Code]....
Here is my layout...the map works i just need a marker
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
[Code]...
View 5 Replies
View Related
Feb 28, 2010
How to make an image clickable?
I mean, I tried to use onClickListener and onClick but nothing seems to work....
OnClickListener is always underlined and the error says: "The type new DialogInterface.OnClickListener(){} must implement the inherited abstract method DialogInterface.OnClickListener.onClick(DialogInterface, int)"
View 4 Replies
View Related