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

Discussion in 'Tutorials & Examples' started by Erel, Feb 24, 2011.

Thread Status:
Not open for further replies.
  1. Erel

    Erel Administrator Staff Member Licensed User

    Right click on the link and choose "Save As...".
     
  2. Brad

    Brad Active Member Licensed 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?
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    Good idea.
    For now you can connect the device to an external power.
     
  4. ippogrifo66

    ippogrifo66 New Member Licensed User

  5. agraham

    agraham Expert Licensed 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!
     

    Attached Files:

    Last edited: Mar 20, 2011
  6. Erel

    Erel Administrator Staff Member Licensed User

    The code hasn't changed in V1.01. Only the Network library was updated.
     
  7. devjet

    devjet Member Licensed 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
     
  8. Erel

    Erel Administrator Staff Member Licensed User

  9. junglejet

    junglejet Active Member Licensed 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
     
  10. Erel

    Erel Administrator Staff Member Licensed User

    Connecting to the designer is similar to connecting to the bridge. Therefore if the bridge works it is expected that the designer will work as well.

    Did you check the unfiltered logs for any relevant messages?
     
  11. junglejet

    junglejet Active Member Licensed 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
     
  12. Erel

    Erel Administrator Staff Member Licensed User

    These ports are opened in the device side. Do you have an application running on the device that uses port 5000?

    I'm afraid that currently you cannot change the device ports. Only the desktop ports.
     
  13. junglejet

    junglejet Active Member Licensed 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
     
  14. Erel

    Erel Administrator Staff Member Licensed User

    Note that the emulator is usually the best option for the designer. It is much easier to position the views with the mouse.
     
  15. junglejet

    junglejet Active Member Licensed User

    I have a 160x240 device that I can better position the entities on its screen.

    Thanks
    Andy
     
  16. hyuk7

    hyuk7 New Member Licensed 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.
     
  17. Erel

    Erel Administrator Staff Member Licensed 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.
     
  18. konradwalsh

    konradwalsh Active Member Licensed 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
     
  19. hyuk7

    hyuk7 New Member Licensed User

    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: May 9, 2011
  20. Erel

    Erel Administrator Staff Member Licensed User

    Have you tried to manually uninstall B4A Designer?
     
Thread Status:
Not open for further replies.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice