Getting the Current Cell Id using Symbian S60
来源:互联网 发布:大数据对电商的影响 编辑:程序博客网 时间:2024/05/16 06:31
Getting the Current Cell Id using Symbian S60
What you need:
Series 60 SDK
Communicator 9200 SDK version 0.9 or higher
etel.h from Communicator 9200 SDK
etelbgsm.h from Communicator 9200 SDK
Instructions:
Copy etel.h and etelbgsm.h to the /Symbian/6.1/Series60/Epoc32/Include directory.
Link your app to gsmbas.lib and etel.lib.
Use this code:
RBasicGsmPhone phone;
RTelServer server;
User::LeaveIfError( server.Connect() );
// load a phone profile
_LIT(KGsmModuleName, "phonetsy.tsy");
User::LeaveIfError( server.LoadPhoneModule( KGsmModuleName ) );
// initialize the phone object
RTelServer::TPhoneInfo info;
User::LeaveIfError( server.GetPhoneInfo( 0, info ) );
User::LeaveIfError( phone.Open( server, info.iName ) );
MBasicGsmPhoneNetwork::TCurrentNetworkInfo netinfo;
User::LeaveIfError( phone.GetCurrentNetworkInfo( netinfo ) );
Now you should be able to access the fields of
MBasicGsmPhoneNetwork::TCurrentNetworkInfo
which are
.iCellId
.iLocationAreaCode
.iNetworkInfo.iShortName
Once you have grabbed the info use this code to clean up:
phone.Close();
server.UnloadPhoneModule( KGsmModuleName );
server.Close();
All the code should work for the 6600 as well. You have the option of
just compiling with the 1.2 SDK or copying the headers to the 2.0 SDK .
Explore the other functions and data available through these objects as well. The headers should provide you with enough information to figure out what they are. Not all of them are completely implemented. According to a Forum Nokia post you can get to the information by:
- ManufacturerId, Serial No: GetPhoneInfo()
- BER, battery status: GetX - async version
- Signal Strength: SignalStrengthNotification()
Use the NotifyChangeOfCurrentNetwork, so that works as well
<SCRIPT type=text/javascript><!--google_ad_client = "pub-5802524690470106";//728x15, 创建于 07-11-13google_ad_slot = "7233856721";google_ad_width = 728;google_ad_height = 15;//--></SCRIPT><SCRIPT src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript></SCRIPT>- Getting the Current Cell Id using Symbian S60
- Getting the Current Cell Id using Symbian S60
- Getting the ID of the element that fired an event using jQuery
- Getting the Current Date and Time
- Current-voltage ( I-V) curves of the photovoltaic cell
- symbian s60 vc设置
- Symbian/S60 新手指南!
- symbian s60应用程序框架
- Symbian S60 Camera
- Symbian S60开发经验
- symbian s60 widget
- symbian s60 字符串操作
- Symbian S60 blog
- Symbian S60文件格式关联
- Building and Debugging PJSIP on Symbian S60 3rd Edition Device using Carbide C++ 1.2
- Using the CCheckListBox and getting check state notification
- Current version is 2.2.1. If using the gradle wrapper
- Cell-ID
- C++Programming Guidelines
- Delphi2009(Tiburon)官方博客透露的技术亮点
- C++ Inheritance
- Some new and enhanced components coming in Tiburon
- An Insight into UIQ 3 Concepts
- Getting the Current Cell Id using Symbian S60
- java阳历转换成阴历
- 软件不能卸载也不能安装的解决办法
- asp.net中 传递网页参数
- Why doesn't Symbian OS support writeable static data?
- 日期工具类
- 身份证号码的升位和验证
- How to draw an Icon on the IndicatorPane of Series 60
- js对身份证来进行校验