×
Namespaces

Variants
Actions

Archived:Resources cannot be prefetched after deallocation in Java ME on S60 1st and 2nd Editions (Known Issue)

From Nokia Developer 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
CompatibilityArticle
Created: User:Technical writer 1 (21 Apr 2005)
Last edited: hamishwillee (23 Oct 2013)

Contents

Overview

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

Description

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.


KIJ000207.gif

How to reproduce

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

Solution

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 07:03.
37 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.

×