Connect different Bluefruit BLE UART to Android App and Send, Receive data

Hello everyone,
I want to write a code for an app to connect to Bluefruit BLE UART to send and receive accelerometer data between Arduino and Android App. I want to use one BLE device at one time only. If I want to use the other, then I disconnect the previous one and connect the other. It will be of great help if anyone could help me with this. Thank You

Did you get anywhere with this?