Android : How To Show Pop Up On Clicking Map Overlay
Mar 4, 2010
I want to show a custom image with some data in it while clicking map overlay that i have added to google map in android.
Can any one guide me how can i create that custom image or thing to be displayed on google map with some data on it?
some body told me to go for custom view but i have no idea about them.
View 2 Replies
Sep 1, 2010
I am developing one Map based application and in this application i want to draw Multiple Overlay Item(With Marker) on map.so anyone can told me the efficient way of doing it.
View 1 Replies
View Related
Aug 28, 2010
I 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 Related
May 26, 2010
I read few threads, I'm sorry but none of them works/answers the simple scenario of:
1. I popup a dialog.
2. The dialog have EditText on it.
3. I want the keyboard to show up (without the need of clicking inside the edit text).
I tried:
CODE:.............
Then I tried both: CODE:.............
And: CODE:.............
View 4 Replies
View Related
Nov 24, 2010
When the user click the editText Field I need to show spinner(dynamic) from that user select any of the item i need to set the Text for Edit text .How to do this?
View 1 Replies
View Related
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
Apr 4, 2010
I'd like to show another List View 'B' after clicking a item of List View 'A'. I use onListItemClick event in Android 1.6 project.
View 6 Replies
View Related
Sep 21, 2010
I want to market an overlay for Android Maps. It will provide the "speed limit". My map will have to query the internet for updates pretty heavily as one travels. Q: Should I just use the "Maps external Library" thing? http://code.google.com/android/add-ons/google-apis/maps-overview.html or Q: Can I somehow make it an option in the normal google-map system that everyone has on their phone?
View 7 Replies
View Related
Feb 17, 2009
I am trying to make a map overlay animated much like MyLocationOverlay does. Currently the only things that I can see to make animated are Views but Overlays don't extend View functionality. My next thought was to try to lodge a View into the overlay, but the redundancy makes it seem like this solution is incorrect. I grabbed the android source hoping that I could just look at MyLocationOverlay source and that would let me know how the animation was supposed to be done, but I can't find the source for anything involving maps. If that is available somewhere it would help. Can someone point me to the MyLocationOverlay source or let me know what the paradigm is supposed to look like for animating map overlays?
View 2 Replies
View Related
Sep 23, 2009
Is it possible to create an Android activity as an overlay above other application? If yes, please provide me a pointer.
View 7 Replies
View Related
Sep 28, 2010
I have subclassed Overlay as LandMarkOverlay (and implemented an onTap(GeoPoint) method).
In the main activity I do this:
setContentView(R.layout.main);
MapView mapView = (MapView) findViewById(R.id.mapview);
mapView.setBuiltInZoomControls(true);
landmarkOverlay = new LandmarkOverlay();
//add the landmarkOverlay to the list
mapView.getOverlays().add(landmarkOverlay);
What else do I need to do so that when the user taps the screen, landmarkOverlay's onTap(GeoPoint) method gets called?
View 1 Replies
View Related
Oct 24, 2009
I want to draw 20 pins on a MapActivity. Each pin has a small pin image, but I have to dynamically overlay a small bit of text over each pin at runtime.
Looks like I have two options:
#1) Itemized Overlay This is the suggested method. I put all my pins in one ItemizedOverlay object, and that counts as a single Overlay object for my MapView.
#2) One Overlay per pin Create a separate Overlay instance for each pin I need to render.
The problem I see with using method #1 is that you need to set a drawable for the item. This would mean that I need to create 20+20 (one for focused/non-focused state each) bitmaps and keep them in memory for the duration of my app. On the other hand, Overlay lets you override the draw method so I can do the simple compositing at runtime.
The other issue with Itemized Overlay - although it handles focus for you - does it move the focused item to the front of the z-order when selected?
View 2 Replies
View Related
Jan 10, 2010
I have been banging away at this one for weeks and I feel like I have exhausted my research capabilities. I am hoping that someone will see my error in the code posted below. The code is completely functional doing everything I need, but there is a major memory leak. When I try to track memory in the DDMS, the VM Heap tells me that my object count is relatively stable and the used memory is also relatively stable (it comes back down to a similar value after each GC after panning).
When I look at the memory pie chart, the free memory loses over 1meg of capacity with each map pan (overlay reload) and the Unknown memory grows. I have not found anything with the allocation tracker. Functional Summary: I load overlays onto a map based on data I get from polling my server. When I pan the map far enough I clear the overlays and load new ones.
MapFrontEnd.java (snippets): //header info private List<Overlay> overlays;
//in onCreate overlays = mapView.getOverlays();
// here I attempt to fully clean up my old Overlays for (Overlay i : overlays) {
if (i instanceof ParcelOverlay) ((ParcelOverlay) i).cleanUp(); }
View 4 Replies
View Related
Nov 12, 2009
I've been trying almost everything and been searching and reading everywhere on the net. I just can't seem to find the correct way of doing this.
I have a MapActivity with a MapView and I want to draw something on an Overlay. I'm overwriting the draw-method, and I can easily draw straight on the canvas using a paint. My problem is I want to merge some circles and afterwards color them. Therefore I want to create a Bitmap and then draw on that. I just don't know what to use. Should I use a mutable Bitmap, a BitmapDrawable or am I simply going in the wrong direction.
The reason I want to do this is because I want to draw some kind of heatmap upon the Google Maps, and I need to merge and blend different circles, so they appear to be just one big blob.
View 6 Replies
View Related
Oct 13, 2010
How to overlay two images like the one in iphone notification icon or new launcher pro notification? I want to add new image on top right of an imageview to show notification.
View 2 Replies
View Related
Nov 18, 2010
I am searching for functionality which works like the itemizedOverlay on the mapview, only for Imageview. So that I can add items on specific locations on the image and trigger actions on tap of the item. I am building an application for Android where you get Floorplans and on this Floorplan the rooms should be marked and clickable to get more information.
View 1 Replies
View Related
Mar 10, 2010
have been dealing with placement of items in the ItemizedOverlay class with the google maps android library, which seems to work just fine. It handles the icon placments and associated properties of the icons that I place on the viewer.As of lately though, I noticed that I loose the satellite view altogether in the final zoom features of the map when I want to get in real close. I thought this would be a real good opportunity to use a blueprint of an area as an overly on the gridded map so that there were still areas of reference when analyzing an area up close. Unfortunately I have not been able to place a bounded region for the blueprint on the map. If I have latitude and longitude values for each corner of where the blueprint should be places, I can't seem to find a method to put this where I want it on the map.The only constructor/method that I have found only asks for a center point and then sizes the object appropriately. It seems odd that this feature wouldn't exist but I can't find anything to hint that it does exist. JFrog "Debugging is twice as hard as coding something the first time. Therefore, if you make your code as clever as possible, you are by definition, not smart enough to debug it."
View 3 Replies
View Related
Sep 26, 2010
I have built a simple app that uses a Google MapActivity. On top of the Map, I have 2 overlays, a Marathon Course and the position of a runner. The latter position overlay simply shows an updated blue dot.I update the location of the dot every second but the screen does not refresh. If I tap the scrren then the dot updates. Am I missing some hard refresh call somewhere? My Overlay code is small and shown below. Note that it does go into the draw routine every second and the point is changed.
View 3 Replies
View Related
May 13, 2010
I want to create a simple Map based application in android ,where i can display my current position.Instead of overlaying a simple Image on the MapView to represent the position, i want to overlay the GLSurfaceView on the MapView. But i don't know how to achieve this. Is there any way to do that?. Please anybody knows the solution help me.
View 1 Replies
View Related
Sep 22, 2010
I am trying to merge two examples from the ApiDemos so one overlay over the other. 1. CameraPreview.java 2. TranslucentGLSurfaceViewActivity.java I guess GLSurfaceView is not really necessary, I saw demos that uses a GL layer as a Camera PreviewCallback, but since I am such a noob at OpenGL, I am kind of lost. Can someone points me toward the light (figuratively speaking)?
View 1 Replies
View Related
Nov 8, 2010
I started an Android OpenGL application and I have the following classes: class A extends Activity class B extends GlSurfaceView implements Renderer When class A's onCreate is called, it creates an object of type class B and calls: How should I use my custom class that extends glSurfaceView in my XML file/Activity? Code...
View 2 Replies
View Related
Sep 13, 2010
I have a marker on the map using an Overlay. I also have access to the compass sensor which I'm able to show a textView with the orientation values (0 to 359). How can I apply this values to the marker? (which is a drawable). I already have a MAtrix created but when I insert the orientation value gives me an error, here it is:
GeoPoint geopoint = new GeoPoint((int) (newLocation.getLatitude() * 1E6),
(int) (newLocation.getLongitude() * 1E6)); Paint paint = new Paint();
Point pt = new Point(); mapView.getProjection().toPixels(geopoint, pt);
Bitmap bmp = BitmapFactory.decodeResource(getResources(),R.drawable.user2);
Matrix matrix = new Matrix(); matrix.postTranslate(-25, -25);
matrix.postRotate(direction); matrix.postTranslate(pt.x, pt.y);
paint.setAntiAlias(true); paint.setFilterBitmap(true);
int width = bmp.getWidth(); int height = bmp.getHeight();
Bitmap changedBitmap = Bitmap.createBitmap(bmp, 0, 0, width, height, matrix, true);
BitmapDrawable icon = new BitmapDrawable(changedBitmap);
icon.setBounds(0, 0, icon.getIntrinsicWidth(), icon.getIntrinsicHeight());
userOverlay useroverlay = new userOverlay(icon); useroverlay.addItem(item);
mapView.getOverlays().add(useroverlay);
I used the value retrieved from the sensor on "direction" but it doesn't work.
View 5 Replies
View Related
May 9, 2010
I am tryin to make a layout appear when even I clich on a row of listactivity. The Overlay layout contains certain function which have to be performed based on the row selected in the list. Can anyone pls suggest me how to do it.
View 1 Replies
View Related
May 20, 2010
I want to add a listener to a image which in the overlay so that dialog will exists after i click the image int the map.
View 2 Replies
View Related
Apr 27, 2010
Is there anyone who knows how to overlay a GLSurfaceview on a Surfaceview? The Surfaceview is used for the camera preview..
View 4 Replies
View Related
Feb 23, 2010
I spend two weeks now trying to get this working with no success. Here is what I want to do: I have several geo points around the user and his phone. I want to display this point overlaying them on the input from the camera (kind of standard AR (Augmented Reality) app). Part of my requirements are that the user can use the phone in either landscape or portrait mode.My plan was like this.
1. Register for Sensor.TYPE_ACCELEROMETER, Sensor.TYPE_MAGNETIC_FIELD 2. Pass the result to Sensor Manager.getRotationMatrix(), getting back the R matrix that should be telling me how to translate points from the Phone coordinate system (defined here: http://developer.android.com/reference/android/hardware/SensorEvent.html) to World coordinate system (x -> East, y -> North, z -> Sky) 3. I want to translate points from World to Phone so I take the inverse of R (I'm using Matrix.invertM()) to get R_In 4. Using the GPS I translate the geo points I want to display on the camera to points in the World coordinate system and then I run them through the R_In matrix to get their coordinates in the Phone system. 5. Draw the points in the screen only if the have (phone coordinates) z < 0 and x and y such that they are visible. This is my grand plan... however I have problems quite early (2). I do get the R matrix back and it looks good when I align the phone to the world coordinate system ( I get the identity matrix ). However when I try to translate an imaginary point from the Phone coordinate system say (0, 1, 0) to the World coordinate system I don't get the numbers I expect.
View 2 Replies
View Related
Feb 10, 2009
I am wondering if I am going about this problem the correct way.I am making an app that places overlays on top of google maps.When you click on the overlay it should launch a dialog type window that will give you options on what to do with that overlay.It is the line startActivity where the app throws an exception.I did the setFlags because an error message said it was needed because I was trying to start the Activity while outside an Activity.That makes me think I am going about this wrong.I have 'MyActivity' listed in my manifest so I don't think that is the issue.I have searched for this problem on the internet and I can't seem to find anyone else running into this so that is another reason I think I may be trying to do this the wrong way.
View 3 Replies
View Related
Nov 11, 2010
in my app i am having an Activity that launches another Activity ontop of it. The second Activity is meant to provide controls like next and previous for the first activity.How can i pass button events between the two activities that are visible at the same time without closing the Activity with the controls?
View 2 Replies
View Related
Aug 13, 2009
I want to be able to detect where a user has long pressed on my Map Overlay.The idea being to get the GeoPoint of the location the user pressed.I can detect where a user taps, but cannot find how to detect a long press.
View 5 Replies
View Related
Feb 16, 2009
I've been searching around and can't seem to find a way to do this properly. I am doing some tracking where I want to draw dots on a map overlay recording previous positions. When onDraw of the overlay is called it seems the canvas is cleared so I have to redraw all of the history on every invocation. This could result in several thousands of dots being draw over time which seems to not be very efficient. Is there some flag somewhere that I have not found which tells a map overlay to be persistent? Or is there some way I can save and restore the canvas so I'm only maintaining/drawing the current point on each onDraw?
View 4 Replies
View Related