Click here to Skip to main content
11,922,788 members (54,866 online)


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 | Mobile
Web04 | 2.8.151125.1 | Last Updated 25 Nov 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid