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. Thanks for all your past and future contributions.

ESWT MIDlet may crash during MMAPI Player play on Symbian (Known Issue)

From Wiki
Jump to: navigation, search
Article Metadata
Tested with
Devices(s): S60 5th Edition, Symbian^3
Created: User:Kbwiki (13 Apr 2011)
Last edited: hamishwillee (31 Jul 2013)


eSWT MIDlet may crash during MMAPI Player play on Symbian devices which use Java Runtime 1.3, 1.4, or 2.0 Beta for Symbian when playing is started outside of the UI thread for the eSWT API.


This issue has been fixed in Java Runtime 2.1 for Symbian.

For the affected Java Runtimes, MMAPI Players should be created in the UI thread.

First, the Manager should be initialised as follows:


Then the player creation should be done in the UI thread:

 Display.getDefault().syncExec(new Runnable() {
public void run() {
try {
player = Manager.createPlayer("protocol://url/media.file");
} catch (Exception e) {
// handle exceptions if any
This page was last modified on 31 July 2013, at 06:00.
25 page views in the last 30 days.