Android :: Click A Specific Point On Map And Then Draw Overlayitem It?

Oct 13, 2010

I have been looking this but haven't found a concrete example is there a way to click a specific point on a Map and then draw a overlayitem it?

Android :: Click a specific point on Map and then draw overlayitem it?


Android :: Draw 15Km Radius Around Point

May 12, 2010

I want to draw a a circle of 15 KM radius around a point on Google Maps by using Android. In Android we only have MapView and MapViewController. How can I implement the drawCircle funciton provided in Google Map Circle example in Android.

View 1 Replies View Related

Android :: How To Get Point From Click Google Map?

May 31, 2010

I want to get the point of the mapview throuth click the map.I have tried to use the onTouchlistener,but in this way,the map can not move,zoom. Please give me some idea or a sample!

View 6 Replies View Related

Android :: Draw A Cube At Specific Co-ordinates?

Jun 30, 2010

I'm looking to draw a cube at specific co-ordinates. I've got all 4 corners and the centers x/y value. I now want to construct a cube at those co-ordinates. Does anyone know of any tutorials or have any information on how I would go about said task?

Ive got the following code. I'd like to map each of its corners to a specific x/y co-ord...

View 1 Replies View Related

Android :: Wifi Connection - Connect To Access Point With Specific Name

Oct 1, 2010

I have an application in which I need to connect to an access point with a specific name. Therefor I start a scan (WifiManager.startScan()) and listen to BroadCastEvents of type SCAN_RESULTS_AVAILABLE_ACTION and NETWORK_STATE_CHANGED_ACTION. When the scan results are available, I check if my AP is found and if so I connect to it.

When I'm connected to the AP, I receive a NETWORK_STATE_CHANGED_ACTION and there I open a SocketConnection to my serverSocket. The problem I'm having is that on the moment that I'm connected to the AP, the DHCP request is not yet finished. This causes the opening of the socketConnection to throw a "SocketException: Network unreachable". A few moments later I see in the logcat logging: WifiStateTracker - DhcpHandler: DHCP request succeeded. If I try to connect after this message, all goes fine. is there an event that I can listen to that informs me that the DHCP request is done? Now I try to create a connection and while an error occurs I retry. This is however very dangerous for hanging (if e.g the dhcp fails, the loop will never stop...)

View 2 Replies View Related

Android :: Draw ImageView At Specific GeoPoint On MapView

Oct 1, 2010

Trying to solve my current problem of drawing an image on an Android MapView and then animate it to represent a moving object, I decided to try to just draw a raw ImageView at a GeoPoint on the map and then try and animate it from there.

This is the code I put in my map activity (extends MapActivity)'s onCreate method:

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

Again, I'm just trying to draw the static icon and animate it from there. I can already do this with an ItemizedOverlay, but as far as I can tell, I can't animate the elements of an AnimatedOverlay the way that I can animate a view. Thus, using ImageView.

But the icon doesn't show up.

View 1 Replies View Related

Android :: Draw Custom View On Specific Position Of Screen?

Apr 5, 2010

I have a custom component which consists of 2 text view and 4 toggle buttons. I want to draw this view at some specific position on the screen. How is that possible?

View 1 Replies View Related

General :: One Click Template Msg To Specific Recipient

Mar 12, 2012

Everytime i drive to my girlfriend's house i have to write a message that i have arrived and she can come out but i have to prepare text it while standing in the traffic jam, at the traffic light or while driving (it's uncomfortable and dangerous!).

So i though - what about a shortcut on my home screen or in my "Car Home" app that:

will send a certain template message to a certain recipient just by one click on the shortcut (well maybe can be two clicks that the second will ask for confirmation "YES/NO").

View 2 Replies View Related

Games :: Need Point / Click Style Adventure Games

Jun 3, 2010

Greetings all, newbie here. I'm a huge fan of the old school point and click adventure games (Monkey Island, Sam and Max, Discworld, etc) and am hoping to find something in this genre for my new HTC hero. Any suggestions? Also, I know there's a ScummVM port, does anyone have any experience with that? I'm afraid direct ports will not work well on my 3.2 screen.

View 2 Replies View Related

Android :: Draw Route Path Draw Function

Sep 5, 2010

In my android application I use this method in "draw" Overlay class for draw route on map. Can someone tell me if this method is good (in terms of performance) for route draw on map or I must to put code in Thread ??
I'm new to android.

public synchronized void draw(Canvas canvas, MapView mapView, boolean shadow) {
if (pointsAndTimes.isEmpty()) {
return;
}
Projection projection = mapView.getProjection();
Paint paint = new Paint();
paint.setARGB(250, 255, 0, 0);.............

View 1 Replies View Related

Android :: How To Use OverlayItem's Fields?

Aug 3, 2009

I would like to how to use OverlayItem's fields (Title and snippet) 'cause they are never displayed on the map?

View 2 Replies View Related

Android :: Know Which Overlayitem Is Being Tapped?

Nov 17, 2009

Currently I used a map view and placed some overlay items in them

I overiden the onTap function in ItemizedOverlay so that when user tap on the markers icons on the map, some action will perform.

However, I don't know how to know which marker is being tapped so that the related data of the item will be displayed in the screen. How can I do that?

View 1 Replies View Related

Android :: When Do I Update OverlayItem List?

Jun 24, 2010

From everything that I've seen and have been reading, I'm apparently supposed to add all my OverlayItems in the constructor, then call Populate().The problem I have conceptually, is that if I'm pulling these items from a database (fed by a web site), then when exactly do I update the items?Also, it seems to me that it's a waste of resources to feed it all the items in advance instead of the ones pertaining to the current location... This seems to be the perfect case to use a ContentProvider, but I don't see anything indicating that one can be used with either ItemizedOverlay or anything else related to the Google Maps API.

View 14 Replies View Related

Android :: Able To Get Current OverlayItem Being Drawn

Jul 8, 2010

I want to be able to get some reference to the curent object being drawn. code...

Above is my draw method and I want to extend the draw method to write the title underneath each item for example. This would require the .getTitle() method from the OverlayItem. Possibly some tracking of objects outside of this method but not sure where to put it....

View 1 Replies View Related

Android :: OverlayItem Not Displaying Markers / What To Show It?

Jul 5, 2010

I have the following code and the markers are not appearing on the map at all! code...

View 1 Replies View Related

Android :: Add TextView/Layout To Map's Overlay / OverlayItem?

Apr 12, 2010

When a marker is clicked on google map, a small square area is displayed with hyperlinks. I guess OverlayItem does not render hyperlinks for its snippet. How to achieve this? Ideally I want to assign a layout with all sorts widgets. Presume I can display a small floating activity window when the marker is clicked, but is this the standard way doing this? The drawback of floating activity window is that if want to click another marker, user has to dismiss the current window first.

View 2 Replies View Related

Android :: Change State Of Any OverlayItem On Googlemap?

Feb 5, 2010

I am able to display multiple overlayItems on Googlemap, now I want to change icon of any specific overlayItem (to show it is currently selected event). I want to do it through navigation buttons (next, previous) as on Google maps.

I am using StateListDrawable to display icons for OverlayItems. code...

Now my question is how do I change the state of any overlayItem/Icon on map when user click on one of navigation keys?

View 1 Replies View Related

Android : After Removing OverlayItem Tap Events Are Still Trigger / Fix?

Oct 27, 2010

I have a simple overlay for a Google Map: http://pastebin.com/Rg8miMSh and I add/remove items on it depending on the zoom level. After removing/adding I call populate on the overlay and invalidate on the map view. Everything works just fine, except 1 glitch: after an item was removed, if I tap its location onTap is still triggered and because the OverlayItem is not there anymore i get java.lang.ArrayIndexOutOfBoundsException in com.google.android.maps.ItemizedOverlay.maskHelper(ItemizedOverlay.java: 562) (full stack trace - http://pastebin.com/KThn4ZLE )

Anyone knows why this is happening or how to fix it? Initially i called clear and added all items all over again which didn't seems to cause this problem. However having many items this was becoming a performance issue. Adding/removing only the difference works much faster and I would like to keep this method.

View 2 Replies View Related

Android :: How To Create Message Bubble With 2 Buttons / Appears On Top Of Overlayitem

Mar 20, 2010

I currently have implemented an overlayitem that shows an icon for geopoint on a map application in Android. When the icon is clicked, it brings up an AlertDialog from the onTap method below.Does anyone know how to display a map message bubble directly above the icon overlayitem with 2 callout buttons one to the left of the title and one to the right of the bubble? Does anyone know how to make the overlayitem draggable so I can press and hold it and drag it across the map. I am trying to duplicate the draggable icon behavior that's available on the iPhone.

View 2 Replies View Related

Android :: ListView Selection - Make Only Item Click Be Effected By Click?

Apr 1, 2010

when I click on one item in the ListView that item's background changes to light gray, but when I continue to scroll through the list every 4th item has the background changed to light gray even though those other items have not been clicked. How do I make only the item I clicked be effected by the click?

ListView lv = (ListView) findViewById(R.id.resultsList);
lv.setAdapter(new ArrayAdapter(this, R.layout.resultitem, (String[])labelList.toArray(new String[labelList.size()])));
lv.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView parent, View view, int position, long id) {
TextView tv = (TextView)view.findViewById(R.id.result);
tv.setBackgroundColor(Color.LTGRAY);
tv.setTextColor(Color.BLACK);

View 1 Replies View Related

Android :: Display Simple Text Label / Description Bubble When User Taps On OverlayItem In MapView?

Dec 29, 2009

I would like to further annotate the custom markers I have placed on a MapView (using ItemizedOverlay) by displaying a simple text label that appears for a particular item when the onTap event is fired.

This is a trivial exercise in the Google Maps JavaScript API and in MapKit on iPhone, but it is not obvious to me what the best or easiest way to do this is on Android.

View 1 Replies View Related

Android :: Catching Both Click And Long Click On ListView

May 3, 2010

I have a ListView in my Activity. I am trying to catch both a click and a long click (which should bring up a context menu).

ListView lv = (ListView) findViewById(R.id.MyListView); ... lv.setOnItemClickListener(this); lv.setOnCreateContextMenuListener(this); ...

I notice that if I have both the click and long click listeners up, I won't ever get the long click listener (i.e. the context menu). If I remove the setOnItemClickListener() call, i get a call into

@Override public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo) {

You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscribe@googlegroups.com For more options, visit this group at

View 4 Replies View Related

Android :: Click To Expand List -and- Click On A Button?

May 31, 2010

I have just started my career as an android programmer, and am currently relying heavily on the sample code and api examples. I have been working with this api example, to produce an expandable list of items (note this example does not use the ExpadableListView).In playing with the example, I tried to add another widget that would become visible and be gone at the same time as the text (mDialogue in the sample code). This works well with another TextView, but as soon as I tried to add a button widget, it stopped working. The list would expand on first click, showing my hidden TextView and Button, but it will not disappear on further clicks. The button is however, clickable, and I was able to set up an onClick listener to change the button text back and forth.I'm starting to wonder, is it just not possible to have a clickable item inside a clickable list item? Or is there some kind of work around? Would it solve my problem if I used ExpandableListView?

View 1 Replies View Related

HTC Incredible :: Change Email Notification To Specific Sound / Select A Specific Ring For Mms?

May 31, 2010

Just picked up my incredible, and I have two questions....

1. how do i change the email notification to a specific sound? As of rite now, when i receive an email nothing happens (no sound or vibrate).

2. How do I select a specific ring for mms. I know how to select sms, but I cant figure out how to change the mms.

View 3 Replies View Related

General :: Disable Specific App Permission For Specific Or All Apps

Mar 12, 2014

I have had androids for over two years now and am getting more and more concerned every time I download an app and seeing that it wants to READ my SMS message and Contacts.

Is there a way I can disable reading of SMS messages or any one of the other permissions by specific apps, or all apps?

Are we living in a world where any "joe schmo" can upload an app the to the app store and wait for those inadvertent downloads and collect all your personal information, and that's after all the time we spend protecting our identity and personal details?

View 2 Replies View Related

Android : When Click On GDE And Click The Home Button - Switches Back To Stock Home Screen

Dec 19, 2009

When I DL'd the GDE app, I accidentally set my stock droid "HOME" screen as the default screen when the popup box came up asking me to choose between stock Home and GDE. Now when I click on GDE and click the home button, it switches back to the stock Home screen. How to I switch the settings now to set the GDE app as the new home screen?

View 15 Replies View Related

Android :: Draw Shape Within Shape Or Draw 2 Lines Around Shape

Jun 21, 2010

I want to have a elmenent with a 2 color border outline. I can do a single color outline using the element, but this only allows me to draw a single line. I tried using 2 elements within my but that didnt work either. Is there a way to either draw a shape within a shape or draw 2 lines around my shape (which has rounded corners btw).

View 3 Replies View Related

Android :: How To Update Access Point?

Oct 13, 2010

I have successfully programmed insertion & deletion of an Access Point in database but I need to find out how to update an access point. I'm using db.update() but its not producing any result. I am using the following code to update an access point:

ContentValues updateFields = new ContentValues();
ContentResolver resolver = getContentResolver();
updateFields.put("name:", "AIRTEL");
updateFields.put("apn_addr", 11023);
resolver.update(TABLE_APN_URI,updateFields,"_id=?",new String[] {Long.toString(2)});

While updating I'm not getting any error as well.

View 1 Replies View Related

Android :: How Do I Point People To My App In Marketplace?

Apr 7, 2009

I understand that Android Marketplace is not available on the internet, just from the phone.I would, however, like to point people to my application if possible. If the person receives their emails on the G1, what type of link can I give so that clicking on it will take them to the app in the Android Marketplace?

View 3 Replies View Related

Android :: Getting Hardware Floating Point With NDK

Jun 9, 2010

I've begun playing with the android NDK. One of the things I've just learnt is about creating an application.mk file to specify the armv7 abi. I'm building the san-Angeles example with the following parameters. Code...

View 1 Replies View Related







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