01-16-2008, 05:06 AM
|
#3 (permalink)
|
| New Member
Join Date: Oct 2007 Location: Barcelona Model: many PIN: N/A Carrier: many
Posts: 10
Post Thanks: 0 Thanked 0 Times in 0 Posts
| I found a "solution"...
1. in the thread,
- I push in a "queue" (in fact a var) the parameter of the request.
- I call a repaint of the active canvas
2. in the paint of each canvas, I pop the request
3. I process the request with
public void DoPlatformRequest(String rqt){
final String r = rqt; // for.run() methode
UiApplication.getUiApplication().invokeLater(
new Runnable() {
public void run() {
try {
platformRequest(r);
//We assume that BB Device don't need to close the Midlet in order to process a phone call / web browser.
} catch (Exception ex) {
TraceEx("DoPlatformRequest (" + r + ") fail. ",ex);
}}
});
}
its looks like having net.rim.device.api.system.Application.isEventDispa tchThread()==true is not enough to call the platform request.
I hope this helps.
Loda |
| Offline
| |