Click here to Skip to main content


Questionandroid:long press in buttons Pinmemberanoopgolden22-Sep-12 7:07 
AnswerRe: android:long press in buttons PinmemberAndrei Straut24-Sep-12 3:20 
GeneralRe: android:long press in buttons Pinmemberanoopgolden24-Sep-12 4:33 
GeneralRe: android:long press in buttons PinmemberAndrei 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    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
Web03 | 2.8.150129.1 | Last Updated 28 Jan 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid