Research Log of Web Science Students

Computer Science is not simply programming

Adding POI’s using long press

leave a comment »

One Feature of our application is to be able to add Points of Interest.
The application should be able to detect long press on the Map and and get the coordinates of the location the user pressed. I tried implementing OnTouchEvent on our overlay which should detect an action down when the user pressed on the screen and a timer for the delay but it seems to overlap on our overlay’s tap listener which lead to failure in detecting Taps.
But using OpenStreetMapViewer‘s own overlay method onLongPress seems to work. I just added an interface Listener for Long Press. Our application can now detect a long press and add Coordinates on our database.
All Poi’s added by the user are called “Sample Building” though.
Still need to work on that.. Maybe I can use a separate activity holding textboxes with a Dialog theme for the interface.

Written by laurencekit07

December 8, 2009 at 12:18 pm

Posted in UP Nav

Tagged with ,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: