b4x

  1. D

    Android Question Ideas storing an app's global variables

    Hi, Guys Scanning through the forum it appears that (using V4B 8.3+) it is OK to define global variables in the Starter Server (in the sub Process_Globals) as it will not be removed by the OS whilst the App is running, Question - is that correct? Also, would I be safe to store global variables...
  2. D

    Android Question B4X Cross platform AddMenuItem

    Hi Guys I am trying to convert a project which runs on both B4A and B4I to be cross platform. I have started with converting the B4A, but hit a query. How do I deal with AddMenuItem - I am trying to move as much code as possible to X-platform class as suggested by Erel in...
  3. J

    Android Question B4x Best Practice for downloading and parsing Objects

    This is a generic question about the responsibility of a class in downloading and parsing it's own members and if this is considered good practice. I have a now large program that downloads multiple objects from the internet and saves them into lists I am trying to keep my main class as "clean"...
  4. W

    B4J Tutorial Raspbee - RPi Zigbee home automation with B4X

    Introduction: The Raspbee (or Conbee, which is the USB version - the information here will only refer to the Raspbee) from Dresden Elektronik (https://shop.dresden-elektronik.de/raspbee.html, also available elsewhere, e.g. on Amazon) is a Zigbee (https://www.zigbee.org/) radio board for the...
  5. MarkusR

    Wish B4XPreferencesDialog

    i think this PreferencesDialog is great for collecting data. nice to have would be a image selector (example for a user image) select from an image list (product from products) measurements L x W x H/ dimensions in meter or cm weights in kg rating 1-5 stars
  6. trejocode

    Android Question [SOLVED] Two B4XTables on Android causes a error?

    Hi all, i use 2 B4XTables in the same project, and i get a error referented to SQLite. Has anyone had a similar experience?Has anyone had a similar experience? The error: Error occurred on line: 601 (B4XTable) android.database.sqlite.SQLiteException: near ")": syntax error (code 1): , while...
  7. K

    B4A Class [B4X] myPopup popup menu (B4A/B4i)

    Here's a small class which produces a simple popup menu anchored to a view. It works in B4A and B4i currently. I've attached projects to show how it is used. Enjoy. [Edit] New version 1.1 has better support for popup menus inside (nested?) scrollviews.
  8. Alejandro Moyano

    Android Question [SOLVED] When i PUT a JSON the server responses bad request

    Hi im working on a Flask restfull API for a Android App, as is my first android client i having troubles with a PUT request, i send the json but the server responces bad request, the reason: the backend can't parse the json. I printed it on the log an paste it on "Postman" and its work very...
  9. Mashiane

    Pity the IDE is in Windows Only....

    Ola So this was a response to a tweet I made that B4X always comes top!!! Well I was forced to upgrade my laptop to win 10 after being comfortable in win7 fpr a very long time and the only reason im using a windows laptop is due to b4x. It is a logical thing for win though due to costs...
  10. Star-Dust

    B4A Library [B4X] [XUI] SD XUIScrollView2D

    I develop the XUI version of the ScrollView2D library that created @Informatix. I did not base myself on its code but developed everything from scratch. It is still unripe, but it works well and is not very heavy. Clearly for iOS already the native ScrollView is 2D as well as for Desktop...
  11. Star-Dust

    B4J Library [B4X] [XUI] SD ElasticTrimmer

    SD_ElasticTrimmer Author: Star-Dust Version: 0.04 ElasticTrimmer Events: Change (Value As Int) Functions: DesignerCreateView (Base As Object, Lbl As Label, Props As Map) Base type must be Object GetBase Initialize (Callback As Object, EventName As String) Invalidate RemoveViewFromParent...
  12. M

    Android Question [SOLVED] KeyPress Event Unmanageable

    Hi, everyone, i'm coding an app, and i wanted to do it graphically catchy, so i designed my own msgBox in the designer, and i display it using the custom B4XDialog and loading the layout i did. Now, the problem is that it doesn't aumatic handle the KeyPress Back event, so you have to do it...
  13. MarkusR

    Android Code Snippet time switch class

    Class Name TimeSwitch 'time switch Sub Class_Globals Type HourSettings(q1 As Boolean,q2 As Boolean,q3 As Boolean,q4 As Boolean) Private DaySettings(24) As HourSettings '0 to 23 End Sub 'Initializes the object. You can add parameters to this method if needed. Public Sub...
  14. uniplan

    Android Question change color of input dialogs (B4XInputTemplate)

    Hi. i use the input dialogs (B4XInputTemplate) https://www.b4x.com/android/forum/threads/b4x-input-dialogs-with-xui-views.101197/ how i can change the color of dialog?(background and color of header) thank you
  15. Alexander Stolte

    B4A Library [B4X] AS Views Overview

    AS Animated Counter AS MsgBox AS PinLock AS Placeholder AS Button Slider AS Floating Loading Button AutoTextSizeLabel AS Sliding Circles (Loadingview) AS Ripple View AS Gradients Panel AS Color Chooser AS Draw AS View Pager Have fun :)
  16. aeric

    Android Code Snippet [B4X] XUI Views - Time Dialog

    I want a better dialog for time input so I created this time (picker) dialog using B4X XUI Views and IME library. I think the code has too many lines. Hope someone can simplify or improve it. Note: I haven't tested but I think this code can also work for B4i and B4J. Update: I have tested with...
  17. luc-dev

    B4J Question [B4X] XOR string encoding/decoding

    Hi, I am trying to write XOR encoding/decoding for B4X (I need to use it as a light weight and fast encoding/decoding cross plateforme solution with B4I, B4A, B4J and Lazarus/FPC). I know XOR is not the best/strongest encryption solution but it should be ok for my needs). The following code...
  18. netkomm

    B4X : Some suggestions and ideas for Erel

    Hi Erel, I have some suggestions about B4X and, given that for necessity I had to move away from B4A/B4I and jump ship to Ionic and soon Flutter, this is my feedback I can offer so that B4X could be a valid alternative to those environments especially for many of us who are a 1 man show and...
  19. KMatle

    B4R Tutorial [B4x]: Exchange AES-256 encrypted messages between ESP32 and B4x

    This is about how to exchange AES256 encrypted messages incl. generated IV (initialization vector) between a ESP32 and B4x. Notes: - the ESP uses AES/CBC/NoPadding. The data must be padded (must have a length which is a multiple of 16). I've used a length of 256 to to get there (instead of...
  20. W

    Tool B4Xxref: cross-reference your projects with libraries and modules

    Before making a change to a shared module that I often use, I wanted to assess the projects it would impact. Windows Search is one option of course, but not one I find very practical in this case - time for B4Xxfref. Select the folder you want analysed (subfolders are inspected as well); the...
Top