Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Archived:Long tap issues with eSWT MIDlet in S60 5th Edition (Known Issue)

From Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

ESWT not relevant to Series 40 and current core platforms.

Article Metadata
Tested with
Devices(s): Nokia 5800 XpressMusic, Nokia N97, S60 5th Edition SDK emulator, Nokia N97 SDK emulator
CompatibilityArticle
Keywords: mouseDown(MouseEvent arg0), Control.dispose();
Created: User:Kbwiki (28 Dec 2009)
Last edited: hamishwillee (31 Jul 2013)

Description

On certain S60 5th Edition devices, a long tap in an eSWT MIDlet can result in a number of issues. These issues are:

  • A wait animation gets displayed when tapping any eSWT control. The animation should only be played when there is a pop-up menu attached to an eSWT control.
  • A panic exit (crash) is caused by the MIDlet when a long tap is interpreted as a mouse down event which is set to dispose of an eSWT control. Instead of a panic exit, disposing of the visible control should be done discretely with a wait animation shown.

How to reproduce

To test the wait animation issue:

1. Download and install the eSWT Showcase MIDlet from the Java Developer's Library in Nokia Developer: http://library.developer.nokia.com/index.jsp?topic=/Java_Developers_Library/GUID-CB90DACD-1754-48FA-A18A-6AF630E65CFF.html

2. After launching the MIDlet, perform testing with the eSWT Showcase main menu by long tapping any of the menu items.

NOTE: The correct performance can be tested by using the 'Lists', 'Table', and 'Static Components & Layout' tests which can be found in the main menu. In these tests, the pop-up menu will be displayed correctly after the wait animation.

To test the panic exit issue:

1. For an eSWT test MIDlet, implement an eSWT control and add a mouse listener to it. For example, implement a List with a mouse listener added:

 // cParent= a composite parent control for List, 768= List style
final List cntrl = new List(cParent, 768);
 
...
 
public void widgetSelected(SelectionEvent ev)
{
// Add a mouse listener to the control
cntrl.addMouseListener(new MouseListener() {
 
public void mouseDoubleClick(MouseEvent mouseevent)
{
}
 
public void mouseDown(MouseEvent arg0)
{
}
 
public void mouseUp(MouseEvent mouseevent)
{
}
}

2. Include a control dispose for mouse down events:

 public void mouseDown(MouseEvent arg0)
{
cntrl.dispose();
}

Solution

No solution exists for S60 5th Edition and Nokia N97 SDK emulators.

Both issues have been fixed for the latest software versions of the affected devices:

- Nokia 5800 XpressMusic, from v 31.0.008.

- Nokia N97, from v 21.0.019.

This page was last modified on 31 July 2013, at 06:03.
30 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×