奇妙な問題があります。スレッドを開始するサービスがあります。そのスレッドにはBluetooth接続があります。問題なく動作します (まだ開発中ですが、動作します)。奇妙な問題に遭遇しました:ここに小さな LogCat ダンプがあります。この時点でサービスが実行中であることを示す必要があります。
09-17 14:11:07.154: D/ReadXmlService(4552): The maximum numbers of event on the watch is reach (max: 5)
09-17 14:11:07.154: D/MetaWatchReminderApp(4552): size of lastUpdatedEventsFromXml: 0
09-17 14:11:07.154: D/MetaWatchReminderApp(4552): size of compareList: 4
09-17 14:11:07.154: D/MetaWatchReminderApp(4552): compareList.tostring: [dk.detech.metawatchreminder.EventsInfo@ca23e0ae, dk.detech.metawatchreminder.EventsInfo@3bc334bf, dk.detech.metawatchreminder.EventsInfo@93e2b014, dk.detech.metawatchreminder.EventsInfo@895bc157]
09-17 14:11:07.154: D/MetaWatchReminderApp(4552): lastUpdatedEventsFromXml.toString: []
09-17 14:11:07.154: D/MetaWatchReminderApp(4552): The list have been updated return true
09-17 14:11:07.154: D/ReadXmlService(4552): new items in lastUpdatedEventsFromXml
09-17 14:11:15.071: D/CalenderService(4552): onCreate'd
09-17 14:11:25.091: D/ApacheBackground(4552): Background task
09-17 14:11:25.091: D/ApacheBtService(4552): onCreate'd
09-17 14:11:25.101: D/ApacheBtService(4552): state: connecting
09-17 14:11:25.111: D/MetaWatchReminderApp(4552): getBluetoothMac D0:37:61:C3:34:B5
09-17 14:11:25.151: D/BluetoothSocket(4552): create BluetoothSocket: type = 1, fd = -1, uuid = [00001101-0000-1000-8000-00805f9b34fb], port = -1
09-17 14:11:25.261: D/ApacheBtService(4552): before connect
サービスが実行されており、何かが関数を OnCreate メソッドと呼んでいますが、OnStartCommand 関数を呼び出していません。