Contrast Background and text colors [B4X]
If you have an app in which the user can change the background colour you need to be able to change the text colour of controls accordingly. I found a code snippet that returns black or white depending on the luminosity of a colour which seems to do the trick
@stevel05 · 2020-01-13
LED Matrix [B4x]
This is a Custom view b4xlib that I created to add to my LogServer, I though it may come in handy for other purposes so I''d share it here. You can have any number of channels (Rows) and a practical limit of 32 LED''s (Columns) per channel as the state for each channel is stored in an Int, which is a 32 Bit variable. If you really want more you can change the State variable to a Long and then get up to 64. It will help if you know, or are willing to learn, how to manipulate bits with the Bit Command.
@stevel05 · 2019-12-20
Google Geocoding REST API [B4X]
Google Geocoding REST API [B4X]
@Erel · 2019-12-12
MineXML Auto create Class and b4xlib [B4x]
A B4j tool that started out as an XML viewer based on the XML2Map lib, but quickly changed into a parser and Class and library creator. I wanted to improve my knowledge of XML files, and this is the result. The resulting code and libraries should be cross platform, Tested on B4j and B4a and should work on B4i. What it does: - Extract XML keys from an XML file - Merge multiple files to extract keys - Allows adding friendly names for the keys - Creates a class to access the selected keys from an XML file using the assigned friendly names (or tags from the XML if not defined) - Export the class as a b4xlib - Warn if a key is present in an XML file that is not recognised. (Optional)
@stevel05 · 2019-11-26
B4XDrawer touch dismiss when GestureEnabled is false [B4X]
I''m not sure if this is a feature of not, but I noticed that if the GestureEnabled flag is set to False, touching on the dark part of the screen ''outside'' of the drawer does not dismiss the drawer.
@Andrew (Digitwell) · 2019-11-13
UUID version 4 Generator [B4X]
UUID version 4 Generator [B4X]
@mcqueccu · 2019-10-31
GUID [B4X]
How to generate a GUID
@Erel · 2019-10-31
Check if color is dark or light [B4X]
Check if color is dark or light [B4X]
@Alexander Stolte · 2019-10-13
Adding accessibility text to objects [B4X]
Turning on the screen reader in iOS and Android will automatically read out labels and text strings, but it does not work for other items such as button which only have an image in them. To do this you need to add accessibility text. Here is a cross platform way of doing that. This works for B4i & B4A only. It seems that iOS allows accessibility text on all objects, e.g. polygons on Google Maps, whilst Android only allows it for views.
@Andrew (Digitwell) · 2019-10-11
convert seconds to ticks [B4X]
convert seconds to ticks [B4X]
@Alexander Stolte · 2019-08-09
B4R Ints to B4A and B4J Ints
B4R Ints to B4A and B4J Ints
@rodmcm · 2019-07-12
FirebaseRealtimeDatabase [B4X]
A module that makes it easy to communicate with a Firebase RealtimeDatabase using their REST API.
@nobbi59 · 2019-06-17
Code to extract the paths of the src attribute in all tags of a HTML document [B4X]
Code to extract the paths of the src attribute in all tags of a HTML document [B4X]
@fredo · 2019-05-22
Change
Change
@fredo · 2019-04-30
XUI Views - Time Dialog [B4X]
XUI Views - Time Dialog [B4X]
@aeric · 2019-04-19
Convert English numbers to Arabic or Persian
Convert English numbers to Arabic or Persian
@somed3v3loper · 2019-04-04
Daylight Saving Time for Israel [B4X]
Daylight Saving Time for Israel [B4X]
@derez · 2019-03-30
RSA Encrypt and Decrypt [B4X]
I build a auth method for my app to protect my API and one of this step is to signed requests to the api to ensure that every request comes from my app. RSA is the best method for that, because this is not a hash, so that the same input is ever the same output. The API knows the Private Key, the apps knows the public key.
@Alexander Stolte · 2019-03-23
B4XTable - Delete Row [B4X]
B4XTable - Delete Row [B4X]
@Erel · 2019-03-11
CallSub with ANY number of parameters
CallSub with ANY number of parameters
@narek adonts · 2019-03-09
easy and fast list choices [B4X] [XUI]
I needed some easy and multiplatform access to option choices. This small lib, based on XUI Views (B4XDialog and B4XListTemplate) seems to work. You have to define a object like ''dlg'' once and than you can ask the user for choices in just one line.
@skrjabin · 2019-03-06
Change the OK-Cancel buttons order in B4XDialog [B4X] [XUI]
OK-Cancel or Cancel-OK, what to prefer in dialogs? It depends on the guidelines and it should be flexible. That''s why I did this small modification in the B4XDialog library and I hope, that something like that could be integrated in the official one.
@skrjabin · 2019-03-04
DownloadAndSave [B4X]
This is a slightly modified sub based on the code from: [B4X] OkHttpUtils2 with Wait For. Call it when you want to download a file and save it. You can wait for it to complete if needed.
@Erel · 2019-02-12
Canadian / USA Postal Zipcodes [attached]
The attached files contain Canadian postal codes and US zip codes - for each region.
@Harris · 2019-01-21
Get subscribed Firebase Topics From Firebase [B4X]
The following code will help get the topics a firebase token is subscribed to. It will send a request to Firebase and ask for the reply. The reply is in a JSON file.
@aaronk · 2019-01-11
CopyFolder [B4X]
A recursive sub that copies a complete folder.
@Erel · 2019-01-10
MQTT SSL and Self Signed Certificates [B4X]
There are two client libraries: jMQTT for B4A and B4J and iMQTT for B4i. Both libraries support SSL connections. You just need to change the URI scheme to ssl:// instead of tcp://
@Erel · 2019-01-01
xCustomListView Pull To Refresh [B4X]
You can use this code to add a pull to refresh feature to the standard xCustomListView. The code should be added to the activity.
@Erel · 2018-10-16
Easy dis-/enabling views (by condition) [B4x]
Easy dis-/enabling views (by condition) [B4x]
@KMatle · 2018-09-21
Get time ago from datetime [B4X]
Convert example 2018/2/2 4:4:23 to 3 minute ago or moment ago
@Pooya1 · 2018-09-05