problem coming touchEvent release

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

problem coming touchEvent release

Postby ShanuSaxena » Sat Feb 07, 2009 1:23 pm

Hi all,
one problem coming in touchEvent when we touch the screen in the application, its works only touch like a fireKeyPressed() but i want that its works like a fireKeyReleased().. is it possible....? plz give me solution if any......
my sample code...use in app..

public boolean onTouchEvent(MotionEvent event) {
int x = (int) event.getX();
int y = (int) event.getY();

switch (event.getAction()) {
case MotionEvent.ACTION_DOWN:
switch (currentState) {
case SHOW_MAINMENU:
................
......
break;
}
break;
}

return super.onTouchEvent(event);
}
Change is the law of success. Always Smile :)
ShanuSaxena
Junior Developer
Junior Developer
 
Posts: 18
Joined: Tue Jan 06, 2009 8:28 am
Location: mumbai, india

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 4 guests