Figure: Selecting a UI element in Symbian^3
On Symbian devices with a touch screen, touch interaction is supported by all LCDUI and eSWT elements.
Some Symbian devices have both a touch and a non-touch screen. In these cases, the Java Runtime checks whether the active screen supports touch. If the non-touch screen is active, the MIDlet must provide the user key-based means of interaction. In other words, to ensure a good user experience on devices with both a touch and a non-touch screen, do not create MIDlets that rely solely on touch interaction.
To avoid the passive feeling of touch screens, use tactile feedback.
High-level LCDUI elements use the native touch implementation provided by the device, so you do not need to separately program touch interaction for them. The device platform defines how these elements look and behave.
Low-level LCDUI elements do not automatically implement touch functionality. Instead, you need to separately listen for and handle touch events for these elements. Touch events are registered automatically, but you need to handle them with the corresponding pointer event methods.
Multipoint
touch events are supported from Symbian^3 with Java Runtime
2.2 for Symbian onwards on Canvas
and GameCanvas
.
The eSWT API handles touch events in a similar
manner as its desktop counterpart, the SWT toolkit, handles mouse
events. eSWT elements use the native touch implementation provided
by the device, so you do not need to separately program touch interaction
for them. The device platform defines how these elements look and
behave. However, for Controls
, you can implement custom touch
functionality on top of the default functionality by receiving and
handling mouse events.
S60 5th Edition devices support two touch interaction strategies for selecting UI elements:
Focus and select
The user taps an unfocused element once to move the focus to it, and then taps the same element a second time to select it. While focused, the element is highlighted.
Single tap
The user selects an element with a single tap. No separate tap is required to first focus the element. Depending on its function, the element is either briefly highlighted when tapped or given a permanent highlight.
From Symbian^3 onwards, Symbian devices use only single
tap interaction. Elements on the screen do not have a permanent
highlight. Instead, an element is briefly highlighted when tapped.
The only exceptions are LCDUI elements that can be edited, such as Forms
. While selected, these elements have a permanent highlight,
indicating that the element is active and its contents can be edited.
On Symbian^3 devices with both a touch screen and a physical keypad, a permanent highlight is shown when the user interacts with UI elements using the physical keys. The behavior is the same as with non-touch devices. If the user switches to touch interaction, the highlight disappears.
For more information about touch interaction in Java Runtime for Symbian, see:
eSWT elements in touch interaction for information about how eSWT elements behave on touch devices
Multipoint
touch for information on multipoint touch on Canvas
and GameCanvas
.
On-screen
keypad (OSK) for information about the on-screen navigation
keys for Canvas
-based MIDlets (for backward compatibility)
For more information about the native Symbian touch UI, see:
Touch UI in the S60 5th Edition C++ Developer's Library for information about the S60 5th Edition touch UI
Touch UI in the Nokia Symbian^3 Developer's Library for information about the Symbian^3 touch UI
Designing for touch in the Design and User Experience Library for information about designing touch-enabled applications