Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
起動時に開始する Android サービスがあり、Bluetooth を使用して外部デバイスからイベントを取得したいと考えています。spp を使用して Bluetooth 経由でデバイスに接続するサンプル アクティビティを作成しましたが、すべて正常に動作します。このコードをサービスに統合したいと思います。サービスを使用して(アクティビティではなく)Bluetooth sppからデータを取得するためのベストプラクティスは何ですか? バッテリー寿命にどのように影響しますか?ありがとう!