B4A Code Snippet SaveAs - Let the user select a target folder + list of other related methods - Erel    Nov 1, 2024   (46 reactions) cumbersome (Log it to see). Note that other apps can't access this folder. Special...("class ".Length) jo.InitializeStatic(cls) Return jo.GetField("processBA") End Sub... B4A Code Snippet Draw on top of other apps permission - Erel    Sep 5, 2023   (18 reactions) Starting from Android 6 a special permission is required if you want to use the SYSTEM_ALERT_WINDOW permission. This permission is not related to the runtime permissions. You can put this code in a class to check whether your app has permission and open the settings page if needed: Sub Class_Globals Private ion As Object Private phone As Phone End Sub Public Sub Initialize End Sub Public... B4A Tutorial [B4X] "Code Smells" - common mistakes and other tips - Erel    Sep 6, 2023   (85 reactions) = SomeOtherList '<--- previous list was replaced 'good Dim List1 As List = SomeOtherList..., with BytesToString, are bytes that represent text. In all other cases it is a mistake to convert to string. Even if it seems to work it will later fail in other cases. If you think that it is more... B4J Question start stop services - Erel (first post)    Aug 23, 2020 You can kill other processes with jShell. Actual details depend on the OS.... B4A Tutorial Android Process and activities life cycle - Erel    Feb 12, 2018   (14 reactions)   tags: B4A Life cycle, tutorial, B4A Explained will quit. If the user launches your program again and the process was not killed yet the same... are variables that are declared inside a sub other than Process_Globals or Globals. Local variables... process variables. Other information should be stored in a persistent storage (file or database). For...New video tutorial: 255402345 Lets start simple: Each B4A program runs in its own process. A process has one main thread which is also named the UI thread which lives as long as the process lives... B4J Tutorial [server] Run a Server on a VPS - Erel    Jan 22, 2026   (20 reactions)   tags: B4J Run Server on VPS, Erel the server will be killed when you log out. 4. Make sure that the relevant port is open in the firewall settings. 5. If you want to kill the server you can use this command to find the process number: ps -ef | grep java kill <process number> 6. Tip: Use tail -f nohup.out To monitor... the B4J server to its public_html / www / or any other publicly accessible folder.... B4A Tutorial [B4X] How to get <custom view here> from <CLV or any other container> - Erel    Sep 10, 2020   (24 reactions) This is a common question and for a good reason. Custom views classes are not views by themselves. The views tree only holds views. This means that this code cannot work: Dim B4XFloatTextField1 As B4XFloatTextField = CLV.GetPanel(x).GetView(y) The actual view that is added to the views tree, with most custom views, is the "base" panel, usually named mBase. To solve this problem the f... B4J Question UDP receive Data from mDNS - aminoacid (first post)    Dec 11, 2024 See if any other process is using that port:
(Windows) netstat -ano | find "5353"
(Linux) netstat -nap | grep 5353
Kill any other process that's using the same port.
If that does not work..... and this is a long-shot .... It looks like it could also be a network issue. If your computer is using multiple network adapters, a hotspot, VPN, etc. Try disabling them. Also... B4J Library JarCaller - Run and kill B4J jars - Erel    Aug 19, 2025   (15 reactions) This class provides two features: 1. Running ui and non-ui B4J jars programmatically. 2. Killing Java processes based on the jar name or the main class name. Both features are compatible with the host being built as a standalone package. This was not trivial to implement. jCore v10.31+ is required: https://www.b4x.com/android/forum/threads/updates-to-internal-libaries.48274/post-1031509 Notes: - Tested on Windows only. Standalone package hosts: The target app runs with the custom image... B4A Question ”Hey Android vendors, don’t kill my app!” - Sandman    Jan 15, 2019   (1 reaction) This is a brand new site that I thought would be worth a visit from B4A users. It lists and ranks different phone vendors on how badly they cripple installed apps to squeeze out a little more battery. Don’t kill my app! https://dontkillmyapp.com/ 76331 The bigger question is, what can we as developers do about this? Here's some ideas on top of my mind: Star their Github project, it helps bring attention to the project Submit info you have on phones back to the project Implement... Page: 1   2   3   4   5   6   7   |