B4A Library B4ABridgePlus utility program

agraham

Expert
Licensed User
Longtime User
Have a play. Note that this project compiles under my own personally modified version of Basic4ppc which differs from yours so you may have to slightly play with the source. In particular it uses a library called Reflection which you should change to the Door library.
 

Attachments

  • B4ABridgePlus.zip
    11.3 KB · Views: 503

AndyDroid2012

Member
Licensed User
Longtime User
Excellent, I was using FTP to and from PC and android until now when I found the tool. Kudos to you sir.
 

islandman

Member
Licensed User
Longtime User
Library for B4aBridge exe Source code

Hello
Thanks for this great tool.

I need help to modify the source code of the exe file.
I bought B4basicPPC but i really don't know what to do to compile without error

First, Controls and Reflections dll are missing. Then i upload Door dll component
Then impossible to compile. Message appears :

IpBox.New1 -> "Object reference not set...."

Compile error -> No match was found to type : folderdialog...

Well, i feel that i bought this old Basic4ppc for nothing....but it still interesting
to develop tools for Pc-desktop

Help please
Regards
 

islandman

Member
Licensed User
Longtime User
Super Agraham

Thanks alot...:sign0060:
My brain burning but it's great....another language to learn...

Do you think that Basic4ppc will be updated ?:sign0089:
 

agraham

Expert
Licensed User
Longtime User
Sorry, I got the additional libraries link above wrong, now corrected.

I don't think Erel will be updating Basic4ppc as the Windows Mobile platform it targeted is now obsolete and I don't think he sees it viable as a development environment for the desktop as the free Express versions of Visual Studio are available.

As you can see from the additional libraries link I have done a lot of work on Basic4ppc in the past, and in fact I maintain my own custom version of the IDE that targets only desktop applications. However I'm afraid that it is not available commercially.
 

mbatgr

Active Member
Licensed User
Longtime User
Hi agraham.
this is a nice tool. I have some server's implementatio in VB6 but is it possible to share the source code of the B4a-bridge.Plus.exe?
mike
 

mr23

Active Member
Licensed User
Longtime User
@agraham et al,
Has anyone tried transferring large files from the android device using the plus.apk app to the Plus.exe ? By large I mean for example 2Mb.
I'm running Win7 on the PC, and 4.0.3 on an HTC Sensation.
Less than the whole file is stored on disk on the PC. I've only tested some large jpgs so far. After around a half-Mb they get corrupted, like some of the packets are not getting either received or lost before stored.
I also tried a gen1 Kindle Fire running 10.1.3-otter CyanogenMod (Android 4.2.2), and again I did get some smaller files through just fine, but the large ones (17Mb pdf) did not arrive intact, generally running about somewhat larger than half-sized.
I also tried a Wildfire running some old Android (2.x) and a 814590 file ended up as 643042 bytes on the PC.
I also see errors such as the attached.
 

Attachments

  • b4abridgeplus_error.jpg
    21.7 KB · Views: 270

mr23

Active Member
Licensed User
Longtime User
I throttled the packet send rate down to 1 per 50ms, and more data arrived in the PC file.
So I backed it down to 5 per second, and the files arrive intact.
So, either something on the b4a stream.write side into a socket from a server on the device side can't handle this, or, more ?likely? the b4abridgeplus.exe code is dropping packets or overwriting buffer.
Anyway, at least now I have an idea of where the problem is...

@Erel @agraham
 

agraham

Expert
Licensed User
Longtime User
Yes, I've seen this but couldn't track where the problem was. As it uses TCP/IP there shouldn't be any loss in transmission and I couldn't see where on receive side the problem might be and didn't spend a lot of time on it as it wasn't important to me. B4ABridgePlus is written in Basic4ppc and I suspect there is a bug in its Network library to do with its DataAvailable flag as I have had similar trouble when I wrote a network Server with it. If I needed to do it again I would either rewritethe Network library to work asynchronously or do the while thing again in C#.

That "Key in Dictionary" error looks like it might be trying to open a file that is already open, but I'm very rusty.

I found an un-issued version 1.2 of B4ABridgePlus in my archives with increased buffer size and other small changes. I can't remember if it worked or not but you can try it.
 

Attachments

  • B4ABridgePlus1.2.zip
    68 KB · Views: 369
Last edited:

mr23

Active Member
Licensed User
Longtime User
@Rusty , I needed to move some files over and thought I'd try this tool. After finding the 'size/rate' limitation I figured it would be helpful to share that on this thread. Thanks for responding, @agraham . After slowing down the send rate, I could transfer arbitrarily large files (didn't try larger than 20MB), and I liked the right-click-send-to-pc feature of this utility.
 

Xfood

Expert
Licensed User
it would be nice to convert this great utility B4ABridgePlus to b4j
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…