Google Map View on Non Touch-Screen Phones - java

I have implemented Google Map view in my app with a number of custom markers. I am testing in the emulator and everything works fine if I treat the emulator like a touch screen phone - I can click on the custom markers and navigate and move the map properly.
However I don't seem to be able to manipulate the map with the trackball / dpad controls. Can Google Map view be used with the trackball or dpad ?
Thanks !

Try overriding the onTrackballEvent(android.view.MotionEvent event) method in the MapView.

Related

Google Maps v2: launch custom infowindow without using a marker

My question is regarding the java way of achieving this: Google Maps infoWindow without marker?
Is it possible to launch a custom info window in v2 without using a marker? Which event should I use to detect a long press on the map and how can I launch an InfoWindow?
Here is what I want to achieve.
I need to be able to get the location from the place, so I can add the marker to that position, whenever an icon from the custom view is selected.
Is it possible to launch a custom info window in v2 without using a
marker?
It isn't, but you can create a transparent marker and show the InfoWindow on it.
To make it transparent, use a transparent resource or use marker.setAlpha(0.0f).
Which event should I use to detect a long press on the map?
You can use the method GoogleMap.setOnMapLongClickListener().
How can I launch an InfoWindow?
You have to add a Marker and call showInfoWindow() method on it.

How to Apply Custom Filters in a Camera [Surfaceview Preview]...?

Guys i am developing Camera Application and this is my first android Application.
below i am Adding My App Screenshot for what i want.
First View :
Here , after Clicking on a Top-Right Corner Filter icon i want a below View.
Second View :
i don't know how can i get this type of a view. also how can i design this type of view into XML parts.
and i read more articles like how to Open a Multiple Surface-view Preview onto single screen but i did not get any much appreciate solution.
and Finally after selecting any of the Filter Preview i want a above Image type View.
means Selected Filter's is Preview apply onto Camera [Surfaceview Preview].
Please provide any type of Material link example.etc
guys please help me.any type of help will be appreciated..):
Thanks in advance
From the images, it's from a app called Geak Camera. Actually, I developed this app, and I used the GLSurfaceView not the surfaceview. And the app is not maintained now because I left that company. And I updated that app called "U camera".The scale animation was improved in "U camera".
All these manipulations can be performed with OpenCV. Download their basic Android example, and you can add your logic to onCameraFrame() callback.

Google Maps Android -- How access default infowindow?

I have a map that shows a few points. If the user searches for a location instead of using their default location, a placemark will show for the searched location as well. This placemark shows the infowindow by default. All of these points are shown on screen (using a bounding box).
However, although I can account for the placemark to be shown on screen inside a bounding box, I am currently unable to make sure its infowindow is completely visible on screen. For example, if the placemark is the northeast-most item, its infowindow will be overflowing off the screen both on the top and the right.
Is there any way to get the infowindow of a marker? I know I can build one out using the CustomWindowAdapter and later access that view, but I don't want to customize it at all, just to be able to access it (and not just be able to call show or hideinfowindow() from the marker).
Ideally, I could get the height and width of the infowindow in pixels and use that to make sure it is always completely shown on screen.
No, you cannot. What you see as "info window" inside the map view is nothing more than a buffered snapshot (or a screen dump if you will) of the view created by your InfoWindowAdapter, meaning it's not a traditional view added to the view hierarchy, rather it's an image shown in the OpenGL context.
Accessing or manipulating this view after showInfoWindow() won't make any difference to what gets displayed on the map, at least until you call showInfoWindow() again to take a new snapshot.
It's the same reason you cannot add a long-click listener to the info window.

checkable spinner for android app

I am working on a mapView app and I would like to have a button much like the layer button in google maps that allows someone to show or hide an option from a spinner. I have searched to try and find how to accomplish this but have been unsuccessful. Can someone point me in the right direction of what to search for or what to implement?
you can just make a custom view that has bunch of checkboxes and textviews (stacked horizontally as a bunch of relativelayouts stacked in a linearlayout). this is probably easy enough to do if you don't have a ton of items. (I'm assuming you don't because you referred to the maps options)

Listview that expands when we zoom inside in android

I have tried different examples searching different sites for expandable list view...
I had been successful in making an Expandable Listview....but it expands only when click on to it groups and button...i may require it like when i drag my two fingers in v shape model...it opens inside view....like in iphone map...when we zoom with two fingers it zoomins... any suggestions??
..........................................................................................................
You can try to detect finger gestures on your listview and if it matches the pinch zoom gesture, then you will make the listview expand its groups. Take a look at this for a tutorial on understanding and using finger gestures in android.

Categories

Resources