From: iKiLL on
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



From: Peter Foot [MVP] on
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

--
Peter Foot
Device Application Development MVP
www.peterfoot.net | www.inthehand.com

"iKiLL" <iKill(a)NotMyEmail.com> wrote in message
news:%230enYjtaHHA.1508(a)TK2MSFTNGP06.phx.gbl...
> 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
>
>
>

From: iKiLL on
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.




"Peter Foot [MVP]" <feedback(a)nospam-inthehand.com> wrote in message
news:B0394D59-A086-4FCE-AC05-1BE8373FFF7B(a)microsoft.com...
> 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
>
> --
> Peter Foot
> Device Application Development MVP
> www.peterfoot.net | www.inthehand.com
>
> "iKiLL" <iKill(a)NotMyEmail.com> wrote in message
> news:%230enYjtaHHA.1508(a)TK2MSFTNGP06.phx.gbl...
>> 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
>>
>>
>>
>


From: Peter Foot [MVP] on
Connection Manager is a native API, so you would either need to write some
code to P/Invoke it or use a wrapper.

Peter

--
Peter Foot
Device Application Development MVP
www.peterfoot.net | www.inthehand.com

"iKiLL" <iKill(a)NotMyEmail.com> wrote in message
news:eYYl72vaHHA.4788(a)TK2MSFTNGP04.phx.gbl...
> 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.
>
>
>
>
> "Peter Foot [MVP]" <feedback(a)nospam-inthehand.com> wrote in message
> news:B0394D59-A086-4FCE-AC05-1BE8373FFF7B(a)microsoft.com...
>> 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
>>
>> --
>> Peter Foot
>> Device Application Development MVP
>> www.peterfoot.net | www.inthehand.com
>>
>> "iKiLL" <iKill(a)NotMyEmail.com> wrote in message
>> news:%230enYjtaHHA.1508(a)TK2MSFTNGP06.phx.gbl...
>>> 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
>>>
>>>
>>>
>>
>
>

From: Simon Hart on
OpenNETCF.org has a ConnectionManager wrapper.

Simon.

"iKiLL" wrote:

> 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.
>
>
>
>
> "Peter Foot [MVP]" <feedback(a)nospam-inthehand.com> wrote in message
> news:B0394D59-A086-4FCE-AC05-1BE8373FFF7B(a)microsoft.com...
> > 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
> >
> > --
> > Peter Foot
> > Device Application Development MVP
> > www.peterfoot.net | www.inthehand.com
> >
> > "iKiLL" <iKill(a)NotMyEmail.com> wrote in message
> > news:%230enYjtaHHA.1508(a)TK2MSFTNGP06.phx.gbl...
> >> 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
> >>
> >>
> >>
> >
>
>
>