Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Rory Does Windows Mobile Development - WM 5.0 Notification API

Download

Right click “Save as…”

In this screencast, I demo one of the new Windows Mobile 5.0 features.

SNAPI, which is an awesome name for an API, is the State Notification API. It allows you to keep track of various aspects of your device. From the number of available network connections to the presence of a keyboard, SNAPI can tell you what's up.

Additionally, SNAPI can be used to monitor these system attributes and notify you upon a change. So, for example, if someone in the field who was previously out of range suddenly came within range of a network of some sort, SNAPI can let you know.

It's neat.

As always, you can read about my day job here, or visit my blog here.

Screencasts In This Series:

An Introduction To Windows Mobile Development

- Building a Simple Web Browser With the .NET CF 2.0

- A Simple Data Driven Windows Mobile App Using SQL Server Mobile

- Data Synching: Part One

- Data Synching: Part Two

- Windows Mobile 5.0: State Notification API

- Windows Mobile 5.0: Pocket Outlook Object Model

- Windows Mobile 5.0: Camera API

Tag:

Follow the Discussion

  • Rory,

    Another great webcast, thanks!

    Is there a way to install a service onto a Windows Mobile 5.0 device? It seems that the SNAPI would really shine as a service to notify, or run, other applications when certain events occur. I am working on an app that, on sync, needs to get a file from the local computer, that gets manipulated, then sent back once work is complete. If I could run a service that responded to the ActiveSync, or Cradled, states, I could start the app to transfer files, or do it directly from the service.

    Any thoughts?

    Thanks in advance.

    btw, when are you coming back to Somerville? We are working on the streets to make them more sensible for out of towners. [6]

  • Hi,

    I am trying to use the MessagingMmsUnread Windows Mobile API (under SNAPI) in the following line:

    MMScount.Text = SystemState.GetValue(SystemProperty.MessagingMmsUnread).ToString();

    The application is generating an error on a WM 5.0 device with NETCF 2.0 installed.

    Doing some research on MSDN and other places online, I found very few uses of or references to this particular MMS API.

    Does it actually work? How can I make it work?

    I'd appreciate any pointers in the right direction.

    Thanks.

  • What is the error you are seeing with the MessagingMmsUnread property?

    btw, another way to get the value is to use: SystemState.MessagingMmsUnread

    all of the properties can be accessed through static properties on the SystemState object.  The main difference between using the static property and GetValue is that the static properties are usually strongly typed (where GetValue returns 'object'). 

    great screen cast!
  • Hi btshil,
    Have you got the unread number of MMS successfully?
    I came into the same problem recently, I cann't get MMS's unread numbers, I donn't know why? Please help me!

    Thank you in advance!
    beyond
  • Hello...

    I'm not able to see the videos.
    How can I view them please?

Remove this comment

Remove this thread

close

Comments Closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.