I have recently obtained the signal strength of the mobile phone. Here is a summary.
There are three methods to obtain the signal strength of a mobile phone. Different methods can obtain different values.
Method 1. Use rsystemagent to obtain
Const tuid kuidnetworkstrength = {0x100052c8 };
Rsystemagent;
Agent. Connect ();
Tint networkstrength = agent. getstate (kuidnetworkstrength );
Agent. Close ();
The value range obtained by this method is 0 ~ 4. Meaning:
0 = esanetworkstrengthnone
1 = esanetworkstrengthlow
2 = esanetworkstrengthmedium
3 = esanetworkstrengthhigh
4 = esanetworkstrengthunknown
Method 2: Use rsystemagent, but the UID is 0x100052d4.
The result range of this uid is 0 ~ 7. This corresponds to the signal strength bar in the upper left corner of the mobile phone screen.
Method 3: Use ctelephony
The modification method is troublesome, but the obtained value range is very large. I did not test successfully in Part 2 6680, but succeeded in part N72. Some netizens said that the test was successful in part 6630, see http://www.symbian.com/developer/techlib/v9.1docs/doc_source/guide/telephony-subsystem-guide/n1013a/info_network.html#guide%2esimpletelephony%2eSignalStrength for specific methods
Now add the 4th method:
Use cmobilecontext to obtain signal strength
The signal strength obtained using this method ranges from 0 ~ 5. This method is quite troublesome, and the data obtained is not good, but the advantage of this method is that you can use a similar method to obtain the phone number. This is a package mobinfo released by Nokia.
Http://developer.symbian.com/main/tools/utilities/cpp/index.jsp#mobinfo
In
Mobinfo 3rd party telephony Library
Pass N70 Test
But 6680 does not seem to support it.