[RESOLVED] What's wrong with SystemState(SystemProperty.PhoneMissedCalls)
Hi all ....
I'm trying to to figure out how to add the missed call nubmers into my listview in windows
mobile .
Code :
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
MonitorNotifications()
End Sub
Private Sub MonitorNotifications()
_callInterceptor = New SystemState(SystemProperty.PhoneMissedCall)
AddHandler _callInterceptor.Changed, AddressOf CallInterceptor_MissedCalls
End Sub
Private Sub CallInterceptor_MissedCalls(ByVal sender As Object, ByVal args As ChangeEventArgs)
Dim objMissed As Object = args.NewValue
Dim bMissed As Boolean = (CType(objMissed, Integer) = 0)
If (bMissed = False) Then
Return
End If
Dim item As ListViewItem = New ListViewItem((New String() {SystemState.PhoneLastIncomingCallerName, SystemState.PhoneLastIncomingCallerNumber, DateTime.Now.ToShortTimeString}))
LvMsdLog.Items.Add(item)
End Sub
The first time I make a call from the Emulator everything goes well.
The next times I try , the program doesn't add the missed calls until I dismiss
the missed calls using the Windows Mobile itself.
Then I'm able again to add the Missed Call into the ListView .... Then I have
to Dismiss .... Then I'm able to add ....Then I have to dismiss.
What can I do ... Plz help.
Re: What's wrong with SystemState(SystemProperty.PhoneMissedCalls)
What do you mean by "until I dismiss the missed calls using the Windows Mobile itself."
Re: What's wrong with SystemState(SystemProperty.PhoneMissedCalls)
Thanks petevick for alawys being here...
When you receive an Incoming call , and you don't answer it , it turns into a Missed Call
Then you see an icon - Phone figure - telling you that you have unanswered call(s).
when you click this icon - or going to Calls Log - you have the option "Dismiss" , And
when you choose it ( Dismiss ), the Missed Call Icon disappear from the top of your
Mobile screen , And that affects the the Missed Call log.
Re: What's wrong with SystemState(SystemProperty.PhoneMissedCalls)
So it would appear you have to actually acknowledge the missed call before it goes into your missed calls?
If I have a 'missed call' icon, and click on 'Phone' then I don't have to dismiss the icon, it automatically disappears and appears in my phones' call log.
It MAY be the case that missed calls notifications don't fire until the icon is dismissed?
What problems do you get when trying to read the missed call log from the article I pointed you at?
Pete
Re: What's wrong with SystemState(SystemProperty.PhoneMissedCalls)
Many thanks petevick for your help .....
I figured out that changing ( PhoneMissedCall ) which returns (True or False) into ( PhoneMissedCalls ) whick returns ( The Number of missed calls ) .