B4AServer files

Discussion in 'Old Libraries Archive' started by Erel, Jun 13, 2011.

  1. Erel

    Erel Administrator Staff Member Licensed User

    The files for B4AServer are available here.
    See this link for more information about B4AServer:
    http://www.basic4ppc.com/forum/basi...ise-house-android-applications.html#post53629

    The device project includes a simple example which downloads an image and sets it as the activity background, uploads a file to the server and runs a Dir command.

    Don't forget to set ServerName to some unique string in the device code and desktop configuration.

    Versions

    B4AServer-Desktop: 0.92 (appears when you run the server)
    B4AServer-Device: 0.92 (appears at the top of B4AServer and B4AServerService modules)

    Files were updated with the new board server link.
     

    Attached Files:

  2. Erel

    Erel Administrator Staff Member Licensed User

    The device code was updated to v0.92. This version add support for working with the emulator and fixes an issue with tasks being immediately cancelled in some cases.

    To use the emulator you should open the command line (Run - Cmd), go to the Android sdk tools folder and run:
    Code:
    adb -e forward tcp:7890 tcp:7890
    The folder path should be similar to: C:\Program Files (x86)\Android\android-sdk-windows\platform-tools
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    B4AServer-Desktop was updated to v0.92. This update fixes an issue with downloaded files not being unlocked which later made it impossible to delete them without stopping the server.
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    The files were updated and now point to the new board server URL.
     
  5. AlfredoJn

    AlfredoJn New Member

    Do not let me download files. :sign0085:
    There is a problem?

    regards

    Fredy
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    These files are only available for users who bought Basic4android. If you have already bought Basic4android, please contact support@basic4ppc.com.
     
  7. AlfredoJn

    AlfredoJn New Member

    Ok, thank you
     
  8. sleeproom0001

    sleeproom0001 Member Licensed User

    Can send a B4AServer-Desktop and B4AServer-Drive code for me?

    Can send a B4AServer-Desktop and B4AServer-Device code for me?
     
  9. Erel

    Erel Administrator Staff Member Licensed User

    It is attached to the first post.
     
  10. jeronimovilar2

    jeronimovilar2 Member Licensed User

    Shell.execute

    Hi,
    i´m trying to execute the printform.exe (VB code) using my android fone.

    No database, so no configure the boardurl (PHP)

    i configured the config.properties with:
    servername=dell1320

    Shell.Dir=cmd.exe /c dir files

    log for DIR:
    task=1 completd. Success=false.

    why??
     
  11. Erel

    Erel Administrator Staff Member Licensed User

    There should be a Message section in the logs. Is it empty?
     
  12. jeronimovilar2

    jeronimovilar2 Member Licensed User

    help

    i´m trying to use the b4aserver to execute a program (.exe) on desktop (local network). when i test a dir command with example....

    ----------------------------------------------------------
    log (btnShellDir):
    ** Activity (main) Create, isFirst = true **
    ** Activity (main) Resume **
    ** Service (b4aserverservice) Create **
    ** Service (b4aserverservice) Start **
    Server not connected. Calling board web service.
    Error connecting: org.apache.http.conn.HttpHostConnectException: Connection to http://127.0.0.1 refused
    Connected = false
    Task=1 completed. Success=false, Message=Task cancelled
    ---------------------------------------------------------
    configure.properties:
    #This is the unique server name you choose.
    ServerName=dell1320
    #Folder for files that can be downloaded to a device
    InputFolder=files
    #folder for uploaded files
    OutputFolder=files
    #number of devices that can connect at the same time
    WorkerThreads=5
    #link to the board server
    BoardUrl=http://127.0.0.1/B4AServer/b4a_server.asp
    #Interval measured in seconds. The desktop server polls the board server every x seconds.
    CheckInterval=5
    #list of shell commands
    Shell.Print="c:\\program files\\PrintHTML\\printhtml.exe" printername="novapdf" header="" footer=""
    Shell.Dir=cmd.exe /c dir c:\ files
    --------------------------------------------------------------

    what is the error? sorry my english (from brazil)
    :BangHead:
     
  13. Erel

    Erel Administrator Staff Member Licensed User

    127.0.0.1 is the "localhost" ip address. On the device it points to the device not the PC.
     
  14. alienhunter

    alienhunter Active Member Licensed User

    Hi ,
    the desktop server seems to crash on windows 8 or it is just me ?
    anyone
    thanks AH
     
  15. Erel

    Erel Administrator Staff Member Licensed User

    Which error do you get?

    As it is based on Java it should work on any platform with Java installed.
     
  16. alienhunter

    alienhunter Active Member Licensed User

    none it would not even start , the same error that i have with FX (dbutils) just flashes for a sec and then comes
    the error if i want to send a report (32 bit java or 64 bit)
    ... but the FX smiley works with 32 bit java and again the smiley will not work on 64 bit java
     
  17. Erel

    Erel Administrator Staff Member Licensed User

    Run the batch file from the command line. You should see an error message.
     
  18. Eugenio Serrano

    Eugenio Serrano Member Licensed User

    Hi All,

    I want to know the Last Versión Number of B4AServer, and if it is available for download...

    Thanks in advance.
     
  19. Erel

    Erel Administrator Staff Member Licensed User

    It is attached to the first post.

    I don't recommend using B4AServer for new projects.
     
  20. fragger86

    fragger86 Member Licensed User

    Hi Erel,
    I get this error while compiling b4aServer_device...why?
     

    Attached Files:

    • Err.jpg
      Err.jpg
      File size:
      286.4 KB
      Views:
      10
Loading...