Solved

windows mobile - creating persistent message notifcations....

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
As the title indicates, I have done this before. It chills me everytime I update the OS on my phone, (http://www.experts-exchange.com/articles/18084/Upgrading-to-Android-5-0-Lollipop.html) because one time I did this and I essentially had a bricked …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used.

789 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