Android Things with bindservice and kotlin - onResume and onPause Or Coroutines Or RxJava
问题 In this project: https://github.com/neuberfran/SmartDrive5, file: ModoComFirebase.kt I have issue BCM18 is already in use by PID, Because this gpio was opened in DriverService.kt file before. My question is: The Application class ModoAutomatico.kt has no methods onPause and onResume. How to use foreground service in this case to solve my Issue ? 回答1: The Application class ModoAutomatico.kt has no methods onPause and onResume. This is because the Application class is a singleton. It starts