The HTC Hero is fairly old. I keep one around because it's quite slow and if I can make something function fast on it, it will run exceptionally well on new hardware.
On the tablet you can use both a wired and a Bluetooth mouse (I've used a wired mouse and Bluetooth keyboard simultaneously). You shouldn't have to worry too much about the mouse as it is considered "fake touch" and just acts like a simulated finger event. Check out the "Touchscreen" section at this link to understand how to support it: http://developer.android.com/guide/topics/manifest/uses-feature-element.html#hw-features What you might want to test out is a tablet or phone with a Bluetooth keyboard with directional keys. I've run into a few apps that I wanted to use the directional keys on my Bluetooth keyboard and it wouldn't function properly. If you plan on doing apps that take a lot of input (like typing information in), your users will thank you if you support navigation via the keyboard. I'm not fond of having to constantly touch the screen to change input boxes when I have a tab and directional keys available. Some of the specialty hardware, like the Sony Xperia Play, have controls that take special consideration. I picked one up to make sure I could test things properly on an actual piece of hardware. Some even have special SDK add-ons available via Eclipse or from the manufacturers sites. It is one of the things that makes Android more challenging to code for, but I personally enjoy the challenge. It also gives us, the consumers, a lot of options and doesn't force everyone to be the same. Steven Studio LFP http://www.studio-lfp.com On Sunday, October 2, 2011 6:43:31 PM UTC-5, John Goche wrote: > > > Thanks, apparently I was able to get it to work perfectly following your > advice. > What I have not implemented is the code for trackball and joystick devices > which seem to generate their own events as described at: > > http://developer.android.com/reference/android/view/MotionEvent.html > > Just how old is the HTC Hero and friends which have a trackball? > Do the new tablets take a wired or blutooth keyboard? I find it > interesting that you would wire a blutooth keyboard to a cell phone. > > Regards, > > John Goche > > On Mon, Oct 3, 2011 at 1:03 AM, Studio LFP <[email protected]> wrote: > >> An ACTION_CANCEL is sent in the case where the user puts their finger down >> on a ListView item (or similar) and then starts to scroll. Since the >> ListView is using it as a scroll command and your finger may stay inside the >> view, it sends this to cancel the touch on your view. >> >> The ACTION_OUTSIDE would be where a view couldn't or won't scroll and the >> user drags their finger outside the view that received the ACTION_DOWN. >> Computers do the same with mouse events and it gives the user the ability to >> "cancel" a click by holding down and dragging outside of whatever they >> clicked on. >> >> Those two actions are why it is usually recommended to perform an action >> on a mouse/touch/key up instead of down. >> >> >> Steven >> Studio LFP >> http://www.studio-lfp.com >> >> >> On Sunday, October 2, 2011 5:28:24 PM UTC-5, John Goche wrote: >> >>> >>> Thank you Steven for your reply, >>> >>> Would you be able to provide some insight on the difference between >>> ACTION_CANCEL >>> and ACTION_UP. I am somewhat fuzzy on the concept. Anyways, I'm going to >>> give it a go. >>> >>> Thanks, >>> >>> John Goche >>> >>> On Sun, Oct 2, 2011 at 11:36 PM, Studio LFP <[email protected]> wrote: >>> >>>> You've got it right. >>>> >>>> Just make sure you are catching MotionEvent.ACTION_CANCEL and >>>> MotionEvent.ACTION_OUTSIDE. >>>> >>>> Return false in onTouch to allow it to pass to the Click and LongClick, >>>> but change your colors in the onTouch. >>>> >>>> Steven >>>> Studio LFP >>>> http://www.studio-lfp.com >>>> >>>> - >>>> You received this message because you are subscribed to the Google >>>> Groups "Android Developers" group. >>>> To post to this group, send email to [email protected] >>>> >>>> To unsubscribe from this group, send email to >>>> android-develop...@**googlegroups.com >>>> >>>> For more options, visit this group at >>>> http://groups.google.com/**group/android-developers?hl=en<http://groups.google.com/group/android-developers?hl=en> >>>> >>> >>> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en >> > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

