Hi,
a friend of mine is developing a little tool to read out content of SMS. For example when he gets a SMS notification about a missed call (when the phone was turned off) he reads out the number and displays a default windows-notification (like task-reminder).
The problem he´s got is with "MessageInterceptorEventHandler". He managed to catch the message, but he cannot read the messages content.
Has anybody experience with C# / CompactFramework or this scenario ?
regards,
Martin
IIRC, one of the arguments passed into the MessageInterceptorEventHandler is a Message object, which can be casted to an SmsMessage object, which has a String Body property that has the text of the message.
zaijian said:
IIRC, one of the arguments passed into the MessageInterceptorEventHandler is a Message object, which can be casted to an SmsMessage object, which has a String Body property that has the text of the message.
Click to expand...
Click to collapse
thanks, it worked ! Maybe we release this app here, if anybody wants the same for his mobile operator.
regards,
Martin
Related
hi all,
i had download the SendSms. from the msdn website...
however when it send the sms out to a GSM phone (Nokia 7110) it appear as a flash sms(which the contents of the sms appear directly on the screen of the phone eg:"Message:hello world", rather than "1 message receive"). Furthermore, the sms is not handled by the inbox..
does anyone knows how to disable this flash sms?
or is there any other way to send sms using VB.NET???
this is the website that i downloaded the send sms application..
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/netcfsendsms.asp
Cool!
I've been looking for a way to send flash sms..
Sorry that I can't help you though..
flashing sms...eVB
Hmm, this is cpy/pasted from the page being shown when clicking your link .....
private enum PROVIDER_SPECIFIC_MESSAGE_CLASS
{
PS_MESSAGE_CLASS0 = 0,
PS_MESSAGE_CLASS1,
PS_MESSAGE_CLASS2,
PS_MESSAGE_CLASS3,
}
PS_MESSAGE_CLASS0 indicates the message should be displayed immediately but not stored on the Subscriber Identity Module (SIM).
PS_MESSAGE_CLASS0 = 0,
What does the above value "= 0" means??
I've tried using ur method, but the message still appear as a flash sms on the phone.
how do i change the values?
and is the PS_MESSAGE_CLAASS really neccessary?
because i actually commented out the whole class and compile,and the app still send a flash SMS...
PS_MESSAGE_CLASS0 indicates the message should be displayed immediately but not stored on the Subscriber Identity Module (SIM).
PS_MESSAGE_CLASS1 indicates the service center handling the message should be notified when the message goes through and it should be stored.
PS_MESSAGE_CLASS2 indicates the message should be first sent to the SMS data field within the user's SIM before notification is sent to the service center handling the message. If the SIM is filled, an error message is sent to the service center.
PS_MESSAGE_CLASS3 indicates when the message has successfully been sent to the destination and can be stored to SIM, the service center will receive a notification.
i just want to disable the flash sms..
Can you post please your compiled flash Sms application..
its on the msdn website..
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/netcfsendsms.asp
it contains the codes..
i am using vb.net..
Yeah,but I am not using vb.net and don't wanna install it only to compile that app.
So,can you send me the compiled Flash sms app please?
Nice!!
But I dont have MS Visual Studio but I would like the SMS Flash Application too
Can you post it here please?
Cheers
Rdkay
I've found the solution by hacking into the msdn code. Just add the providers' data (force the providers' data to use class 1 sms type)
ProvData(4)=1
Re: Cool!
Bonzo said:
I've been looking for a way to send flash sms..
Sorry that I can't help you though..
Click to expand...
Click to collapse
Try "SMS Writer" v1.6 by DesignLab, you will have options for "Flash SMS", "Normal SMS" and "Normal SMS with Receipt"...
Best regards,,,
Don't you just hate snoopers. I mean people leaning over on the bus and peering over your shoulder at your text messages as you access your text inbox on your jasjar.
Wouldn't it be nice to just turn that auto preview off on text and email messages someway, somehow?
People, be careful in London, those snoopers may be more interested in your JJ/Exec/MDA/VPA/M5000 then your messages!
Hey, London's not that bad!
tell u what jah, I'm more worried about my messages than my jasjar, although someone would have to be very very brave to try anything with me,
anyway I'm actually always in the car with it, I would like some real super duper voice activation software, I know of all the standard ones but I found on my xda fonix was the best, by the wa any ideas how to turn the autopreview of messages off by the way
Anyone who snoops is risking a fat lip from me.
Nobody has any interest in the content of your messages.
They are only considering how many of them its going to take to hold you down while they mug you.
I usually give them full eye contact and ask solidly if they'd mind f** off.
It usually does the trick.
Also beware of the honey trap snooper gaff. ie. attractive lady snoops as a means to get into a conversation. She then starts asking questions about you, your life, where you live, what you do etc.
I've known people who've lost everything to gangs in this way.
And no, I am not exaggerating.
Where is the auto preview? Can someone post a screenshot? I've never used my universal for messages, so I've no idea how it looks. I'll see if anything can be done about it if it's possible.
V
Isn't it just a case of turning off "display" in the notification settings for New SMS messages? I set it up for my CAR profile on PocketZenPhone and it works a treat, so it should just show the notification icon, but NOT display the message bubble.
Ant
Isn't it just a case of turning off "display" in the notification settings for New SMS messages? I set it up for my CAR profile on PocketZenPhone and it works a treat, so it should just show the notification icon, but NOT display the message bubble.
buzz
----------------
)))
)))
Haha!!
hi guys, ok I've taken some time to catch up with the thread that I posted on snoopers and auto preview.
I think there's been a bit of confusion on the definition of auto preview. let me explain
When you access your messages be it text messages, mms or email, you will notice that when you go to inbox, the messages are displayed showing you the sender, directly underneath the sender you will see the message contents without actually entering the message.
I suppose its exactly like outlook where there is an option to show you the message directly underneath the subject line and not in a separate preview window.
I basically want to turn this option off as by default wm 05 shows you the message without opening it.
Help appreciated
Cheers guys
Hello,
I would like to use SMS in a new application using XDA. I want my application can read sms in inbox.
Do you know how I could see example of source code using SMS API? Or do you have such example to help me?
I got example to send sms but cannot get sample how to read the sms.
FYI, i am writing program using eVB.
Thanks a lot
You should take a look at PocketPC Network Programming by Steve Makofsky or simply try
http://groups.google.com/groups?q=pocketpc+sms+api&start=0&hl=de&ie=UTF-8&
and
http://msdn.microsoft.com/library/en-us/dnppcgen/html/sms_apps2.asp?frame=true
SMS API is not easy.
Yup, it's not very easy, you need to learn about POOM...
I advise you to look into VB .net, it's been made a hell of a lot easier.
I still do it the Medieval way though! Win32 C++ all the way :shock:
V
I did include some C code on sending/reading SMS in this post
http://forum.xda-developers.com/viewtopic.php?t=10761&highlight=
You are asking about reading messages in the Inbox that is when poom as mentioned by vijay555 comes into play.
I don't know anything about poom, but I have read incoming SMS by making my read thread take control of incoming SMS. This means that the message never goes into the inbox.
vangelderp: interesting code, not seen it before on the board. A very good way to do it. It doesn't need to be installed before pocket outlook etc does it? I don't imagine it does. Good stuff!
V
No it does not need to be installed before PPC Inbox (Outlook), what seems to happen is when a SMS message comes in the Inbox fires up. From that point on my code won't get a handle to SMSRead.
So what you need to do is do a warm reset and then start your user program (including my code sample) before any new incoming SMS messages and then it will get the SMSRead handle first. This then blocks Inbox getting a handle which I am sure it raises a error message on if you then try to go into inbox.
vangelderp: yup, that's what I thought. I never used that technique because of that, I stuck with POOM. But your createevent and thread work is very helpful.
V
SmsReadMessage of SMS.API
Thanks for your all comments.
Do you know how to use SmsReadMessage of SMS.API ?
This function is used to Reads a previously received SMS message. I really hope somebody else out there can help me how to use that function
Regards
You use SmsReadMessage like I do in the code attachment I have mentioned.
This function does not read a SMS message that has already been received by the normal PPC Inbox program. As said for that you need to use POOM.
SmsReadMessage for for your code to get a SMS Read Handle and then wait for the event (The Message) to occur and then use the SmsReadMessage function.
Exactly as I have done in my code snippit.
Okay, right I've tried everything to disable the conversations, i tried doing different ways but i've still got the text with history and it's making it little more difficult for me to reply to my friends/family.
Example: (what its like)
Conversation with (contact name):
Me: *message* Timestamp
Contact: *message* Timestamp.
I don't want it that way.
I've tried downloading DisableThreadedMessages...
Didn't work either...
Any other way to change the layout of the messages instead of travelling a long path to the end?
Please send a copy through private messages thanks.
gorgeousrose said:
Okay, right I've tried everything to disable the conversations, i tried doing different ways but i've still got the text with history and it's making it little more difficult for me to reply to my friends/family.
Example: (what its like)
Conversation with (contact name):
Me: *message* Timestamp
Contact: *message* Timestamp.
I don't want it that way.
I've tried downloading DisableThreadedMessages...
Didn't work either...
Any other way to change the layout of the messages instead of travelling a long path to the end?
Please send a copy through private messages thanks.
Click to expand...
Click to collapse
Well It's SORTED...
Solution: IN THE MENU...
There's SMS Threading...
Choose Whether to Have Threaded Or Single.
I am creating an application where it will send a pre-prepared text to selected people at a push of a button. The reason for this is that I am a volunteer firefighter and most of us have pagers. Some of us do not have pagers since the department ran out and they are not in the budget to buy more right now.
Anyways, I have the basic layout that I would like set up.... And that's about it. I am used to javascript but that is a little different then Java. I am using the Eclipse program to code.
Here's my priorities to get working first:
-Have a message sent when button is pushed (message can be hard coded now so it works. would like to be able to edit it later)
-Be able to select contacts the message is sent to
Future wishes:
-Be able to add new messages
-Be able to edit messages
-Manage messages (mainly a list of the messages in scrollable list view)(popup for Edit|Delete)
Example Message:
(DEPT NAME) Alert:
Fire Alarm Activation
Time sent: 1830
Click to expand...
Click to collapse
So right now I need help with:
Adding the SMS service to send out the text message when the button is pressed
Selecting contacts to send the message to
Coding in the message
If you can find a guide on how to do that, it would be greatly appreciated. I am completely new to android programming so please don't bash me for something that may seem completely easy.
Thanks in advance for any help.
Probably a free app out there.
Why not just make a Contact with multiple phone numbers in it and create the text using default SMS app? If speed is of the essence, then pre-define some "codes" for certain events much like on a pager where you get a "911" from a caller.
And don't take this the wrong way because I know a few volunteers and appreciate their service because it is NOT "easy", but a PAGER? Haven't they gone the way of the floppy disk? LOL That's a damn tight budget there!
I have looked and haven't seen one that will fit my needs.
Speed is essence in this case because i want to be able to open up the app and then hit a button to send the text so I am not fiddling with my phone while driving to the station.
I have the basics of the program worked out. I have all the messages pre-set and sendable, but only to one person.
(for those looking for a guide on how to implement SMS messaging, this is a great one that shows you step by step: http://mobiforge.com/developing/story/sms-messaging-android)
I am now stuck on being able to send it to multiple people at the same time. Current code:
callStructureFire.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
String msgText = "IHBVFD PAGE OUT:\nStructure Fire\nTimeout:"+formattedTime;
String contacts = "5556";
sendSMS(contacts, msgText);
}
});
Click to expand...
Click to collapse
(Red is where the numbers go. I am using Eclipses emulator's to test so i have 5554(main) 5556 and 5558 (testing for receiving messages))
When I try to do "String contacts = "5556, 5558(with and without the space)";", it will send the message to the first phone but not the second. On a real phone, it does not send the messages at all.
I also still need to implement a contact selection which I have been looking on google for a few hours now and cant find a guide on how to do it. What I would like to happen is when you press the phones menu button, it gives the option to manage the recipients (or even a group) and for that selection to stick even if I leave the app/restart the phone/whatever.
I really would like to get this all done by Thursday night so I can start using it.
No offense taken. The thing is that my department is strictly volunteer. We get about 100 calls a year so we do not have the call volume to get paid. Being strictly volunteer also means the the city does not charge taxes to the residents. We are really only funded by donations and fundraisers (which we do 2-3 a month). With pagers (Minitor IV) being around $140+ on ebay and then $30-50 for programming them... Yeah... It gets kinda pricy for 4 pagers lol.
Can anyone help me get multiple contacts working at least? Really want to have this done soon.
Skull, I am guessing your Communications center does not support any type of email or txt ripnruns for calls?
If either are supported, we use IamResponding.com and also CADPage (free on the market). Our center only sends emails but we have it getting parsed down to a compact format and resent as TXT. PM me if you want/need more info.
I cannot speak enough about both of these solutions!
Our dispatcher is our police dept. We have recently talked about IAmResponding within the dept but that got shot down by the officers because that's an extra 3-800 a year... And again, not everyone has pagers so they still wouldn't really know if we have a call. I am still trying to get them to do the 2 month trial. CADpage isn't supported in my county.
We have looked into those, but for now this program is the only option that I can see :/