I am working on an app to transfer files using WIFI Direct. I’m having a problem trying to log errors, because when I enable WIFI Direct on my test devices, I cannot use a WIFI connection in order to work with B4A Bridge. I’m flying blind.
I’m posting my project in the hope that someone more knowledgeable than I will review my code to see if I have made an obvious coding error. Most of the code has been taken from a few of Erel’s tutorial samples, to which I have added additional code of my own. I have gone over this project many times, and nothing seems amiss.
I have no problem connecting the two devices, or in selecting a file for transfer. The two problems I have are listed below:
1. When the transferred file is saved on the receiving device it is assigned a file name that is numeric, not the original file name and extension. The file content is correct.
2. On the receiving device, when the file transfer is completed, my app (WIFI Direct) shuts down showing this message – “Unfortunately, WIFI Direct has stopped working”.
Any help with this would be greatly appreciated.
Best regards
I’m posting my project in the hope that someone more knowledgeable than I will review my code to see if I have made an obvious coding error. Most of the code has been taken from a few of Erel’s tutorial samples, to which I have added additional code of my own. I have gone over this project many times, and nothing seems amiss.
I have no problem connecting the two devices, or in selecting a file for transfer. The two problems I have are listed below:
1. When the transferred file is saved on the receiving device it is assigned a file name that is numeric, not the original file name and extension. The file content is correct.
2. On the receiving device, when the file transfer is completed, my app (WIFI Direct) shuts down showing this message – “Unfortunately, WIFI Direct has stopped working”.
Any help with this would be greatly appreciated.
Best regards
Attachments
Last edited: