loading background

Hi,

im getting an error in loading a background. the error occurs on reserving device. it seem that the resources is own by a previous application. how can i determine if the previous device has been release?

below are my code

HBackgroundDevice backDevice = HScreen.getDefaultHScreen().getDefaultHBackgroundDevice();

HBackgroundConfigTemplate backgroundConfigurationTemplate = new HBackgroundConfigTemplate();

backgroundConfigurationTemplate.setPreference(HBackgroundConfigTemplate.FLICKER_FILTERING, HBackgroundConfigTemplate.REQUIRED);

HBackgroundConfiguration backConfig = backDevice.getBestConfiguration(backgroundConfigurationTemplate);

if(backDevice.reserveDevice(this)) {

try {

backDevice.setBackgroundConfiguration(backConfig);

} catch(Exception ex) {

Configuration");

backDevice.releaseDevice();

return null;

}

if (backConfig instanceof HStillImageBackgroundConfiguration) {

return (HStillImageBackgroundConfiguration) backConfig;

}

[1050 byte] By [mgawsona] at [2007-10-3 11:44:39]
# 1
follow-up: backDevice.reserve(this) returns false, what can i do first so that it will return true?
mgawsona at 2007-7-15 14:16:49 > top of Java-index,Java Mobility Forums,Consumer and Commerce...