Click here to Skip to main content
13,293,178 members (43,161 online)
   

Mobile

 
Questionandroid:long press in buttons Pin
anoopgolden22-Sep-12 7:07
memberanoopgolden22-Sep-12 7:07 
AnswerRe: android:long press in buttons Pin
Andrei Straut24-Sep-12 3:20
memberAndrei Straut24-Sep-12 3:20 
GeneralRe: android:long press in buttons Pin
anoopgolden24-Sep-12 4:33
memberanoopgolden24-Sep-12 4:33 
GeneralRe: android:long press in buttons Pin
Andrei Straut24-Sep-12 4:41
memberAndrei Straut24-Sep-12 4:41 
Then you may want to override onKeyDown event and while the button is pressed do your thing. Also, this means you will have to poll for onKeyUp event to make sure the user doesn't take his finger off the button. Basically, you do your operation all the way between onKeyDown and onKeyUp events.

There is a thread on SO that may apply to your particular case here[^]
Full-fledged Java/.NET lover, full-fledged PHP hater.
Full-fledged Google/Microsoft lover, full-fledged Apple hater.
Full-fledged Skype lover, full-fledged YM hater.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy |
Web04 | 2.8.171207.1 | Last Updated 29 Oct 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid