Hello Guilherme,

Of course! You can delete a message or empty your inbox thru SMSLib.
Assuming that you've successfully started the *SMS Gateway*, the code 
should be like this,

// From package org.smslib
Service.deleteMessage(idx); // Where "idx" is the index of the message from 
the inbox

You can also wrap it to a look to empty the inbox.

AtomicInteger idx = new AtomicInteger(); // Using this is not truly 
necessary, but just for the sake of being "thread-safe". You can use native 
int alternatively
// We'll use for-each
for (InboundMessage msg : messageArr) { // "messageArr" is from a  method 
that  reads  messages
       System.out.println("Message #" + idx.getAndIncrement() + " is 
deleted!");
       Service.deleteMessage(msg);
}

So there you have it. Just simple as that. If you're interested, me and my 
friends created an utility that does SMS stuff easily. And it uses SMSLib 
also in processing SMS.

Here's the link: JUtils <https://space.zeo.net/g/44o72>

It also contains other useful stuff.  Just read the "JUtils-doc.txt" or 
just go directly to *my.jutils.sms* package, then *SendReadSMS.java, 
SMSModule* class.

If you have any question, don't hesitate to ask.

Regards,
Erieze Lagera

On Friday, October 10, 2014 9:09:28 PM UTC+8, Guilherme Melo wrote:
>
> Hello people, I'm developing an application with SmsLib that will read 
> received Sms and later will send a sms to each these number, but, leter i 
> want the aplication remove the sms received to the inbox dont stay full. 
> How can i do it? It's possible? Sorry my bad english. ^^
>

-- 
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/4b55cf56-3a23-4544-a045-e6252839594f%40googlegroups.com.

Reply via email to