show me the code of the Connect button.

2012/2/28 edy <[email protected]>

> thanks for replies,
> so in my application there are action buttons to connect and
> disconnect the modem,
> according to the instructions for connecting
> http://smslib.org/doc/smslib/quickstart/
> and running properly,
> but to disconnect my call
>     Service.getInstance (). StopService ();
>     Service.getInstance (). RemoveGateway (this.gateway);
>     this.gateway.stopGateway ();
> I recall the connect button does not work
> This output from smslib
>
> java.lang.NullPointerException
>        at org.smslib.modem.SerialModemDriver.write(SerialModemDriver.java:
> 166)
>        at org.smslib.modem.AModemDriver.write(AModemDriver.java:302)
>        at
> org.smslib.modem.athandler.ATHandler_Wavecom.done(ATHandler_Wavecom.java:
> 52)
>        at org.smslib.modem.ModemGateway.stopGateway(ModemGateway.java:198)
>        at org.smslib.Service.stopService(Service.java:354)
>        at org.smslib.Service.startService(Service.java:233)
>        at org.smslib.Service.startService(Service.java:196)
>
> On Feb 27, 10:34 pm, Abdeljebbar BOUARFA <[email protected]> wrote:
> > hi
> > before start service you have to add the gateway
> >
> > something lik that
> >
> > Service.getInstance().addGateway(gateway);
> >
> > Abdel
> >
> > 2012/2/27 edy <[email protected]>
> >
> >
> >
> >
> >
> >
> >
> > > how to run again after Service.getInstance () stopService () on call,
> > > I have used Service.getInstance () startService () but it does not
> > > work
> >
> > > please help
> >
> > > --
> > > 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].
> > > 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.
>
> --
> 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].
> 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.
>
>

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