Hello, I am facing one problem with stopService. I have modified SendMessage.java program to send SMS, In that program I tried to send SMS more than 2 times. for sending SMS to each number it first start the service usiing startService() method of Service class and after sending SMS, it stops the service using stopService() method of Service class. I found that first time it stops the service successfully, But during second time it is unable to stop the service. Following are the trace corresponding to stopService method : 1. During first time Stopping the service Stopped. Stopped. GTW: gateway1: Stopping gateway... NotifyQueueManager end... Stopped. Stopped. Stopped. GTW: gateway1: AsyncNotifier thread ended. GTW: gateway1: AsyncMessageProcessor thread ended. GTW: gateway1: ModemReader thread ended. Stopped. GTW: gateway1: Closing: /dev/ttyS4 @115200 GTW: gateway1: Gateway stopped. Running... NotifyQueueManager running... NotifyQueueManager end... Running... NotifyQueueManager running... Stopped. Removing Gateway Service is stopped successfully
2. during Second time : Stopping the service Stopped. Stopped. GTW: gateway1: Stopping gateway... Stopped. Stopped. Stopped. GTW: gateway1: AsyncNotifier thread ended. GTW: gateway1: AsyncMessageProcessor thread ended. GTW: gateway1: ModemReader thread ended. Stopped. GTW: gateway1: Closing: /dev/ttyS4 @115200 GTW: gateway1: Gateway stopped. Please reply me the reason/problem, why it is not able to stop the service.. Thanks in Advance.. Regds Daya -- You received this message because you are subscribed to the Google Groups "SMSLib for Java 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.
