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. Rusty

    Rusty Well-Known Member Licensed User

    I have an Asus with Jellybean 4.2.1 On this device, I can (with difficulty) get B4A (v2.06) to connect.
    Every time I re-compile, I have to re-connect as the connection drops.

    I also have an Asus with OS 4.0.3, the same version of B4A stays connected forever.

    Is there a problem with the B4A application under Jellybean 4.2.1?
    If so, how do I resolve this?
    Thanks,
    Rusty
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Are you using Bluetooth or wireless connection?
     
  3. Rusty

    Rusty Well-Known Member Licensed User

    Wireless.
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    It is not related to the Android version. Probably a network issue. I encountered a similar issue when there were more than one recognized wireless networks. The device switched between the networks and broke the connection.
     
  5. Rusty

    Rusty Well-Known Member Licensed User

    ...that could be it.
    I have 5 different WiFi addresses that are all available. However, only one is connected.
    Any advice?
    Rusty
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    Try to click on these networks and choose "forget network".
     
  7. Askjerry

    Askjerry Member Licensed User

    Add USB connection to Bridge??

    I have a Dell laptop... no Bluetooth.

    I bought a Bluetooth adapter and stuck it into the USB of the laptop... installed the drivers, was able to connect to the tablet for audio sharing... so I know the device works. When I go into Bridge and attempt to connect via Bluetooth it says that it Failed successfully.

    A screen comes up... "An error occurred. No radio found." then when I close that screen it says, "Finding Bluetooth radio: Success"

    I posted for help on this some time ago... nothing so far... probably a Bridge issue... anyway...

    Many times I'm in a hotel with VERY CRAPPY internet connections... using Bridge is painful at best. Constant drop outs, slow speeds, etc.

    Would it be possible to set Bridge up so that I can connect via USB?

    That would solve the issue... plug in a USB cable, connect bridge... and plug away... no issues with connectivity.

    Can you do that??? (It would be AWESOME!)

    Thanks,
    Jerry

    Additional data on the Bluetooth thing... from the laptop I get these as available options on my Android tablet...
    Network Service on rk30sdk (not connected... and it fails when I try)
    OBEX Object Push on rk30sdk
    Voice gateway on rk30sdk (not connected... and it fails when I try)

    So Bluetooth is functioning... but Bridge can't see it for some reason.
     
    Last edited: May 3, 2013
  8. Erel

    Erel Administrator Staff Member Licensed User

    You should use USB debug mode. You do not need B4A-Bridge for that.

    About the Bluetooth driver. Which driver have you installed? You can try to uninstall the driver and install Microsoft Bluetooth driver instead.
     
  9. agraham

    agraham Expert Licensed User

  10. b4AMarkO

    b4AMarkO Member Licensed User

    Installed update to 2.08

    Since then I can no longer connect via Wireless

    I can however connect via Blue Tooth

    On the Bridge it is saying My Ip: Not connected to wireless network

    Before my Ip came right up ...... not sure what to do but at least I have BT
     
  11. Erel

    Erel Administrator Staff Member Licensed User

    It is most probably not related to the new version. The new version only fixes a small issue in a completely different area.

    Have you tried to reboot your device? Are you sure that it is connected to a wireless network?
     
  12. b4AMarkO

    b4AMarkO Member Licensed User

    Erel you are da Man ..... It was my Wireless Network ..... I rebooted it and all is well now

    Thank you so very much
     
  13. mterveen

    mterveen Member Licensed User

    bluetooth log file

    (using a nexus 10 w/ 32G storage and running the usbserial demo from agraham)

    i am able to bridge using bluetooth to the tablet and successfully install and run the demo. however, the log file data/messages do not show up in the b4a ide log tab. it does show the initial installation of the apk but once the program runs on the tablet the "log("xxxxxx")" data is not reflected.

    what do i need to modify to see the log data?
     
  14. Erel

    Erel Administrator Staff Member Licensed User

  15. mterveen

    mterveen Member Licensed User

    debug mode

    i'll double check but i was sure the tablet IS in usb debug mode!? will the bluetooth bridge work the same way?

    ***oh - i'm guessing you are talking about the ide needs to be in debug mode?! when i look at my ide there is nothing selected in the dropdown box, it is just empty. so i assume if there is no selection it assumes a release mode?

    ****this was the first program i've tried since upgrading so it appears that the mode is not populated initially?! now that i've selected debug mode the box remains populated after a restart of the ide.
     
  16. mterveen

    mterveen Member Licensed User

    That was it. Just needed to turn on the debugging mode in the ide. Thanks erel.

    Sent from my Nexus 10 using Tapatalk 2
     
  17. Charlie

    Charlie Member Licensed User

    Bridge crashes

    I'm trying to connect wirelessly because I'm hoping to get USB serial adapter code running on this low end tablet running Android 4.0.4 and there is no BlueTooth adapter. As soon as I go into Tools >connect wireless, the tablet says connected, then instantly crashes. The report says the error is file not found (temp2.apk).

    I'm pretty new to this, so I'm pretty much poking in the dark, however if I try to follow the path called out in the file not found message, none of the path exists after /mnt/Android/data which seems like a bad install. However, I've re-installed 3 times, I get no messages during install, but same crash, same missing path.

    Thoughts?
     
  18. agraham

    agraham Expert Licensed User

    B4ABridge needs external storage to load the apk to before installation. On modern high end devices this is built in. Low end and older devices often need an SD card to provide this. Storage Options | Android Developers
     
  19. Charlie

    Charlie Member Licensed User

    My device has external storage. There's a portion of the internal 4G memory that mounts as an sdcard, and there's a 32 G actual SD card that mounts as extsd.

    The internal "sdcard" directory has an "Android" directory which has a "data" sub-directory, but nothing gets created in there during B4A bridge install.

    Sorry - I had a typo in my original post. it should have read /mnt/sdcard/Android/data
     
    Last edited: May 26, 2013
  20. agraham

    agraham Expert Licensed User

    Check that Settings -> Security -> Unknown sources is checked.
     
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