Solved

windows mobile - creating persistent message notifcations....

Posted on 2011-03-25
2
319 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

I recently asked a question (http://www.experts-exchange.com/Programming/Smartphones/Android/Q_28684946.html) about Computer Inventory applications for Mobile Devices.  I was specifically interested in an app I could use on my android phone.  The be…
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.
This video discusses moving either the default database or any database to a new volume.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

708 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now