B4X Forum
615 FOLLOWERS
B4X is a programming language and a set of cross-platform RAD development tools that allow complete beginners, citizen developers, and professionals to build real-world Android, iOS, and desktop solutions. Get tutorials and examples on Andriod development, share useful code snippets, and discuss bugs and missing features.
B4X Forum
1h ago
Hi,
New to B4J. I have set-up the IDE with dark mode dracula theme.
However, there is a bright blue status bar at the bottom that says
"B4J-Bridge: Disconnected". Right clicking on it & selecting Hide does nothing.
How do I get rid of it since only trying out desktop apps for now?
Thanks
Guy ..read more
B4X Forum
5h ago
I get an error running the ExoPlayerTest.b4a. I added the library and also downloaded additional library.
B4A Version: 12.80
Parsing code. (0.00s)
Java Version: 14
Building folders structure. (0.50s)
Compiling code. (0.02s)
Compiling layouts code. (0.04s)
Organizing libraries. (0.21s)
(AndroidX SDK)
Compiling resources (4.70s)
Linking resources (2.52s)
Compiling generated Java code. (8.99s)
Finding libraries that need to be dexed. (0.02s)
Dex code (13.03s)
Dex merge Error
Error in D:\Android\tools\..\extras\b4a_local\unpacked-guava-31.0.1-android-63849005171689\dex_v1\guava-31.0.1-android.z ..read more
B4X Forum
12h ago
While taking my shower, the idea strikes in my mind. I can already think of the wonderful features.
Can work without Internet
Multiple terminals
Web technologies
Can host as SaaS
One server, clients does not need upgrade new version frequently
Multiple screens
Kitchen screen
Queue screen
Back office screen
Cashier screen
Hardware sharing ..read more
B4X Forum
12h ago
I created a page using an html/js framework (https://aframe.io).
I will create an application from the html page.
It turns out that the framework expects a server serving the page, as it uses relative paths, otherwise it won't work.
To create the server I will use a third-party app (https://play.google.com/store/apps/details?id=com.phlox.simpleserver).
Would it be possible to create a server using B4A itself, so that I don't depend on a third-party app ..read more
B4X Forum
14h ago
I am trying, since a few weeks, to develop a B4A application to consult the real time price of stocks. The best results have been obtained using the TestjSoup project published by Erel. I modified the code under the btnLoadFromURL button to connect the Yahoo page first and Zacks page finally, and the process runs very well. I added an edittextbox (tx_tkt) to enter the ticket code of the stock to be consulted and three labels to show the three values generally desired: price, day change and % of change.
When I click the btnLoadFromURL button, the program sends the url and the ticket stock code ..read more
B4X Forum
15h ago
[B4X] Supabase - The Open Source Firebase alternative
Supabase is an open source Firebase alternative. It provides all the backend services you need to build a product. Supabase uses Postgres database with real-time capabilities. Basically, supabase provides an interface to manage postgres database that you can use to create table and insert, edit...
www.b4x.com
Supabase now supports anonymous user login, the B4X library now too.
Supabase Auth now supports Anonymous Sign-ins
Sign in as an anonymous user to authenticate with Supabase
supabase.com
Create and use anonymous users to auth ..read more
B4X Forum
15h ago
I needed one function for all 3 platforms.
B4X:
Private Sub GetPackageName As String
#If B4A
Return Application.PackageName
#Else If B4I
Dim no As NativeObject
no = no.Initialize("NSBundle").RunMethod("mainBundle", Null)
Dim name As Object = no.RunMethod("objectForInfoDictionaryKey:", Array("CFBundleIdentifier"))
Return name
#Else If B4J
Dim joBA As JavaObject
joBA.InitializeStatic("anywheresoftware.b4a.BA")
Return joBA.GetField("packageName")
#End If
End Sub ..read more
B4X Forum
15h ago
Hello everybody,
I would like to inform you right away that I am a complete layman when it comes to networks. My knowledge in this area is limited.
I was studying FCM and, through research on the forums and the responses I received to a post (https://www.b4x.com/android/forum/threads/about-fcm.160392/) I set up a server in B4J with the examples from Erel (https://www.b4x.com/android/forum/threads/b4x-firebase-push-notifications-2023.148715/) and Alexander Stolte(https://www.b4x.com/android/forum /threads/firebase-service-server-example.91191/).
To send the push message, in B4A, I use the foll ..read more
B4X Forum
16h ago
I've tried the old socket example.
All goes correctly with debug, but when i go to the release mode, the app break and give me this exception.
(NetworkOnMainThreadException) android.os.NetworkOnMainThreadException
Timer Tick:
Sub Timer1_Tick
Dim BC As ByteConverter
If InputStream1.BytesAvailable > 0 Then
Timer1.Enabled = False
Dim buffer(8192) As Byte
' 'raf.Initialize3(buffer, True)
Try
InputStream1.ReadBytes(buffer, 0, buffer.Length)
Catch
Log(LastException)
End Try
' Dim s As String=BC.StringF ..read more
B4X Forum
16h ago
Hi everybody.
Is it possible to create text in an label with several text colors?
Ans once this text has been written where can I reset the text color to default in source code?
THANKS ..read more