Bluetooth app crashing when sending data

Hello!
i got a strange problème,
i develop an app to send some byte to an arduino with bluetooth.
the strange thing is that the app work on my phone, but it instant crash when i send something with my tablet
IDK where is the probleme and maybe the problem is comming from the tablet

Have you some idea of where the problem is coming from?
here my bloc prog: