Hi there,

This is really an 'emulator vs a real phone' question (I think:), with
respect to long-pressing:

I'm developing in the Emulator (without a phone to test on yet  -
getting that next week;)

I've implemented a

'public boolean onLongClick(android.view.View v)'

method on an appropriate Listener.

However, when I hold down the mouse while over the D-PAD Center key,
it just repeats the single click event, ad infinitum. But, when I
press the 'Enter' key on either the emulated Qwerty keyboard, or the
development machine's real keyboard, I DO get the expected 'long
press' event - the one that I need on get  via the D-PAD Center
button.

My question is:

Is this just a phenomenon on the emulated phone (and really, the D-PAD
Center long-press will actually work on a real phone)? ... or is that
last phrase just 'wishful thinking' on my part?

i.e. Many Android phones don't have a keyboard, so I need to be able
to do and capture, a long-press on the D-Pad Center button (and the
same for a long-press on the track-ball)

I've purchased a couple of books on Android development, and neither
of them go anywhere near a proper example of using long press events
(i.e. they both just say "you have to implement the
OnLongClickListener listener" and leave it at that).

Many thanks for any enlightenment on the above,
Steve

PS. I'm not using the long-press on the D-PAD center key for a context
menu in this case, but for another purpose.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to