Hi, I am using this wonderful Webreader library from Informatix https://www.b4x.com/android/forum/threads/epubreader-webreader.72560/, but I need to access the onPageFinished event of the underlying Webview. What I want is to use a WAIT FOR sentence to ensure that a page is fully loaded before...
I want to use an animation between activities, using makeClipRevealAnimation. Unfortunately, Java and Android libs are real bullshit and totally beyond understanding...
All I succeed to do is
Dim jo As JavaObject
Dim ao As JavaObject =...
in the first place: I bought B4A years ago, but because of my invalidating health, I couldn't do much with it.
Now i try to get a bit done with B4J, just as a hobby, because my health is still not ok.
I searched the forum for JavaObject and saw a few good examples.
However in my...
This Code run perfectly when call from activity.
Sub CreateFileProviderUri (Dir As String, FileName As String) As Object
Log(Dir & " : " & FileName)
Dim FileProvider As JavaObject
Dim context As JavaObject
Hi, I want to use a type as an enum and I don't want to set the value of each string of that type since the fieldname IS what the string value will be. How to do it with Reflector or JavaObject ?
Dim r As Reflector
r.Target = BiomeType
r.Target = r.RunMethod("getClass")
Hi all, does anyone know how to write this code using either JavaObject or Reflection libraries, maybe both are needed?
I'm not so good and don't really understand much how to use those two libraries, i've tried several things but none of them work
I have to intercept, from an Android device, an event raised from a library of the device.
I added the library with
In this library there is an "IButton" object that I initialize with JavaObject
Dim CompDevice As JavaObject...
TabStripViewPager exposes very few attributes and I'm trying to get the height of the whole TabStrip.
I have not been able to obtain this value using code such as :
Dim r As Reflector
r.Target = tabStrip
Dim tabStripHeight As Int = r.RunMethod("getMeasuredHeight")
However I know it's in...
I am working on multitouch in B4J and I have some questions.
Idea is to have pane same size as form, and when there is touch event on pane i get data on x, y, id of touch...
My code is here:
#Region Project Attributes
I've managed to include a banner with Appbrains thanks to Erel and amidgeha. Now, i'd like to show some banners in several activities so i've created some of them in Appbrains web. The problem comes when i want to identify the banner i'm showing. I've searched in appbrains documentation and...
I've been trying to get the deezer sdk working in B4A (some functions work ok, but no sound yet).
Can someone point me in the right direction here ? I don't know any Java.
Java (I did manage to get it working here, but doing the whole thing in Java is not what I would prefer):
I just want to set path effect to the canvas paint object. Here is the code:
Original Java Code: mCanvas.setPathEffect(new CornerPathEffect(10));
Dim drawingCanvas As Canvas
Dim pathEffect As JavaObject...
I seem to be having a bit of a problem with the execution of this code which is in my service:
Sub IsStreamActive(Stream As Int) As Boolean
Dim jo As JavaObject
Return jo.InitializeStatic("android.media.AudioSystem").RunMethod("isStreamActive", _
I've to integrate my app with a library that manage the communication of a device with a POS.
I initialize my class object with javaObject and run methods without problems. But the lib needs a method "Register(callbacksClass)" where I pass my activity istance to manage the callbacks methods...
How do you call the following code under the .RunMethod of a JavaObject:
myDoc = collection.find(eq("i", 71)).first();
The above code is an example given for mongodb tutorial in Java.
I tried the following code in B4J to follow the above code:
I have a class file name funcs, and there is a code like this
Public Sub statusBarColor(color As Int)
If ph.SdkVersion >= 21 Then
Dim jObj As JavaObject
Dim window As JavaObject = jObj.RunMethodJO("getWindow", Null)...
when i use file explorer lib (https://www.b4x.com/android/forum/threads/class-file-explorer-with-visualization.19003/), i get diffrent path for the same selected file.
for example : /mnt/sdcard/1.txt , /sdcard/1.txt, /storage/sdcard/1.txt ...
above all is the same file.
so i can't using...
Now and then there are JavaObject code snippets posted in the forum. Usually there are permissions required listed together with the code, but not always. Which could be because none are needed. (This very small tutorial sprung out of this thread.)
This is how one determines what permissions...
I'm creating a wrapper for VBox and HBox (along with LinearLayout and UIStackView). I've completed VBox however, I have an issue with the TextField control: When I add one to the VBox, the VBox ignores its "PrefWidth" property.
I'm creating the wrappers instead of using the designer because...