Results 1 to 5 of 5

Thread: [RESOLVED] What's wrong with SystemState(SystemProperty.PhoneMissedCalls)

  1. #1

    Thread Starter
    Addicted Member Ashraf Alshahawy's Avatar
    Join Date
    May 2007
    Location
    Egypt
    Posts
    241

    Resolved [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.
    Some times when you make a step forward ...You can't get back. Be sure where you make your steps.

  2. #2
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: What's wrong with SystemState(SystemProperty.PhoneMissedCalls)

    What do you mean by "until I dismiss the missed calls using the Windows Mobile itself."
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

  3. #3

    Thread Starter
    Addicted Member Ashraf Alshahawy's Avatar
    Join Date
    May 2007
    Location
    Egypt
    Posts
    241

    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.
    Some times when you make a step forward ...You can't get back. Be sure where you make your steps.

  4. #4
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    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
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

  5. #5

    Thread Starter
    Addicted Member Ashraf Alshahawy's Avatar
    Join Date
    May 2007
    Location
    Egypt
    Posts
    241

    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 ) .
    Some times when you make a step forward ...You can't get back. Be sure where you make your steps.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width