Resuming, suspending terminal, how catch an event.

A

Adam

Hello,

i'have a problem. In my application on Symbol MC9090 (Windows Mobile 5.0) i
use Symbol SDK to control WIFI signal quality. Just one event handler,
something like
myWlan.Adapters[0].SignalQualityChanged += mySignalQualityHandler;
but there is small problem. Fusion adapter is not available for couple of
seconds after resuming terminal and within this period I cannot use the
API.

So. I think the simpliest way is remove the event handler when use switched
off (or remove the battery) the terminal and add event handler when user
switched on (or insert battery) the terminal.
But I'dont know how catch the moment of disablig and enabling the terminal.

Does anybody know how to solve this problem?


PS. Maybe my idea is stupid :) So how use Symbol Fusion Api only when
terminal is on...
 
F

Fabien

Hi,

Yes, you can use OpenNETCF to catch the wake up event.
You can also try to use SNAPI and add an event handler on
SystemProperty.ConnectionsNetworkCount changed value:
private SystemState m_connectionsCount = new
SystemState(SystemProperty.ConnectionsNetworkCount);

Then add an handler to the changed event :
m_connectionsCount.Changed += new
ChangeEventHandler(m_connectionsCount_Changed);

void m_connectionsCount_Changed(object sender, ChangeEventArgs args)
{
if (m_connectionsCount.CurrentValue > 0)
{
// If you have only a WIFI network connection, the value
must be 1 when WIFI is activated
}
}

BR

Fabien Decret (Device Application Development MVP)
Windows Embedded Consultant

ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/ | http://fabdecret.blogspot.com/
 
A

Adam

Fabien pisze:
Hi,

Yes, you can use OpenNETCF to catch the wake up event. [cut]
}

Thanks for your reply but problem was with Symbol Mobile Developer kit
patch. I again reinstall SMDK, apply patch and everything is ok.



Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top