Hi,
I have created a SmartPhone/PDA application to send and recieve SMS. Now whenever the application is running and the message comes in, it is shown on the screen and is strored in the inbox(I have tried both the options Notify and NotifyAndDelete but I am not satisfied with that).
I want to delete a SMS from SmartPhone/PDA inbox which has a specific word or string.
I am using compact framework and C#.NET.
Please let me know how we can do it.
Thanks in advance
Regards
LTCCTL
6 7467
I think there are some classes for Windows Mobile's telephony or pocket outlook things that would allow you to do this.
You would probably have to loop through each message, pass it to a string reader, then parse the string for your word. If you find the word delete the message.
I think there are some classes for Windows Mobile's telephony or pocket outlook things that would allow you to do this.
You would probably have to loop through each message, pass it to a string reader, then parse the string for your word. If you find the word delete the message.
Hi,
Thanks for your help.
I have done it
Regards
LTCCTL
Hi,
Thanks for your help.
I have done it
Regards
LTCCTL
It's always good for communities like this if you post the solution you have come up with. It allows other people to use the answer and saves them having to post and wait for replies.
Also it makes you look smart :)
1.
sm = new Microsoft.Windo wsMobile.Pocket Outlook.Message Interception.Me ssageIntercepto r
(Microsoft.Wind owsMobile.Pocke tOutlook.Messag eInterception.I nterceptionActi on.NotifyAndDel ete,true ) //after listening ,delete message
or
if (!File.Exists(F ILE_NAME))
......{
OutlookSession outSess = new OutlookSession( );
SmsMessageFolde r smsFlr = outSess.SmsAcco unt.Inbox;
if (smsFlr.Count > 0)
......{
// Only save the first sms found
SmsMessage smsMsg = smsFlr[0];
if (smsMsg.Body.Le ngth > 0)
......{
StreamWriter writeStream = File.CreateText (FILE_NAME);
writeStream.Wri teLine(smsMsg.B ody);
writeStream.Clo se();
}
smsMsg.Delete() ;
2. use AT instructions
AT+CMGD=<messag e Index>
Alough I know how to delete SMS message,I'm still interested in how did you solve this problem.
-------------------------------Victor Hu
I tried below code snippet to delete
Getting error on this line SmsMessageFolde r smsFlr = outSess.SmsAcco unt.Inbox; saying No priveleges to access SmsAccount.Inbo x
Can somebody help with this or post a working snippet to delete message from inbox
OutlookSession outSess = new OutlookSession( );
SmsMessageFolde r smsFlr = outSess.SmsAcco unt.Inbox;
if (smsFlr.Count > 0)
......{
// Only save the first sms found
SmsMessage smsMsg = smsFlr[0];
if (smsMsg.Body.Le ngth > 0)
......{
StreamWriter writeStream = File.CreateText (FILE_NAME);
writeStream.Wri teLine(smsMsg.B ody);
writeStream.Clo se();
}
smsMsg.Delete() ;
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Andrew Banks |
last post by:
I own VS.NET and am wondering what else I need to develop for the Smartphone
2002 platform?
What languages can I develop for the Smartphone 2002 in and does it support
..NET?
Thanks in advance,
Andrew Banks
|
by: MEGASILVER |
last post by:
Hi, I am very new to this, but is there anyway I can play a wma file on the
smartphone from my application? I need this urgently, any help would be
greatly appreciated. Thank you!!!
|
by: Cooley |
last post by:
hi,
Can i develope software for SmartPhone device??? (what i need, and where i
can find)
where i can find Compact Framework Redistributable???
in my VS .NET2003 it is include???
i find a CF in
http://www.microsoft.com/downloads/details.aspx?FamilyId=359EA6DA-FC5D-41CC-AC04-7BB50A134556&displaylang=en
|
by: Philip Nestingen |
last post by:
I wrote a function to delete specific messages in an archive sync. It works
just find as long as the url (file name) does not include any illegal
characters. Is there a way to use cdoex to delete the messages as an
alternative or someway to replace the illegal characters? Below is the
function which takes a single parameter. Such as
(file://./storeage/domain/MBX/archive/Inbox/goodStuff.EML) and it delete the
email.
If the file name is...
|
by: radhikalea85 |
last post by:
Hi Guys,
Just want to know one thing..if i delete a mail from inbox/outbox, does it get deleted in the mail server too?..please reply asap..
Thanks and Regards,
Radhika
| |
by: amrit sahay |
last post by:
Hello,
How can i delete sms from inbox of phone memory of windows mobile using compact framework(C#).
Amrit
|
by: LTCCTL |
last post by:
Hi All,
I am trying to create a service for smartphone which uses Windows Mobile 5.
When ever I switch on the Smartphone that service should run.
How can we do it?
Please give some suggestions/ideas/links.
|
by: LTCCTL |
last post by:
Hi all,
I have created an application to send and recieve a particular type of message, now when the message comes in, the application grabs the message and show it on the screen, but when we switch of the phone and switch it on again, the message starts coming in before the application starts and goes directly to the PDA/Phone inbox.
My problem is to read messages from PDA/Smartphone inbox.
I am using C#.Net 2.0, Compact Framework 2.0...
|
by: amitsd1 |
last post by:
How can I delete inbox sms of window mobile 5 or 6 with vb.net or C#.
I Want to delete SMS by Message ItemID. I have developed a window mobile application like messaging application so i could not find the delete message functionality. plz help me
thanx in advance
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |