GPRS Signal Strength

  • Thread starter Thread starter iKiLL
  • Start date Start date
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
 
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
 
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.
 
Connection Manager is a native API, so you would either need to write some
code to P/Invoke it or use a wrapper.

Peter
 
Back
Top