I think that my decision on a similar question (to me) can help. Just save the MAC address of the BLE device to the database or something else, and connect using the MAC address when necessary. You can call connectGatt() periodically when the application starts or when it initializes something.
source share