Android Tutorial B4A-Bridge a new way to connect to your device

Status
Not open for further replies.

Brad

Active Member
Licensed User
Longtime User
I feel like a kid in a candy store asking for more candy but...any chance of having the bridge keeping the device awake once connected?
 

agraham

Expert
Licensed User
Longtime User
I assume, from your other posts, that it is the desktop code you want.

EDIT:- Sorry, I didn't look closely enough and assumed you were user metrick who also requested source code, I now see you are not!
 

Attachments

  • B4ABridgePlus1.1.sbp.zip
    4.2 KB · Views: 708
Last edited:

devjet

Member
Licensed User
Longtime User
Is there a way to transfer any other date using this tool like pdf files etc, or can one only install the application. The tool works better than any connection I have seen so far and I would love to be able to move other data as well

Regards
Hans
 

junglejet

Active Member
Licensed User
Longtime User
While I can load and run applications through the B4a bridge, it appears I am unable to use the B4a designer on my smartphone.

When I connect from the Designer dialog on my desktop the designer on the device immediately shows up, but no entities on it, just a black screen.

On the desktop the message "Connecting to device. This may take several minutes" remains.

I must admit that I use the bridge between two separate networks. I do some NAT translation to get through the firewalls. I have setup everything for port 6789. Maybe that is not enough?

Thanks
Andy
 

junglejet

Active Member
Licensed User
Longtime User
I found the designer listens on port 5000. When enabled this port it works.

Can I change these ports (5000, 6789) somewhere? I have another application using it already.

Thanks.
Andy
 

junglejet

Active Member
Licensed User
Longtime User
I have separate networks for LAN and WLAN. This is why I need to use a NAT translation.
I have another specific application behind the NAT router that must expose port 5000. Not changeable.
It is not related to Android.
I will find a work around

Thanks for help
Andy
 

junglejet

Active Member
Licensed User
Longtime User
I have a 160x240 device that I can better position the entities on its screen.

Thanks
Andy
 

hyuk7

New Member
Licensed User
Longtime User
B4A-Bridge, can design, but can't run directly...

hi,
I recently purchased the Samsung Galaxy Tab,
and B4A-bridge is well connected to the device and IDE.
I can design the layout on the device via the bridge.
however, it's yet impossible to run directly from the PC.
When I tried to run from the IDE, then the connection been lost & the Tab freezing few seconds and an error message popped up to ask to kill the B4A-bridge.
So I use the USB connection to copy the result.apk, then install it on the device... and it runs OK.
What did I missed or what should I do to compile & run through the B4A-bridge? :sign0085:
Thanks.
 

konradwalsh

Active Member
Licensed User
Longtime User
Solved - FOr Me At Least

I wasted three hours on this issue

I found the issue was on my router.. AP Isolation was on.. So two wireless devices wouldnt talk to each other..

hope it helps someone else
 

hyuk7

New Member
Licensed User
Longtime User
Please check the unfiltered log. It should contain a stack trace with the error that caused B4A-Bridge to fail. Right click on the log, copy the error and post it here.

this is the filtered log just before the B4A-bridge is freezing.

+++++++++++++++++++ from here ++++++++++++++++++++
LogCat connected to: B4A-Bridge: samsung GT-P1000T-00000000000000
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Service (service1) Create **
** Service (service1) Start **
** Service (service1) Start **
Connected to B4A-Bridge
Installing file. +++++++++ it can be run from the IDE if I don't use the B4A-Designer on the device.
** Activity (main) Pause, UserClosed = false **
PackageAdded: package:anywheresoftware.b4a.samples.guessmynumber
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
** Activity (main) Resume **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Service (service1) Create **
** Service (service1) Start **
** Service (service1) Start **
Connected to B4A-Bridge
+++++++++++++++++ to here ++++++++++++++++++

Once the bridge is not responding, no logs available. So i couldn't trace the problem.:BangHead:

instead, I found that the Bridge is freezing when the B4A-Designer on the device is used.
So everytime when I design a layout,
1. save the design & close the Designer
2. kill the B4A-Bridge in the Task Manager
3. re-run the Bridge & connect it again
4. then the application can be run from the IDE

There is no problem to run the application from the IDE if I don't design layouts through the B4A-Bridge. :sign0060:

Anyway I hope it can be solved on my machines in the near future.
Thanks.
 
Last edited:
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…