Click here to Skip to main content
       

Mobile

 
Questionandroid:long press in buttons Pinmemberanoopgolden22-Sep-12 6:07 
AnswerRe: android:long press in buttons PinmemberAndrei Straut24-Sep-12 2:20 
GeneralRe: android:long press in buttons Pinmemberanoopgolden24-Sep-12 3:33 
GeneralRe: android:long press in buttons PinmemberAndrei Straut24-Sep-12 3: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    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 | Mobile
Web01 | 2.8.140415.2 | Last Updated 16 Apr 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid