BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 08-10-2009, 03:34 AM   #1 (permalink)
New Member
 
Join Date: Aug 2009
Model: 8330
PIN: N/A
Carrier: no one
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy [SOLVED]IllegalStateException issue when closing a PopupScreen

Please Login to Remove!

Hi all,

I've got a PopupScreen that uses a LocationProvider to get a GPS position and that displays acquire state.
But there is an IllegalStateException when trying to close it in the
Code:
public void locationUpdated(LocationProvider provider, Location location)
event invoked by my LocationProvider. I already tried with the
Code:
synchronized(UIApplication.getEventLock()) {
this.close();
}
and

Code:
synchronized(this) {
this.close();
}
in both popup screen and a method inside another component but it changes nothing at all . If anyone already saw this issue or have an idea about how to resolve this, it would be very helpfull for me.

Thanks in advance

Last edited by return0 : 08-10-2009 at 04:20 AM.
Offline  
Old 08-10-2009, 04:19 AM   #2 (permalink)
New Member
 
Join Date: Aug 2009
Model: 8330
PIN: N/A
Carrier: no one
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Talking

Issue solved by stopping the location provider before the closing method and by still using the synchronized property.
Code:
this.oLocationProvider.setLocationListener(null, 0, 0, 0);
synchronized(UiApplication.getEventLock()) {
this.close();
}
Sorry for the disturb, week end was very hard for me
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Extron RGB 202xi ADSP Universal Analog, ECL and TTL Computer-Video Interface
$35.99
Extron RGB 202xi ADSP Universal Analog, ECL and TTL Computer-Video Interface pictureCOMDYNA GP-6 ANALOG PATCH CORD COMPUTER GP6 *TESTED & WORKING*
$999.0
COMDYNA GP-6 ANALOG PATCH CORD COMPUTER GP6 *TESTED & WORKING* pictureMeasurement Computing USB-1208FS Analog Channel
$99.99
Measurement Computing USB-1208FS Analog Channel pictureExtron RGB192 (VGA) 60-486-01 Analog Computer-Video Interface **NEW In Box**
$125.0
Extron RGB192 (VGA) 60-486-01 Analog Computer-Video Interface **NEW In Box** pictureCIO-DAS08 Analog Input Board Computer Boards
$35.0
CIO-DAS08 Analog Input Board Computer Boards picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.