PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Nokia 6600 & GD 3.0 problem

Hello everyone,
I’m developing an application for the “Series 60” phones (Nokia 6600), using GapiDraw 3.0.
The client application (installed on the phone) communicates with my servlet using HTTP connection.

Earlier, I developed this application for the SE P800/P900 phones using GD 3.0 and UIQ.

When I now try to establish HTTP connection (on Nokia 6600), GapiDraw goes to the background and system window gets focus offering available connections.
The problem is that I can’t do anything in that system window (list) because all the keys I press go directly to GapiDraw application.

I tried to write all the keys pressed to a file, and I saw that GapiDraw gets all of them.

How can I stop receiving pressed keys until I get “EEventFocusGained” event or something like that?
Or, can I send that keys back to symbian so the system window can receive them?

Thanks in advance
Hi sasa,

Have you switched to GapiDraw 3.0 or are you still using the 2.10 beta? Please try the latest version if you can.
Hi Johan,
Thanks for such a fast answer!
Yes, I a have switched to GapiDraw 3.0.
I know that there was a problem with 2.10 beta because system dialogs where overridden by the GapiDraw (I used 2.10 beta).
I don’t have that problem. System dialog is written in front of my application and I can use “UP” and “DOWN” keys but that is all I can do.

The only problem I have is that system dialog doesn’t receive pressed keys.
Hmm..

If you have a bit of time it would be easiest for you to try different combinations out yourself.

Open GapiApplication.cpp from \include\symbian

On line 333 you have the event handler for EEventFocusGained, on line 349 you have the event handler for EEventFocusLost. The code for EEventFocusLost is exactly the same as when the application is minimized, which is handled on line 412.

Somehow it appears that the input is not closed properly, or simply that EEventFocusLost is not received in your case. Since you have routines that write to file, could you add some code so see if this is the case?

Thanks!
Thanks for advice,

Ok, I assumed that the problem is in “m_pInput->CloseInput(…)” so I tried to check return value:
Code:
HRESULT hr = m_pInput->CloseInput(iEikonEnv->RootWin());
and result is "GD_OK".

But this is never done except when I press a ShutDown button (on the top of Nokia phone).
Also, Minimize() is never called and m_bAppShouldMinimize is never set to true.

Is there anything else I should set to be able to receive "EEventFocusLost" every time I get some system dialog?

Thanks!
Can you try to check if the event handler catches EEventFocusLost at all? For example, write something to disk on line 413 to see if the EEventFocusLost event is received. If it's not, then Symbian must send another event to the application when a system dialog is shown...