Symbian: three methods for getting signal strength

Source: Internet
Author: User

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.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.