10-28-2009 10:35 AM
Hi, I want to show a screen after a phone call ends.
I have implemented the PhoneLogListener, and in the method callLogAdded(CallLog cl), I put the following code in.
//
public void callLogAdded(CallLog cl){
...
Runnable task = new Runnable() {
public void run() {
UiApplication.getUiApplication().invokeLater(new Runnable() {
public void run() {
UiApplication.getUiApplication().pushScreen(new MyScreen());
}
});
}
};
new Thread(task).run();
}
the screen shows after the phone ends, but it disappears soon after.
how can the screen be there until a user click some button on it ?
Thanks,
Jerry
10-28-2009 10:40 AM
10-28-2009 10:45 AM - edited 10-28-2009 10:46 AM
Hi wi7up.
I agree with simon.
Edit: was in edit mode.
10-29-2009 08:24 AM
thanks for the replay.
Can you show me an simple example ?
10-29-2009 10:19 AM
I just noticed, it is very odd.
When I get an incoming call, the window shows and disappears soon, maybe because of the reason mentioned about, I assume.
But when I make a phone call, the window shows too, and it can stay there as long as no one closes it.
Any one knows why ?
10-29-2009 10:41 AM