B4A Tutorial [java] Creating libraries for B4A - Erel    Sep 29, 2016   (8 reactions)   tags: Java library, Library, Creation required as the libraries are regular Java libraries. Knowledge required: - Java - Android main.... Creating a new project: 1. Create a new Java project (not Android project). 2. Add a reference to.... Activity objects cannot be declared in Sub Process_Globals (as this would cause a memory leak... inside the java classes. You should use regular javadoc style comments to document methods, fields and..." to generate the XML file. Choose Project - Generate JavaDoc. http://www.b4x.com... B4A Code Snippet Draw on top of other apps permission - Erel    Sep 5, 2023   (18 reactions) As JavaObject settings.InitializeStatic("android.provider.Settings") Dim ctxt As JavaObject ctxt.InitializeContext If settings.RunMethod("canDrawOverlays"... As JavaObject = GetBA ion = jo.CreateEvent("anywheresoftware.b4a.IOnActivityResult"... Sub Private Sub GetBA As Object Dim jo As JavaObject = Me Return jo.RunMethod("getBA"...: AddPermission(android.permission.SYSTEM_ALERT_WINDOW) Depends on: JavaObject and Phone libraries.... B4A Question B4A 6.80 UNEXPECTED TOP-LEVEL EXCEPTION - Marko Druskovic    Mar 1, 2017 . (0.54s) Compiling generated Java code. (2.13s) Convert byte code - optimized dex. Error UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added: Lokio/AsyncTimeout$1; at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:122) at com.android.dx.dex.file.DexFile.add(DexFile.java:161) at com.android.dx.command.dexer.Main.processClass(Main...:179) at com.android.dx.command.Main.main(Main.java:103) 1 error; aborting... Bug? iTopNotification cutted out [Library] - Mike1970    Dec 6, 2019 Hi, I tried out the iTopNotification Library. The problem is that for the iPhones with the notch, the notification is showing cutted out: 86135... B4J Code Snippet Fix for error: Cannot invoke "java.lang.ref.WeakReference.get()" because "wfe.senderFilter" is null - Erel    Aug 18, 2025   (2 reactions) This error is a bit tricky. It happens when multiple resumable subs are waiting for events with the same name, some with sender filter set and others without. This code reproduces this error: 'Call both subs in this order: t2 t1 Private Sub t1 Dim job As HttpJob job.Initialize("", Me) job.Download("https://www.b4x.com") Wait For (job) JobDone(job As HttpJob) 'with sender filter If job.Success Then Log(job.GetString) End If... Share My Creation [Web][SithasoDaisy] Revolutionize Your Ride: The Ultimate Vehicle Expense Tracker App using Api Key Secure MySQL REST API on top of HTTPS - Mashiane    Apr 30, 2024   (2 reactions) . Security is our top priority, which is why our app utilizes a secure API key authentication process..., our app helps you stay on top of your spending. Expense Types: Easily categorize your expenses based...-webapps-using-api-keys-on-top-of-https.160849/#content https://www.b4x.com/android/forum/threads/web-sithasodaisy-secure-crud-mysql-rest-api-web-app-using-api-key-on-top-of-https.160854/#content... B4A Question Error - UNEXPECTED TOP-LEVEL EXCEPTION: - Watchkido1    Jun 11, 2015 code. (0.00s) Generating R file. (0.54s) Compiling generated Java code. (4.21s) Convert byte code - optimized dex. Error UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.NullPointerException at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:217) at com....command.Main.main(Main.java:106) UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.NullPointerException....dx.command.Main.main(Main.java:106) 2 errors; aborting... B4A Tutorial Inline Java Code - Erel    Feb 24, 2022   (171 reactions)   tags: Code, Java, inline java code and add them at the top of the class. The Java code will be added at the end of the class. Right...The next versions of B4A (4.30) and B4J (2.80) will allow you to embed Java code inside your... to access third party SDKs and also to allow developers to add existing Java code snippets to their projects. Adding Java code is done with an #If Java block: #If JAVA public String FirstMethod() { return "Hello World!"; } #End If You need an instance of JavaObject to access... B4A Question [solved] java.lang.OutOfMemoryError: Java heap space - angel_    Mar 17, 2019 After an update I get this error UNEXPECTED TOP-LEVEL ERROR: java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOfRange(Arrays.java:3664) at java.lang.String.<init>(String.java:207) at com.android.dx.rop.cst.CstString.utf8BytesToString(CstString.java:158) at com.android.dx.rop.cst.CstString.<init>(CstString.java:200) at com.android.dx.cf.cst...) at com.android.dx.command.dexer.Main.access$3(Main.java:773) at com.android.dx.command.dexer... B4J Tutorial Run B4J java and javafx UI Applications on Linux ARM32, ARM64 & Intel/AMD Computers and VPSs - aminoacid    Jan 10, 2025   (18 reactions) : Have tested it on Raspberry Pi 4 and Orange Pi Zero 3, 2W running Ubuntu 21.04 and 22.04... openjfx STEP 2: Find out where openJfx is installed dpkg-query -L openjfx NOTE: ..... should be installed in /usr/share/openjfx STEP 3: Install OpenJDK11+ JRE (or whatever version the default JRE is) and check version sudo apt install default-jre sudo java -version STEP 4: Run Program sudo java -jar --module-path /usr/share/openjfx/lib --add-modules javafx.controls yourB4Jprogram.jar... Page: 1   2   3   4   5   6   7   |