GPRS Signal Strength

I

iKiLL

Hi all

I am working with CF2 and C#.

I was hoping that someone could point me in the right direction for how I
can determine if there is a GPRS Signal.

I am using Merge Replication to SQL Mobile and I am not sure how I should
handle it if there is no signal.

Any suggestions.

Thanks,
ink
 
P

Peter Foot [MVP]

If your device is Windows Mobile 5.0 you can use the
Microsoft.WindowsMobile.Status namespace functionality.
SystemState.PhoneSignalStrength returns the signal strength as a percentage.
Also SystemState.PhoneGprsCoverage returns whether or not GPRS is currently
available, which is probably more relevant in your scenario.
Another approach is to use ConnectionManager to establish the connection and
check for successful connection. If not don't run your replication code and
you could optionally display an alert to the user that they don't have a
connection.

Peter
 
I

iKiLL

Thanks Peter

That is exactly what i was hoping for. "Microsoft.WindowsMobile.Status"

The ConnectionManager Approch.
How would i do that. Is that coding or is that something you setup on the
PDA.
 
P

Peter Foot [MVP]

Connection Manager is a native API, so you would either need to write some
code to P/Invoke it or use a wrapper.

Peter
 

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