akicay
akicay

Reputation: 33

Android studio - When connected to a bluetooth device, the onDestroy is called

I'm working on a music application and I've noticed that when a bluetooth device is connected or disconnected, the activity destructor is called, which causes the music to stop playing. I've tried other music apps but it doesn't happen with them, connecting the device does not interrupt the music. I made a new android app but the same thing happens.

Does anyone know how to solve this problem?

Android studio screenshot

The bluetooth device image

Thanks

Upvotes: 0

Views: 30

Answers (0)

Related Questions