Click here to Skip to main content
15,886,058 members
Home / Discussions / Mobile
   

Mobile

 
Questionandroid:long press in buttons Pin
anoopgolden22-Sep-12 6:07
anoopgolden22-Sep-12 6:07 
AnswerRe: android:long press in buttons Pin
Andrei Straut24-Sep-12 2:20
Andrei Straut24-Sep-12 2:20 
GeneralRe: android:long press in buttons Pin
anoopgolden24-Sep-12 3:33
anoopgolden24-Sep-12 3:33 
GeneralRe: android:long press in buttons Pin
Andrei Straut24-Sep-12 3:41
Andrei 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    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.