I'm literry new in Andriod and I want to create a app to Alarm the user when disconnect the headphones when the jack is unplugged the phone launch an alarm in the speakers, well, my code detect when the jack is unplugged even when the phone launches the alarm but this alarm do not sound in the speakers but when I connect the heaphones the alarm can be listened in the headphones, you can help me whit this? I dont know whats happen
Asked
Active
Viewed 56 times
0
-
Can you share some part of your code? Atleast how you are playing the alarm and setting it up. – Kamal Nov 02 '18 at 06:44
-
thanks so much, I resolved the problem using this code: – Ibrahin Cruz Luqueño Nov 05 '18 at 14:02
-
https://stackoverflow.com/questions/13610258/how-to-detect-when-a-user-plugs-headset-on-android-device-opposite-of-action-a – Ibrahin Cruz Luqueño Nov 05 '18 at 14:02