onTrackballEvent sample Code Plz

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

onTrackballEvent sample Code Plz

Postby saamyandroid » Mon Nov 30, 2009 10:55 am

HI folks,

I Using app for Android Developer Phone 1.

I need Write Code for onTrackballEvent.

But i dont know how to Write Code within this method.

Can any one Give me sample code for onTrackballEvent?

Thanks in Advance
saamyandroid
Experienced Developer
Experienced Developer
 
Posts: 84
Joined: Wed Sep 09, 2009 8:17 pm
Location: INDIA

Top

Re: onTrackballEvent sample Code Plz

Postby mr_muskuraha » Tue Nov 23, 2010 7:24 am

@Override

public boolean onTrackballEvent(MotionEvent motion) {

switch (motion.getAction()) {

case (MotionEvent.ACTION_MOVE) :{

// logic for ACTION_MOVE motion event here

break;

}

case (MotionEvent.ACTION_DOWN) :{

// logic for ACTION_DOWN motion event here

break;

}

case (MotionEvent.ACTION_UP) :{

// logic for ACTION_UP motion event here

break;

}

}

return true;

}
mr_muskuraha
Senior Developer
Senior Developer
 
Posts: 142
Joined: Wed Jan 13, 2010 8:49 am

Top

Return to Map Problems

Who is online

Users browsing this forum: Majestic-12 [Bot] and 3 guests