B4J Question [b4j] WaitFor and ResumableSub on Server Handler - devpialkt (first post)    Oct 25, 2017   (1 reaction) Woww.. thank you for your quick response...
solved .. with this https://www.b4x.com/android/forum/threads/resumable-subs-wait-for-sleep-in-server-handlers.81833/#content
:)... B4J Code Snippet Resumable Subs (wait for / sleep) in server handlers - Erel    Feb 16, 2020   (15 reactions) Resumable subs can only work when there is a message queue. By default, server handlers end when the Handle sub is completed. They do not create a message loop. If you want to wait for an event then you need to call StartMessageLoop and later StopMessageLoop. Example of handler that downloads a page and returns it as the response: Sub Handle(req As ServletRequest, resp As ServletResponse...: Use the correct library. OkHttpUtils2_NonUI for server apps and OkHttpUtils2 for UI apps. Above tip... B4A Tutorial [B4X] Resumable subs that return values (ResumableSub) - Erel    Aug 25, 2020   (41 reactions)   tags: wait, Comm, Code, B4X, Dialog ResumableSub, Wait For Button1_Click Dim rs As ResumableSub = Sum(1, 2) Wait For(rs) Complete (Result As Int) Log... wait for the resumable sub to complete then return Null from the resumable sub and set the type in...Remember that that a call to Sleep or Wait For in a resumable sub causes the code flow to return to... wait for the sub to complete and get the desired return value. Sub Button1_Click Wait For(Sum(1, 2.... In the calling sub, call the resumable sub with Wait For (<sub here>) Complete (Result... Share My Creation [B4J] [MySQL] [API] Server (Key + Token) and [B4X] User Login Apps - aeric    Aug 16, 2024   (39 reactions) database and tables in MySQL server. jAPI.zip - Source code for server app (B4J). B4A.zip - Source code for client app using default template (B4A) B4X.zip - Source code for client app using B4XPages template (B4A, B4i and B4J) Live server: https://api.puterise.com:17179 12 Jan 2021: Attached... Updates: Latest B4XPages user login client apps (using B4J server): https://www.b4x.com/android... share my B4J API server written in B4J. Compare to my previous PHP API, this API server implements... Share My Creation [Project Template] Web API Server v2 - aeric    Jan 16, 2025   (31 reactions) ://github.com/pyhoon/WebApiController-B4J Features: ApiHandler and WebHandler are used for routing... If you don't want to connect to any SQL database, see MinimaList API Server For older version... of DbName for SQLite in config.ini (change) Move code from ConfigureDatabase sub to Initialize sub in DatabaseConfiguration class (remove) Delete build configurations and code for Firebird, PostgreSQL and MS... tbl_categories (change) ServerConfiguration Update sub renamed to Finalize (change) better handling... Share My Creation [Project Template] Web API Server v1 - aeric    Jan 16, 2025   (67 reactions) , CSS, JS, Bootstrap) Support MySQL and SQLite database (Can be modified for MS SQL or SQL Express) Separate SQL queries file (queries-mysql.ini and queries-sqlite.ini) Sample database auto-generated for... Libraries folder. Open B4J and create a new project with "Web API Server" template. Give your... browser. To connect to MySQL server, go to Objects folder and open "config.ini". Comment... - Web API Server - v1.16 - Similar to Web API Template 2.0, it is now less confusing by using #Desc and... B4A Library [B4X] FTP Server implemented with Socket and AsyncStreams - Erel    Jul 18, 2022   (41 reactions)   tags: B4A B4J, FTP on the control port (main port). It also manages the connected clients and assigns a data port for... for each task that requires communication over the data socket (upload, download and list files). FTPDataConnection - An instance is created for each data task. It sends or receives the data and then...") 'user name and password. server.BaseDir = File.DirRootExternal server.Start SetPorts - Sets... B4i you also need to stop the server when the application moves to the background and start it again... B4J Tutorial [Server] Building web servers with B4J - Erel    Sep 1, 2021   (32 reactions)   tags: server, Erel "handlers" Support for GET, POST, DELETE and PUT requests Support for multipart requests (file uploads) Standard logging Each handler can either be multi-threaded or single-threaded Simple and... the Main module you should create a Server object, configure it, start it and call StartMessageLoop: Sub.... A handler class is responsible for getting the request and providing the response. Each request is handled.../ The server implementation is based on a popular and powerful Java server library named Jetty... B4A Library [B4X] XUI Views - Cross platform views and dialogs - Erel    Mar 19, 2025   (85 reactions)   tags: B4X XUI Views Dialogs, xui, XUI Views adds a timestamp to the bitmap. - B4XInputTemplate - Template for text and numeric inputs... False End Sub Sub Activity_Resume 'required to continue the animation after the activity.... - RequestFocusAndShowKeyboard method. V1.80 - B4XFloatTextField - Support for multiline fields and new...: TitleBarTextColor, TitleBarFont and ButtonsFont. See the signature dialog for an example (the buttons... configurations for numeric inputs (ConfigureForNumbers) V1.45 - B4XFloatTextField: - EnterPressed and... B4i Tutorial Creating a certificate and provisioning profile - Erel    Apr 25, 2025   (17 reactions) Don't panic! While this process can be a bit annoying it is not too complicated and you can always delete the keys and start from scratch (which is not always the case in Android). Note... a certificate and a provisioning profile. The certificate is used to sign the application. The provisioning... can be installed on. Edit: pay attention to the certificate and provision profile options selection in.../java/jdk-14.0.1.zip Tools - Build Server - Server Settings Tools - Private Sign Key - fill password... Page: 1   2   3   4   5   6   7   |