Android Question Bluetooth prefix mode Java PC to B4A app

rhochzwei

Member
Licensed User
Longtime User
Hello everyone,

I'm trying to accomplish a bluetooth communication with a Java application on PC and my
B4A App on Tablet using the Async Prefix mode.

It's working that I can receive files send from the example FileTransfer app in my Java PC application.
Also the calculated Adler32 checksum matches. So everything is fine.

When trying it the other way round (send file from PC to tablet), I can detect while debugging that the file
name is transferred properly, also the file size matches. The app also displays the correct values.

The file transfer from PC to tablet also succeeds, but when sending the Adler32 Checksum the B4a File
Transfer app crashes without any specific information.

When looking into the app data folder I can see that the app received the file, but the name of the file is not
correct. Instead of myfile.png the file name is just 1.

After renaming the file I can open it and the content is fine too.

Right now I'm a bit lost, I tried to put some toast messages after the file transfer finished but those messages never
appear since the app crashes.

If I run the PC application not in debugging mode, the behavior is exactly the same.

Any help or hints are highly appreciated.

Thanks a lot!
 
Top