1

I am building a LiveWallpaper.

I detect touch events to perform certain actions.

   @Override
    public void onTouchEvent(MotionEvent event) {
        if (event.getAction() == MotionEvent.ACTION_DOWN) {
            int x = (int) event.getX();
            int y = (int) event.getY();
            if (status.equalsIgnoreCase("home")) {
                if (firstdoor.contains(x, y))
                    {goToShoppin();return;}
   ...OTHER STUFF

Now the point is that the surface seems to be quite sensitive and when the user touches the Wallpaper happens that I perform more than one of the desired actions.

Therefore I was thinking about implementing a "LongTouch".

Please any suggestion on how could I do it?

user229044
  • 232,980
  • 40
  • 330
  • 338
Lisa Anne
  • 4,482
  • 17
  • 83
  • 157

0 Answers0