Hi I am looking for the API's for the following functions .....
1. Reading the Battery Meter
2. Reading the network Strength
3. GPRS status ( on or not)
4. Missed Calls
5. Message Indicator
6. Blutooth Status ( on or not)
Can anyone provide me the the API and also if someone has some example code for the same , it will be really helpful to me .
Hi I have got somthing which hopefully useful for you. It uses RSystemAgent to get the state of network indicators. you need to pass Network Indicator bars UID to RSystemAgent::GetStates() methods I wonder if some can help me I need UID for battery indicator panel.
What do u mean by UID for battery indicator panel ?
If u r talking about the UIDs for the State Variables which are available thru RSystemAgent Class then it is simple .
Just go to SACLS.h and u will find all the constants defined here.
My method is based on UI indicator (bars) of battery and network status and percentile status is multiple of 7. If there is one bar on battey status indicator panel, percentage bettery strength will 14% if indicator/panel has 2 bars the percentage strength will be 28% 7 bars indicates 100% battery strength. I belive these UID are missing from SACLS.h header. I was just experimenting with the code I posed you earlier and realize that 0x100052D3 is UID value for battery strength panel. Just replace this value in above code and you will get the percentage result in multiple of 7
UID defined for battery strength in SACLS.H doesnt work. any idea why ?
Use my method it definitly works. testing is little bit difficult you have find a place where network has low signals again its based on UI network panel so It will give you network signal strength in percentage of multiple of 7
Thnx friend. I will try your method.
But have u tested it on any UIQ device also or only on Series 60 .
Also when i write ur statement agent.GetState(tUID) , it does not recognise it .
Also there is one more thing, isnt there a way where in whenever network signal changes , my app shud be notified rather than i checking every time.
If u wish to share more info and knowledge on Symbian , go to my profile and add me in your IM.
Sorry ....forgot to mention that my method only works with S60 phones for UIQ you have to use "MobInfo" API.
for make an observer you need to create listenere application in most case an exe. which get booted at boot time and listen for network status. use CTimer or CHeartbeat classes those already AOs and used for time base services.
Symbian Recogniser (.MDL) provides you hook point to execute your application at boot time.
Hi Friend
I m getting a value -271 on this operation .
------------------------------------------------------------------------------
This is what i m doing (On a UIQ Phone)
void CBatteryReader::GetBatteryState()
{
/* I was just experimenting with the code I posed you
earlier and realize that 0x100052D3 is UID value
for battery strength panel. Just replace this value
in above code and you will get the percentage result in multiple of 7*/