Hi:
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...
Hi,
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):
String...
Hi,
I just want to set path effect to the canvas paint object. Here is the code:
Original Java Code: mCanvas.setPathEffect(new CornerPathEffect(10));
My Code:
Dim drawingCanvas As Canvas
drawingCanvas.Initialize(panelArtwork)
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", _
Array(Stream, 0))
End Sub
I'm...
Hi,
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...
Greetings everyone,
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:
cursor =...
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
jObj.InitializeContext
Dim window As JavaObject = jObj.RunMethodJO("getWindow", Null)...
hi,
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...
Hello, I'be been trying to use the JavaObject to access a Java API for a rfid reader sdk.
The fist code I tried is below :
#Region Project Attributes
#ApplicationLabel: Test RFID
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or...
Error:
Waiting for debugger to connect...
Program started.
Type Network Path: example(\\Server\SharedFolder)
Error occurred on line: 61 (Main)
java.lang.IllegalArgumentException: object is not an instance of declaring class
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.