Γειά σου Θανάση και συγχαρητήρια για τη δουλειά σου.

I tried to read some messages from my phone by adding this line :
gateway.getATHandler().setStorageLocations("SM");

(I think I tried to read the messages from the memory of sim card
only)

But when I add this line:
gateway.getATHandler().setStorageLocations("SM,ME");
or just this line :
gateway.getATHandler().setStorageLocations("ME");

this exception appears:

java.lang.StringIndexOutOfBoundsException: String index out of range:
-1

Different runs,different number of messages!
Sometimes one of the messages is this:

<< UNKNOWN MESSAGE DUMP >>
-------------------------------------------------------------------------------
 Gateway Id: modem.com1
 Memory Index: 312
 Memory Location: ME


I have deleted all the mms.
Thanks for your help
Asimina

On 22 Ιούν, 20:12, Thanasis <[email protected]> wrote:
> Γεια σου Ασημίνα :)
>
> Please try to setup the log and post it or send it to me.
> It seems that this phone is incompatible (seems like the library is getting
> a response not expected), but its hard to be sure without the debug log.
>
> 2010/6/22 Ασημίνα Παπακωνσταντίνου <[email protected]>> Hello,I am 
> using the latest version of smslib (3.4.6) ,I tried to send
> > a message through my phone (Sony Ericsson C510(It was not in the list
> > of compatible phones but neither in the uncompatible phones)) but I
> > can't receive any messages.I am using the given SendMessages.java
> > file.
> > Smslib does only read unread messages from the inbox folder ?
>
> > That's my output
>
> > Example: Read messages from a serial gsm modem.
> > SMSLib: A Java API library for sending and receiving SMS via a GSM
> > modem or other supported gateways.
> > This software is distributed under the terms of the Apache v2.0
> > License.
> > Web Site:http://smslib.org
> > Version: 3.4.6
> > >>> Gateway Status change for +30693599000, OLD: STOPPED -> NEW: STARTING
> > >>> Gateway Status change for +30693599000, OLD: STARTING -> NEW: STARTED
>
> > Modem Information:
> >  Manufacturer: Sony Ericsson
> >  Model: AAD-3880009-BV
> >  Serial No: 356385031528453
> >  SIM IMSI: ** MASKED **
> >  Signal Level: 35%
> >  Battery Level: 74%
>
> > java.lang.StringIndexOutOfBoundsException: String index out of range:
> > -1
> >        at java.lang.String.substring(String.java:1937)
> >        at
> > org.smslib.modem.ModemGateway.readMessagesPDU(ModemGateway.java:541)
> >        at
> > org.smslib.modem.ModemGateway.readMessages(ModemGateway.java:208)
> >        at org.smslib.Service.readMessages(Service.java:545)
> >        at org.smslib.Service.readMessages(Service.java:433)
> >        at ReadMessages.doIt(ReadMessages.java:123)
> >        at
> > ClientWithResponseHandler.main(ClientWithResponseHandler.java:46)
> > >>> Gateway Status change for +30693599000, OLD: STARTED -> NEW: STOPPING
> > >>> Gateway Status change for +30693599000, OLD: STOPPING -> NEW: STOPPED
>
> > Please help!!
>
> > --
> > 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]<smslib%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/smslib?hl=en.

-- 
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.

Reply via email to