One of my programmers/designers have created a blue-tooth switch (hardware + application) to control a circuit. But it contains the following flaws :-
1) Ideally the current should not floe, when blue-tooth is switched off, and should resume, when blue-tooth is switched on, but it works vice-versa. I want it to work properly.
2) The blue-tooth application when put in landscape mode, crashed many times (so, have to keep orientation fixed). After cash it shows these messages :-
Issue :- It crashed as soon as it starts showing the message that "The application BTSwitch (process com.example.bluetooth1) has stopped unexpectedly. Please try again.
Issue :- It also crashes in max 1-2 seconds. The message that come son the screen is "Fatal error- In on resume () and an exception occurred during write socket close. Followed by something like "Check that SPP UUID".
3) Finally, what I would like to have is a small green/red icon showing if the blue-tooth hardware is in ON/OFF state.