Share My Creation B4A-Bridge-Relay, by 12Lab : deploy apk from B4A IDE to many targets; status; progress; B4A-Bridge

Discussion in 'Share Your Creations' started by mr23, Jan 6, 2014.

  1. mr23

    mr23 Active Member Licensed User

    As we all know, to test several devices requires cycling a B4A-IDE through the multiple android devices, and waiting each time to deploy the apk to the target device. I modified the B4A-Bridge to add a 'relay' function, to simultaneously deploy to 1 or more additional devices running a B4A-Bridge. Just program the IP addresses (or address range) of the other devices into the -Relay, then connect the IDE to the device with the -Relay. The 'downstream' device 'Bridges' can be Erel's standard issue, or this B4A-Bridge-Relay, as desired. More info at the link below. This has saved me quite a bit of time and hassle testing multiple devices and multiple device apps.

    Other additional features have been added:
    • can temporarily bypass the relay function, and re-enable it as desired
    • gives indication that apk transfer started, and progress of transfer
    • displays a 'Heartbeat' metric, which gives an indication of the connection condition, and is colorized for quick-glance feedback
    Available at: Google Play, B4A-Bridge-Relay from 12Lab, and now in -Free

    If you just want to add the transfer progress feature yourself, see http://www.basic4ppc.com/android/forum/threads/b4a-bridge-source-code.8153/page-2#post-212716.

    This version still retains Bluetooth connectivity.

    -Free Updated 2014/12/21 to v2.12.11: updated with several fixes and the PHONE_READ_STATE permission was removed (it was used in the past to show the device id)
    -Free Updated 2014/09/12 to v2.10.10: Improved layout.
    -Free Updated 2014/07/27 to v2.10.9: Changed "Wake Lock" behavior.
    -Free Released 2014/06/29 Added -Free "Ads" supported version, so there is no direct cost to try -Relay.

    Updated 2016/12/28 to v2.20.37: Added Themes, FTP Service.
    Updated 2014/06/28 to v2.10.7: Added "Wake Lock", keep the device from sleeping, while UI is up.
    Updated 2014/02/13 to v2.10.6: Added several enhancements.
    Updated 2014/02/09-10 to v2.10.4-5: Enhancements; two bug fixes.
    Updated 2014/01/28 to v2.10.3. Added a new feature.
    Updated 2014/01/08 to V2.10.1. Fixes two issues.
    Updated 2014/01/11 to V2.10.2. Fixes one issue, and releases an enhancement.
    More information at: http://themr23.wordpress.com/2014/01/04/b4a-bridge-relay-by-12lab/.
     

    Attached Files:

    Last edited: Jan 2, 2017
    Peter Simpson likes this.
  2. Erel

    Erel Administrator Staff Member Licensed User

    1. You posted a WebP image. It will only show in Chrome.
    2. The thread thumbnail is updated every 24 hours (and when you first create the thread). It will appear tomorrow.
     
  3. moster67

    moster67 Well-Known Member Licensed User

    I have many devices: S3, Nexus7, Acer Iconia, HTC HD2 and some other low-end devices

    but Google Play Store says:

    "This app is incompatible with ALL of your devices." :confused:

    Have you restricted the app to certain regions/languages or have you added some other restrictions? It seems strange it will not be compatible with at least one of my above cited devices?
     
  4. mr23

    mr23 Active Member Licensed User

    Initially I added it with US only distribution. An hour or so ago I turned on world-wide. It may take another hour or two to update on the servers.
     
    moster67 likes this.
  5. mr23

    mr23 Active Member Licensed User

    Updated 2014/01/28 to v2.10.3. Added a new feature where a range or wildcard can be used in the last IP address segment when adding client(s).
     
    Last edited: Feb 10, 2014
  6. mr23

    mr23 Active Member Licensed User

    Updated 2014/02/9-10 v2.10.4-5: Enhancement; Bug Fixes

    In some modes, such as Portrait, the Phone keyboard is used, to make it easier to enter addresses.
    Keyboard is now auto-displayed when adding a client. IP entry has validation.

    When IP address range and wildcard was added, the ability to enter a standard IP address was broken (v2.10.3). This is now fixed.
    2.10.4 did not accept IP address segments with value of 0. Fixed.
     
    Last edited: Feb 13, 2014
  7. mr23

    mr23 Active Member Licensed User

  8. mr23

    mr23 Active Member Licensed User

    I've had a request for wake lock. Any other requests before I start a sprint?
     
  9. mr23

    mr23 Active Member Licensed User

    Wake lock added.
     
  10. mr23

    mr23 Active Member Licensed User

    Added "-Free" (Ads supported) version, so there is no direct cost to try -Relay.
    Please be aware it uses 5+Mb of space, versus <0.3Mb for the low cost version.
     
    Last edited: Jul 15, 2014
  11. mr23

    mr23 Active Member Licensed User

    "-Free" Updated 2014/07/27 to v2.10.9: Changed "Wake Lock" behavior; The lock is no longer released when the Activity is paused. Use the Exit button to release the lock and exit the application. This is to fix a Compile/Run deployment issue, the android may go to sleep when B4a-Bridge-Relay-Free is paused to switch to installation.
     
  12. mr23

    mr23 Active Member Licensed User

    Upgraded to a domain/hosted site, future documentation and support will be updated at http://the12Lab.com/
     
  13. mr23

    mr23 Active Member Licensed User

    -Free Updated 2014/09/12 to v2.10.10: Improved layout.
     
  14. sorex

    sorex Expert Licensed User

    does this still require the "click ok to install apk" "feature" ?
     
  15. Erel

    Erel Administrator Staff Member Licensed User

    It is not possible to install applications on Android without this dialog (with one exception which is in USB debug mode).

    If you are deploying in rapid debug mode then in most cases a full installation is not required and you will not need to click on anything.
     
    Peter Simpson and mr23 like this.
  16. sorex

    sorex Expert Licensed User

    it's just that the pcb of my tablet has been shifted a bit in the case so my usb cable comes lose all the time.

    so I am looking for a network based alternative without too much hassle.

    so this or your original will work fine once the app has been confirmed once?
     
  17. sorex

    sorex Expert Licensed User

    just tried it and even in rapid debug I need to press 3 buttons (overwrite, install, open) when I restart the app with the red rounded arrow.
     
  18. Erel

    Erel Administrator Staff Member Licensed User

    In most cases a full deployment is not required (and the compilation window is green). If a full deployment is required then you will need to manually approve it.
     
    mr23 likes this.
  19. mr23

    mr23 Active Member Licensed User

    Thank you for answering, Erel.

    For basic usage (ie, compatible with B4A-Bridge) it operates the same as the original.
     
  20. sorex

    sorex Expert Licensed User

    according to forum user Mike there are ways to install over wifi without extra clicks, but the device has to be rooted.
     
Loading...