Monday, 2 September 2013

equivalent of getch() for Android

equivalent of getch() for Android

Is there an equivalent for C's getch() in Android or Java? I want the
execution to stop until the user does some action, like tap on the screen
or maybe press one of the hardware buttons like volume control or whatever
is available. Another option would be to show a modal message box window,
which does not let the program continue until the user presses on OK. Is
it possible to do this in a simple way in Android? What is the simplest
way to get something equivalent to getch() function in android?
I need to be able to use this in a Thread as well

No comments:

Post a Comment