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.

Archived:Resources cannot be prefetched after deallocation in Java ME on S60 1st and 2nd Editions (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}}.

The article is believed to be still valid for the original topic scope.

Article Metadata
Created: User:Technical writer 1 (21 Apr 2005)
Last edited: hamishwillee (23 Oct 2013)



If you have released resources by using the deallocate() method, you cannot use the prefetch() method anymore to get the player to PREFETCHED state.


A Player has five states: UNREALIZED, REALIZED, PREFETCHED, STARTED, and CLOSED. If the player is in PREFETCHED state, you can release the reserved resources by calling the deallocate() method. After that you cannot prefetch the resources anymore. If you call the prefetch() method after calling the deallocate() method, you will get MediaException. Note that this concerns S60 devices. Calling prefetch() is working in Series 40 devices with the MMAPI implementation.


How to reproduce

If your player is in the PREFETCHED state, call deallocate() and after that call prefetch().


If your player is in the PREFETCHED state, don't call deallocate() and after the prefetch() method.

This page was last modified on 23 October 2013, at 04:03.
43 page views in the last 30 days.