You Are Here:

Community: Wiki

 

Talk:How to use TapDetectionHelper in Java ME

From Forum Nokia Wiki

Review:

This article covers an interesting topic that is particularly relevant, given the recent rapid rise in the number of touch-screen devices Nokia is bringing to market. The article shows how tap detection options can be used to alter the way a midlet which makes use of a Canvas interprets tap events on touch-screen devices. Often when the user taps on the screen, there is a small difference between where they put the stylus (or their finger) on the screen and the co-ordinates where they lift it up. This may be entirely unintentional, but may be interpreted by the midlet as a drag event instead of a tap event. Also, it may lead to selection errors. Furthermore, unnecessarily many drag events can also be generated. This article shows how through the use of a simple property in the JAD file, we can address these problems. Basically, by setting the Nokia-MIDlet-Tap-Detection-Options in the JAD file, drag events which occur over a short time within a small area are suppressed and the pointer down and pointer up co-ordinates are set to be the same.

I wasn't aware of this feature (and the associated JAD property) until reading this article, so it made for very interesting reading. This is certainly likely to be of interest to those developing for touch-screen Nokia devices, as selection errors are pretty common on touch-screen devices for the reasons identified in this article. The concepts are nicely illustrated using graphical examples, and examples of setting the JAD option are also usefully provided (along with a discussion of how the different settings will affect midlet behavior).

--Larry101 17:45, 29 September 2009 (UTC)

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fwikiE2eforumE2enokiaE2ecomE2findeE78E2ephpE2fHttpE3aE2fE2f217E2e218E2e225E2e2E3a2082E2findeE78E2ehtmlE253FX qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqfntypeZWikiContentQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZtypeQUqfntypeZWikiContentQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqfntypeZWikiContentQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ