Message Interception

Hi, i downloaded WM6 SDK Refresh, and created an application that uses message interception. I tried it on my WM5 device and it was ok, but when i used in on a WM6 device, the incoming message went directly to the inbox and was not intercepted by my application.
Any help on this please?
[292 byte] By [oldSAP] at [2008-1-5]
# 1

Hi,

Well, if possible, some code snippet will be helpful here. But I don't think it will run on Windows Mobile 5, while not on Windows Mobile 6. Could you please try to run it on emulator (both Windows Mobile 5 and 6)?

Regards,

Zero Dai - MSFT

ZeroDai-MSFT at 2007-10-3 > top of Msdn Tech,Smart Device Development,Smart Devices General...
# 2
code snippet:

Private WithEvents msgInterceptor As MessageInterceptor

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
msgInterceptor = New MessageInterceptor(InterceptionAction.NotifyAndDelete, True)
AddHandler msgInterceptor.MessageReceived, AddressOf OnSMSRcvd
End Sub

Private Sub OnSMSRcvd(ByVal sender As Object, ByVal e As MessageInterceptorEventArgs)
'Do something to the sms
End Sub

The application is able to intercept the incoming sms on my WM5 smartphone device but when i try it on a WM6
smartphone, the sms just goes directly to the inbox.

oldSAP at 2007-10-3 > top of Msdn Tech,Smart Device Development,Smart Devices General...
# 3

Is this working on device emulator? You can use Cell emulator to send SMS and test your app.

Manav

mgaur_MSFT at 2007-10-3 > top of Msdn Tech,Smart Device Development,Smart Devices General...
# 4
Sir I tried your suggestion and my application was able to receive the sms sent by the Cell Emulator on the WM6 emulator. But on a real device, it isn't able to receive it. How come?
Thanks for your time.
oldSAP at 2007-10-3 > top of Msdn Tech,Smart Device Development,Smart Devices General...
# 5

Hi friend,

So, we can make sure that your project has no problem. But, it's so amazing. I may guess it may have to do with device issue. e.g. Some settings controled by OEM may not allow you to do so due to the consideration on device security. Could you please try to contact with the OEM stuff?

Regards,

Zero Dai - MSFT

ZeroDai-MSFT at 2007-10-3 > top of Msdn Tech,Smart Device Development,Smart Devices General...
# 6
Hello there Zero Dai, my device is T-Mobile Dash. My OS now is WM5.0 and the sms intercept application works just fine. When i sent it to my friend's T-Mobile Dash running on WM6 OS, the application ran just fine except for the message interception part. I was planning to share the application to others on some forums but most of them use WM6 OS on their Dash that's why i'm trying to fix this bug so that they may use it to
oldSAP at 2007-10-3 > top of Msdn Tech,Smart Device Development,Smart Devices General...
# 7

This is just strange. WM 6 is similar to WM 5 from program compat perspective and the applications are supposed to behave the same way on both devices.

I recommend debugging the application on real device so you can nail down the issue.

Manav

mgaur_MSFT at 2007-10-3 > top of Msdn Tech,Smart Device Development,Smart Devices General...
# 8
Hello,

Im with the same situation. I tested on WM6 only and it works only when the form is on top. When its minimized, it does'nt intercept. Any way to overcome this? I want my form to be minimized or hidden, but intercept the messages..

Thankx for any suggestions/help.

Regards,
Carty..

some1sxi at 2007-10-3 > top of Msdn Tech,Smart Device Development,Smart Devices General...
# 9
some1sxi wrote:
Hello,

Im with the same situation. I tested on WM6 only and it works only when the form is on top. When its minimized, it does'nt intercept. Any way to overcome this? I want my form to be minimized or hidden, but intercept the messages..

Thankx for any suggestions/help.

Regards,
Carty..


Thnaks for the new info. Hopefully someone will be able to fix this.
oldSAP at 2007-10-3 > top of Msdn Tech,Smart Device Development,Smart Devices General...
# 10

It is possible that the form is closed "OK" button on top instead of minimized state "x" on top of the form..

Manav

mgaur_MSFT at 2007-10-3 > top of Msdn Tech,Smart Device Development,Smart Devices General...