The sample is on http://pluggedin.palmone.com/regac/pluggedin/index.jsp under the develop->downloads section. they are called Treo600_Update_ALL_Samples.zip. Its the SimpleSMS app that shows how to trap SMS msgs. --
Scott Erickson Software Development Team, FB-4, Inc. [EMAIL PROTECTED] "Oscar De León" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Scott, > will you develop for Treo models? > The Treo has events that can be trapped. > You should download the treo apis and docs from the pluggedin site > (pluggedin.palmone.com) > > When developing, you should register your app for receiving incoming > messages, so your application will be notified when a new sms arrives. > Registration is done with PhnLibRegister(). > There are also many others APIs involved in this process. > Your app will be silently notified and you can do your filter in the > background, as you like. > To send a message, use PhnLibNewMessage(). > > I do not use C for developing, so I can not send you code snippet for > this. > Hope this help a bit for you. > > Regards > Oscar > > -----Mensaje original----- > De: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] nombre de Scott Erickson > Enviado el: Jueves, 30 de Junio de 2005 13:50 > Para: Palm Developer Forum > Asunto: trapping SMS msgs > > > Im about to start an application that will allow the user to set up a > blacklist and a whitelist for SMS msgs. The app will grab any SMS msg > going > in/out of the system and check if it is allowed or if its blocked. If its > blocked, it will either not tell the user that they received a SMS > (incomming) or it will not send the SMS (outgoing). The problems I think > I > am going to run into are with getting control when an SMS event occurs. I > know there is no notifcation for such an event, so I cant register to > receivce a launch code. I am thinking I will need to trap system calls to > do this, but I can see there might be problems with this. The > documentation > says never hack a trap address for good. This is what I would need to do > since my app cant be running all the time. Will changing a system trap > address to a function in my code cause problems? I would set the trap > address at install (when the user sets up the app for the first time) and > somehow (havnt thought it through) restore it if the app is deleted. Can > anyone give me some insight to how this might change the system, and if it > is safe to do this? Any info on the subject would be great. > > -- > > > Scott Erickson > Software Development Team, FB-4, Inc. > [EMAIL PROTECTED] > > > > -- > For information on using the PalmSource Developer Forums, or to > unsubscribe, > please see http://www.palmos.com/dev/support/forums/ > > > > -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
