Solved

windows mobile - creating persistent message notifcations....

Posted on 2011-03-25
2
334 Views
Last Modified: 2013-12-27
took this from an excerpt from ;
http://msdn.microsoft.com/en-us/library/bb932385.aspx

not sure how to perform the following...



Creating Persistent Message Notifications
A persistent message interceptor usually starts as a transient message interceptor. You create the MessageInterceptor instance specifying the InterceptionAction and MessageCondition; in most cases, you will also associate an event handler with the MessageReceived event. To make the message interceptor persistent, you call the MessageInterceptor.EnableApplicationLauncher method.

You can call the EnableApplicationLauncher method any time after you set the MessageCondition property. Unlike the MessageCondition property, you can safely call the EnableApplicationLauncher method after you attach an event handler to the MessageReceived event; this is safe because the EnableApplicationLauncher method does not change the state of the MessageInterceptor instance. Exactly when you call the EnableApplicationLauncher method is up to you. You can call the EnableApplicationLauncher method immediately after you create and configure the MessageInterceptor instance, at the end of your program just before you call the MessageInterceptor instance's Dispose method, and anywhere in between.

The EnableApplicationLauncher method accepts a string parameter that uniquely identifies the MessageInterceptor. The string can be any value that you like as long as it will not collide with any other persistent message interceptor identifiers. Common examples of persistent message interceptor identifiers include globally unique identifiers (GUIDs), URLs, strings comprised of a combination of your organization and application name, and so on. Other versions of the EnableApplicationLauncher method let you specify a program other than the calling program as the program that the messaging subsystem should notify; you can also specify command-line arguments that the messaging subsystem will include when launching the application.

0
Comment
Question by:GlobaLevel
2 Comments
 
LVL 16

Accepted Solution

by:
hjgode earned 500 total points
ID: 35218828
I dont understand where you see an issue. It depends on your needs and the sample code (Example 3) is very clear and straight.

Using a persistent message handler will ensure that an application will get the message regardless of it is running at the time the message is received or not,
Now it depends on what you want to do with the message. Launch another application or store the message for later use or ...?

What is your intention?
0
 
LVL 10

Author Comment

by:GlobaLevel
ID: 35219086
hjgode...this relates to this issue:
http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_2.0/Q_26912031.html

it would be great if you can add your thoughts there..Im going to close this link to prevent duplication...the issue has to do with SMS interceptor ..and send SMS in the same program..but the SMS interceptor cant lose focus or it will stop monitoring...
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Once again I push the limits of my phone.  An introduction to the Android Google Now Launcher.
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question