Richard Goh Active Member Licensed User Longtime User Jun 2, 2016 #1 Hi, I discovered that there is a connection problem to Bluetooth printer when compile the apps into Release (obfuscated) version. It's can't connect to the printer. It's was keep trying to connect to the Bluetooth printer. But it's working well when compile in debug or Release version without obfuscated. Any advice on this? Thank you.
Hi, I discovered that there is a connection problem to Bluetooth printer when compile the apps into Release (obfuscated) version. It's can't connect to the printer. It's was keep trying to connect to the Bluetooth printer. But it's working well when compile in debug or Release version without obfuscated. Any advice on this? Thank you.
Erel B4X founder Staff member Licensed User Longtime User Jun 2, 2016 #2 Moved to the questions forum. You need to post the relevant code. Make sure to go over the common pitfalls related to obfuscation: https://www.b4x.com/android/forum/threads/android-code-obfuscation.13773/#content Upvote 0
Moved to the questions forum. You need to post the relevant code. Make sure to go over the common pitfalls related to obfuscation: https://www.b4x.com/android/forum/threads/android-code-obfuscation.13773/#content
Richard Goh Active Member Licensed User Longtime User Jun 7, 2016 #3 Hi Erel, Sorry for late reply. I had re-test the programs attached is the printing sample programs which have the connection problem after compile into obsfucated mode. Thank you. Attachments BTPrint.zip BTPrint.zip 316 KB · Views: 342 Upvote 0
Hi Erel, Sorry for late reply. I had re-test the programs attached is the printing sample programs which have the connection problem after compile into obsfucated mode. Thank you.
Erel B4X founder Staff member Licensed User Longtime User Jun 7, 2016 #4 Did you go over the pitfalls section in the tutorial? The error is clear. You are calling a sub with this code: Code: Copy CallSub2(BTNotify, BTNotifyRoutine, BTConnected) The value of BTNotifyRoutine ("PrinterConnected") should include an underscore. Upvote 0
Did you go over the pitfalls section in the tutorial? The error is clear. You are calling a sub with this code: Code: Copy CallSub2(BTNotify, BTNotifyRoutine, BTConnected) The value of BTNotifyRoutine ("PrinterConnected") should include an underscore.