Android Question App restarts on Bluetooth Connection reset

Andrew King

Member
Licensed User
I have a project I am working on where I have a Bluetooth keyboard that times out (and it must, so it is not an option to try to get around that time out)

But when it times out it disconnects and causes my app to restart.

The app has absolutely no code dealing with Bluetooth connections.

There are no errors in the log.

I have seen that activity_resume and activity_create are called by putting a message box in the events. Also in the activity_create event, the FirstTime = false. But I must reinitialize my lists or they will throw an error saying list is not initialized.

So basically the memory of the app is wiped clean and basically restarted simply because a keyboard Bluetooth connection goes online or offline. Being a .NET programmer, this really boggles my mind.

Any ideas would be appreciated as to what is going on here.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…