[Solved] Recognize Touch Event On Map

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

[Solved] Recognize Touch Event On Map

Postby CHAKYANAS » Wed Mar 19, 2008 6:49 am

Hi all ,
Can Anybody help me on hw to recognise touch event (mouse click) on map :?:
User avatar
CHAKYANAS
Developer
Developer
 
Posts: 44
Joined: Mon Mar 03, 2008 5:08 am
Location: INDIA

Top

yes i got ...................

Postby CHAKYANAS » Thu Mar 20, 2008 10:34 am

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. public boolean dispatchTouchEvent(MotionEvent ev)  {
  2.  
  3.           int action = ev.getAction();
  4.  
  5.                 switch(action)
  6.  
  7.                         {
  8.  
  9.                                         case MotionEvent.ACTION_UP:
  10.  
  11.                                                  int X = (int)ev.getX();
  12.  
  13.                                      int Y = (int)ev.getY();
  14.  
  15.                                      checkInRange(X,Y);
  16.  
  17.                                      if( flag_for_Range==1)
  18.  
  19.                                      screencordToLat(X,Y);
  20.  
  21.                         break;
  22.  
  23.  
  24.  
  25.                         }
  26.  
  27.                  
  28.  
  29.         return false;
  30.  
  31.    }
Parsed in 0.035 seconds, using GeSHi 1.0.8.4
User avatar
CHAKYANAS
Developer
Developer
 
Posts: 44
Joined: Mon Mar 03, 2008 5:08 am
Location: INDIA

Top

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 3 guests