B4A Question Beta 3.8 JavaObject CreateEvent / CreateEventFromUI - stevel05    
May 10, 2014I am trying to play with the JavaObject CreateEvent, it seems that there is a parameter missing from the signature. The help has an extra parameter: TargetMethod which can't be entered....
link: Thanks Erel. That worked great....
link: You should load it to an empty panel....
link: Thanks Erel. I tried to follow your suggestion. I created the XML file and could load it correctly...
B4A Code Snippet Tips regarding JavaObject and R8 optimizer - Erel    
Oct 1, 2026   
(6 reactions).CreateEventFromUI("com.google.android.gms.ads.nativead.NativeAd.OnNativeAdLoadedListener"... wrote by myself):
builder.CreateEventFromUI("com/google/android/gms/ads/nativead/NativeAd...
B4A Code Snippet Add image to Gallery Android 5 - 10+ - Erel    
Oct 12, 2026   
(18 reactions) = MediaScannerConnection.CreateEventFromUI("android.media.MediaScannerConnection.OnScanCompletedListener"...))
Wait For ScanCompleted_Event (MethodName As String, Args() As Object)
Log(Args(0...
B4A Tutorial Accessing third party Jar with #Additionaljar and JavaObject - Picasso - Erel    
Jan 19, 2026   
(27 reactions) with a callback event that is raised when download completes.
The first step it to create the interface. This is done with JavaObject.CreateEvent (or CreateEventFromUI).
In this case we.../Callback.html
Dim callback As Object = jo.CreateEvent("com.squareup.picasso.Callback"... image with callback
Dim jo As JavaObject = GetPicasso
Dim callback As Object = jo.CreateEvent... then it will be easier to create a wrapper.
As an example we will use Picasso image downloader to...
Java Question How get activity context on a class module (compile to library) - Douglas Farias    
Jul 12, 2020.CreateEventFromUI("com.startapp.sdk.adsbase.adlisteners.AdEventListener", "AdListenerInterstitial", Null)
AdDisplayListener = StartAppAd.CreateEventFromUI("com.startapp.sdk.adsbase... As Object
Private EventGeneral As String
End Sub
Public Sub Initialize(EventName As String, AppKey As String, testMode As Boolean)
EventGeneral = EventName
If Not(ctxt.IsInitialized... AdListenerIntersticial_Event (MethodName As String, Args() As Object) As Object 'EVENTOS DO BANNER...
B4J Question Google Map error - Declan    
May 30, 2024I use the following code to load the Google Map:
Sub GMap_Ready
Private joGMap As JavaObject
joGMap = GMap
Dim event As Object = joGMap.CreateEventFromUI("com.lynden.gmapsfx.javascript.event.UIEventHandler", "MouseMove", Null)
joGMap.GetFieldJO("map").RunMethod("addUIEventHandler", Array("mousemove", event))
GMap.MapType = GMap.MAP_TYPE_TERRAIN
Dim cp As CameraPosition
cp.Initialize(-25.79886055, 28.32487679...
B4J Question jGoogleMaps - Drag/Drop Marker Events - TILogistic (first post)    
Jul 15, 2023events on the map
Dim jo As JavaObject = gMap
Dim event As Object = jo.CreateEventFromUI..., event))
Dim event As Object = jo.CreateEventFromUI("com.lynden.gmapsfx.javascript.event....CreateEventFromUI("com.lynden.gmapsfx.javascript.event.UIEventHandler", "MouseDown"...
link: ))
Dim event As Object = jo.CreateEventFromUI("com.lynden.gmapsfx.javascript.event.UIEventHandler...
link: mouse event
Dim jo As JavaObject = gmap
Dim event As Object = jo.CreateEventFromUI...
B4J Question RichViewfx CodeArea - teddybear (first post)    
Mar 13, 2026, you need to modify the class CodeArea.
' Dim Event As Object = JO.CreateEvent("javafx.beans.value.ChangeListener","TextChanged","")
Dim Event As Object = JO.CreateEventFromUI("javafx.beans.value.ChangeListener","TextChanged",""...
link: .CreateEventFromUI("javafx.beans.value.ChangeListener","TextChanged",""...
B4J Question Error java.RuntimeException - stevel05 (first post)    
Aug 25, 2025   
(2 reactions)Strange, I get the error straight after starting and loading.
The Form object is B4j's implementation of the JavaFX Stage, which doesn't support setOnScroll.
What you can do is add the scroll listener on the RootPane.
Dim jo As JavaObject = MainForm.RootPane
Dim e As Object = jo.CreateEventFromUI("javafx.event.EventHandler", "scroll", Null)
jo.RunMethod...
link: :
Dim jo As JavaObject = MainForm
Dim e As Object = jo.CreateEventFromUI("javafx.event...
B4J Question Help with Project Error in Release Mode (SOLVED) - Erel (first post)    
Jul 16, 2024   
(1 reaction)I cannot say it based on the error message, but the error might be related to wrong usage of background threads. Make sure not to raise events directly from background threads. You need to use BA.raiseEventFromDifferentThread for this (or JavaObject.CreateEventFromUI)....
link: .raiseEventFromDifferentThread for this (or JavaObject.CreateEventFromUI).
Hi @Erel On this specific...
Page: 1  
2  
3  
4  
5  
6  
7