I'm facing the same problem.. Anyone plz help .. On Thursday, March 1, 2012 11:55:50 PM UTC+5, mutumba wycliff wrote: > > Hello, > > Please advise me on this; > > I there a way one can combine the SendMessage and ReadMessages Modem > examples > into one program without getting port conflicts? > > > thanks®ards, > > On Mon, Feb 27, 2012 at 7:25 PM, Greg <[email protected] <javascript:> > > wrote: > >> On Feb 27, 1:20 pm, mutumba wycliff <[email protected]> wrote: >> > Hello, >> > >> > Hoping you are doing fine. >> > >> > Please advise me on this; >> > >> > How can I achieve the following; >> > >> > 1. Get the Text part of an InboundMessage Message just like i can get >> the >> > originator (by msg.getOriginator()) >> > 2. Identify the new/unread messages >> > 3. Delete read messages >> >> I'm far from being a expert with SMSLib but i think i can help you >> there. >> >> 1. msg.getText() is the method you're looking for. This will return >> the entire text of your InboundMessage >> 3. Service.getInstance().deleteMessage(msg) allows you to delete a >> received message. >> 2. Can't help you there, i actually always delete new messages every >> time i see one (after treatment of course). If you need to have all >> the messages sent on your gateway(s), i would create another list of >> InboudMessages where you save every message you receive. >> >> By the way, this example is really helpfull to familiarize with the >> most usefull methods to read messages : >> >> http://code.google.com/p/smslib/source/browse/smslib/branches/v3.4.x/src/java/examples/modem/ReadMessages.java?r=2301 >> >> -- >> You received this message because you are subscribed to the Google Groups >> "SMSLib Discussion Group" group. >> To post to this group, send email to [email protected]<javascript:> >> . >> To unsubscribe from this group, send email to >> [email protected] <javascript:>. >> For more options, visit this group at >> http://groups.google.com/group/smslib?hl=en. >> >> > > > -- > MUTUMBA WYCLIFFE > CONSULTANT > > J Floyd Consult (U) Ltd > Mukwasi House, Lumumba Avenue > P.O.Box 72299 > Kampala, Uganda > > Email:[email protected] <javascript:> > Mob: +256 712 351375 > Website: http://www.jfloydconsult.com > ----------------------------------------------------------- > There is always a way. > > >
-- You received this message because you are subscribed to the Google Groups "SMSLib Discussion Group" group. To view this discussion on the web visit https://groups.google.com/d/msgid/smslib/24840d7a-e3af-4de3-a466-84c16145567e%40googlegroups.com.
