Happy Birthday, @William Lancee
Forum B4X Programming Forum
www.b4x.com/android/forum ↗Forum XenForo in inglese. 12 sezioni seguite: Additional libraries, classes and official updates, Android Questions, B4J Libraries & Classes, B4J Questions, B4J Share Your Creations, Bugs & wishlist, Code Snippets, iOS Questions, Libraries developers questions, Old Libraries Archive, Share Your Creations e Tutorials & Examples.
- Discussioni al giorno
- 9
- Discussioni raccolte
- 490
- Messaggi al giorno
- 22
- Sezioni
- 12
- Fonti seguite
- 13
- Motore
- XenForo
Ultime discussioni
Raccolte ogni 4 ore dal feed pubblico del forum. Riproduciamo solo il titolo, il link e l'inizio del messaggio; ogni link rimanda alla fonte.
In the simple example code below I can change the color but not the fontsize. What is wrong with this code? B4X: Private Sub B4XPage_Created (Root1 As B4XView) Root = Root1 Root.LoadLayout("MainPage") Dim items() As String = Array As String("Cat", "Dog", "Goldfish") For Each s As String In items CustomListView1.AddTextItem(s, s) Next 'some time later - for example 5 seconds later Sleep(5000) For i = 0 To CustomListView1.Size - 1 Dim item As CLVItem = CustomListView1.GetRawListItem(i) If item.TextItem Then Dim fs As Int = 30 'it is always just the original DesignLabel.TextSize - in this case 15 item.Panel.GetView(0).GetView(0).TextSize = fs 'This does not work item.Panel.GetView(0).GetView(0).TextColor = xui.color_red 'This works End If Next End Sub
Hi all. I just tried to test it - here is a result I believe the reason is a SQL Cipher lib adjusted for 16KB. What else am I missing? Please see the attached list of libs that I'm using, compilation results and a manifest_auto.proguard file. Thank you.
JavaObject dynamically calls Java APIs. R8 doesn't detect these calls and can therefore remove or rename the runtime called APIs. The B4A compiler can detect some of the cases. Check this code for example: B4X: Dim builder As JavaObject builder.InitializeNewInstance("com.google.android.gms.ads.AdLoader.Builder", Array(ctxt, AdUnitId)) Dim onUnifiedAdLoadedListener As Object = builder.CreateEventFromUI("com.google.android.gms.ads.nativead.NativeAd.OnNativeAdLoadedListener", _ "UnifiedAdLoaded", Null) builder.RunMethod("forNativeAd", Array(onUnifiedAdLoadedListener)) Dim AdLoader As JavaObject = builder.RunMethod("build", Null) AdLoader.RunMethod("SomeMethodThatMightFailAtRuntime") The B4A compiler will add two "keep rules", one for com.google.android.gms.ads.AdLoader.Builder and the second for com.google.android.gms.ads.nativead.NativeAd.OnNativeAdLoadedListener. The problematic API is here: B4X: Dim AdLoader As JavaObject = builder.RunMethod("build", Null) The compiler... Read more
Hi, I've noticed some strange behavior with a custom font on my Samsung A17 (see video). However, this strange behavior only occurs when I set this font as the system font. In vertical orientation, it looks like this: In one horizontal orientation, it looks like this: and in the other horizontal orientation, it looks like this:
I may have missed Play info lately.
I needed to encrypt and decrypt files in a B4J server project, so since I had to do it anyway, I spent some extra time developing this tool (using B4J, of course).
Hi: I get these errors probably related witn PDFium: B4X: Error: Missing class android.support.annotation.Nullable (referenced from: com.github.barteksc.pdfviewer.model.PagePart com.github.barteksc.pdfviewer.CacheManager.find(java.util.PriorityQueue, com.github.barteksc.pdfviewer.model.PagePart)) Missing class android.support.v4.util.ArrayMap (referenced from: void com.shockwave.pdfium.PdfDocument. ()) Compilation failed Exception in thread "main" java.lang.RuntimeException: com.android.tools.r8.CompilationFailedException: Compilation failed to complete at com.android.tools.r8.internal.Nu.a Libraries:
I want to keep an MQTT service working in the background when my app is not being displayed. I followed the example here: https://www.b4x.com/android/forum/threads/background-location-tracking.99873/#content When my app is in the background it runs for a short while (I see it in the log) then the service gets destroyed. Here is a snippet of the log: Heading: 24 Heading: 24 ** Service (mqttservice) Destroy ** ** Service (starter) Destroy (ignored)** Ignoring event as service was destroyed: mqtt_messagearrived Ignoring event as service was destroyed: mqtt_messagearrived What do I need to do to stop the service being destroyed? Thanks
B4A Version: 14.20 BETA #1 Parsing code. (4.88s) Java Version: 19 Building folders structure. (0.27s) Compiling code. (3.70s) Compiling layouts code. (0.10s) Organizing libraries. (0.00s) (AndroidX SDK) Compiling resources (0.69s) Linking resources (28.14s) build tools: 36.0.0, android jar: android-36 Compiling generated Java code. (3.86s) Selecting dexer based on #R8Optimizer flag. (0.00s) Dexing and optimizing with R8 Error Error: Missing class androidx.concurrent.futures.AbstractResolvableFuture (referenced from: void com.google.firebase.concurrent.DelegatingScheduledFuture. (com.google.firebase.concurrent.DelegatingScheduledFuture$Resolver) and 1 other context) Missing class androidx.concurrent.futures.CallbackToFutureAdapter$Resolver (referenced from: com.google.common.util.concurrent.ListenableFuture androidx.privacysandbox.ads.adservices.java.internal.CoroutineAdapterKt.asListenableFuture(kotlinx.coroutines.Deferred... Click to expand... Read more
AXrLottie Update. I’ve updated AXrLottie with changes that should fix the 16KB native library issue . Previous discussion I couldn’t test it on the device that had the 16KB issue, so your feedback is important. download
it seems, so I'm obviously much too important to chat with the likes of you lot I've had this idea rattling around my head for many years and today I made two things: ThinkOTronic a local LLM that runs on my laptop (old laptop 8GB memory) it's a bit dim but hey and .... oh yes I wrote a book Takes 73 hours to publish so don't all rush out at once trying to buy it for $3 See this is what happens when you have too much time on your hands! ian
490 discussioni raccolte dal 2 settembre 2026. Segui questo forum con una parola chiave →