Questions tagged [long-press]

if the user keeps pressing the button for some time, a different action is executed from the short press action.

308 questions
-1
votes
2 answers

Deactivate UILongPressGestureRecognizer after certain seconds?

How can i deactivate my UILongPressGestureRecognizer automatically after certain seconds?
-1
votes
1 answer

Long press fire after certain interval instead of release?

I have a button that starts a timer, but I'd like to have the option to start the timer after a delay. To achieve this I've set it up so you can long press on the button and get a dialog with alternative options for how to start the timer. Button…
Corey Ogburn
  • 24,072
  • 31
  • 113
  • 188
-2
votes
2 answers

Long Press Gesture Recognizer Fired Two times

I'm confused about LongPressGestureRecognizer.I placed one of these on a scroll view,but it works two times.When I lift my finger,the methods added on it called again.I wonder it only called first time.What should I do?Any help will be appreciated,…
KolinChen
  • 13
  • 6
-2
votes
1 answer

How to embed an activity in android which gets activated every time user long presses on any text or url in specific applications on the phone

How to embed an activity in android which gets activated every time user long presses on any text or url in specific applications , like facebook or whatsapp, on the phone.
-2
votes
2 answers

Long Press Android to Java

I'm trying to program a Mouse via Wifi TCP. Client is on Android and Server on Java. I'm trying to detect a LongPress on Android and send this information to Java. Android: I need to implement MotionEvent.ACTION_DOWN but I don´t know what to do…
-3
votes
3 answers

Is long press natural for Android?

This isn't a technical questions, more a quest for knowledge. I have never owned an Android device only ever iOS so have no idea of the natural gestures Android users use frequently. I am writing my app for Android and have to display a "Contexual…
RyanTCB
  • 7,400
  • 5
  • 42
  • 62
-3
votes
1 answer

longpress functionality doesnt work on a service?

i tried a code to detect long press anywhere on the phone. this is how it is: WindowManager wm; View myview; LayoutInflater li; @Override public IBinder onBind(Intent intent) { // TODO Auto-generated method stub return…
-4
votes
1 answer

UILongPressGestureRecognizer in subview didnot work

- (void)viewDidLoad { [super viewDidLoad]; CGRect imageRect = (CGRect){105, 180, 110, 110}; UIImage *image = [UIImage imageNamed: @"sasuke.png"]; UIImageView *imageView = [[UIImageView alloc] initWithFrame:imageRect]; [imageView…
One Double
  • 131
  • 2
  • 9
1 2 3
20
21