The ReadMessages is just an example, which uses the default toString() method of the InboundMessage object.
You can remark all code and add yours. Use the message object's getter methods in order to printout whatever you want. On Jul 16, 8:01 am, Hendra <[email protected]> wrote: > like this sir Thanasis, the default application from the example will > System.out.println() the default message to command prompt/console, i want > to format that message, the default will launch a logger message with date > and info, then if i use the ReadMessage example than the format will be > -------------------------------- > inbount message > ----------------------- > date : bla9x > text : bla9x > and etc > --------------------------- > i want to reformat the messages, can i do this? and how to remove the logger > message? > > > > > > On Thu, Jul 16, 2009 at 2:30 AM, Thanasis <[email protected]> wrote: > > > I am sorry, did not understand your request. > > What exactly are you trying to do? > > > On Jul 15, 9:06 pm, Hendra Cengala <[email protected]> wrote: > > > hai everybody, i'm a newbie in SMSLib, i want to know how to make a > > > custom message, because my older program read the cmdprompt with it's > > > own format. > > > > i want to make like this format > > > Location 1, folder "Inbox", SIM memory, Inbox folder > > > > SMS message > > > > SMSC number : "+6281100000" > > > > Sent : Wed Jul 15 14:31:45 2009 +0700 > > > > Coding : Default GSM alphabet (no compression) > > > > Remote number : "+62811949655" > > > > Status : Read > > > > Ya 4 <--the message > > > > can i change the default format? > > -- > ----------------------------------------- > Hendra Cengala > Keep Moving Forward --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SMSLib User Group" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/SMSLib?hl=en -~----------~----~----~----~------~----~------~--~---
