Activity 1: I have enabled bluetooth and paired it with a device automatically. Now I'm navigating to activity 2 via a button click
Activity 2: I have a button in Activity 2 which will navigate back to activity 1 with an added flag via Putextra to disconnect bluetooth
Activity 1: Now i should disconnect and reconnect bluetooth if that flag exist.
I have received flag from intent but puzzled on how to disconnect existing bluetooth connection and reconnect. Any help would be grateful.