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.

Revision as of 06:00, 31 July 2013 by hamishwillee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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
CompatibilityArticle
Created: User:Kbwiki (13 Apr 2011)
Last edited: hamishwillee (31 Jul 2013)

Description

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.

Solution

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:

Class.forName("javax.microedition.media.Manager");

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.
58 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.

×