By de_duu
on Tue, 04/09/2013 - 11:50
Hi, I'm running the ImageTarget sample app on Galaxy note 1. When I tap (either single or double) my screen, the method did not get called. I tried to debug by put the log message and the log message did not displayed in myLog cat.
In my onCreate the gesture detector has been initialized. Any idea?
Gesture detector did not work
Hi, have you made any other changes to the original sample code (beside the log instructions) ?
Gesture detector did not work
In particular, in ImageTargets.java, you should see this code:
Gesture detector did not work
Yes, but why when I did single tap, autofocus native method only worked once although I did several time of single tap and . besides, double tap never get called.. Do you have any idea?
Gesture detector did not work
So, if you put a Log message inside onSingleTapUp function, do you see a Log only the first time, or more than once ?
Gesture detector did not work
More than once, but autoFocus function only worked once. I still tried to find out what's wrong.. Is that due to I set the focus mode to be FOCUS_MODE_MACRO ?
Gesture detector did not work
Using the FOCUS_MODE_MACRO might be the reason for your issue; try using FOCUS_MODE_NORMAL and test again, to see if it makes any difference.