Symbian OS
read last symbian news on www.newlc.com read last symbian reviews on www.newlc.com
read last symbian tutorial on www.newlc.com read last symbian download on www.newlc.com
28 Dec 2007 - 17:52
Keywords :

At first , you must create a instance of RMobilePhone. The process and related functions to create the instance can refer to the following link: http://www.newlc.com/how-retrieve-phone-imei-code-uiq3-0

The following code block demonstrates how to get the status of GPRS.

RMobilePhone iMmPhone;
RPacketService iGprs; 
iGprs.Open(iMmPhone);
RPacketService::TStatus lGprsStatus;
err = iGprs.GetStatus(lGprsStatus);

TStatus is defined in etelpckt.h.

EStatusUnattached,    //  your phone is not attached to GPRS. i.e. you do not apply for the GPRS feature
EStatusAttached,    //  your phone is attached to GPRS, but there is not data to be sent
EStatusActive,        // there is data to be sent. i.e. your phone is accessing the network
EStatusSuspended  // attached to network & suspended packet data connection<

And you can call the function NotifyStatusChange() to be notified as the status of GPRS is changed.

Regarding the signal strength of GPRS, it's wrong concept. Because the "signal strength" is not variable. Either you have it or you don't. This "bar" on phone is full when the phone has GPRS attached and empty other vise.

Tutorial posted December 28th, 2007 by mickeyfirst

Submitted by daveice on Sat, 2008-01-05 02:54.

Hi, I think this method doesn't work on UIQ3.0 and above, because RMobilePhone is not available anymore.

CTelephony is another choice, and it works


Submitted by mickeyfirst on Sun, 2008-01-06 02:33.

Thank you for your replay.
But I work for W960i, which has been launched on 2007. This method has been verified on W960i.

Any question let me know. Smiling



copyright 2003-2009 NewLC SARL