java

  1. denis li

    Android Question how to get incoming call state to my SIM when I am on the voip call

    I have app which is supporting the voip call. when I am on the voip call, if I get SIM call and accept it, I am going to hold the voip call. I am using TelephonyManager and PhoneStateListener to get the incoming call state. When there is no active voip call, I can get the incoming call...
  2. Tirecs

    B4J Question [SOLVED] B4J TableView Column Alignment Error in Java versions higher than 8

    Hello forum members, we use this function for setting the alignment of columns of a TableView in our B4J applications: 'Possible Alignments: [ top-left | top-center | top-right | center-left | center | center-right | bottom-left | bottom-center | bottom-right | baseline-left | baseline-center |...
  3. M

    Android Question [B4X] Cast Map to Custom Type

    Hi everyone I was wondering if it possibile to cast a Map object to a Custom type object that has the same fields. At the moment I'm doing with a function that manually get all the fields from the map. Thanks in advance
  4. xXswetXx19

    Android Question Call a b4a function from java jar library

    I have a APP in b4a with a list that i want to fill each time that a listener in my jar library is triggered, for this i want to call a function in my b4a code from the jar library, i tried too many ways but it didnt work, can you help me? (Sorry my english) The jar is the comunication module...
  5. L

    Android Question PLS help me with JavaClass Implementation With OnActivityResult

    pls help me about this implementation.... I'll keep it simple and try to be clear. I have 2 Class in .java (ziwiIntegratror and ziwiResponse) and these java files need to implement 'com.google.code.gson:gson:2.8.6' (DONE). I put exactly these java files between the tags "#if Java #End If" and...
  6. james_sgp

    Android Question B4xpages problem, Java code

    Hi, I have the following code working fine in a non B4xpages app, but trying to use it in a B4xpages app I`m getting an error. The code is: Sub GetRndNonRepeatingList(lSize As Int, rnMin As Int, rnMax As Int) As List Dim llist As List Dim nr As Int llist.Initialize Private...
  7. gezueb

    B4J Question Call Powershell from b4j

    I try to call powershell with the parameters: PowerShell -Command "Add-Type –AssemblyName System.Speech; (New-Object System.Speech.Synthesis.SpeechSynthesizer).Speak('hello');" However, I cannot figure out how to do it. shl.Initialize("shl", "java", _ Array As String("Powershell...
  8. J

    Android Question How to convert getIntent() to parseUri(...,...) ??? in an activity ? Android/Java

    Hi I have this code in my sub-activity: Intent intent = getIntent(); message = intent.getStringExtra(MainActivity.EXTRA_MESSAGE); and the code is working ok, but the getIntent(); command is labeled as "deprecated", so I would like to replace it with parseUri, but my new code does not work...
  9. B

    Android Question RDC conector not take database specified in config.properties file

    Hi, I've running RDC server and works fine, but the test URL always shows this RemoteServer is running (10/25/2022 13:44:24) Error fetching connection. In config.properties file I've this config #DATABASE CONFIGURATION DriverClass=com.mysql.jdbc.Driver...
  10. M

    B4J Question Modern and custom window shape

    Hi everyone, i wish to build a desktop app but with some modern vibes in it. So I imagined it without the ugly windows default window, but more like macos apps. Is it possibile to create an app that has this type of GUI using B4J? no borders, round corners, functioning buttons (close, minimize...
  11. F

    Java Question Call Java Class from library by name without variable definition

    Hello every one, Is it possible to use java class from library directly? In file library we can call methods directly for instance File.delete() But I can't call my class like that for example I have class names Utils public class Utils { public void test(){ // DO SOME OPERATION } } I...
  12. M

    Android Question [B4XPages] Upload files with WebView

    Hi everyone, In my project I have a WebView that loads a webpage that has a "Choose File" button. I took a look in the forum and i found this post: Upload files with WebView However... the attached project works, but it's not b4xpages... As soon as i take the code (and the manifest too) to put...
  13. JazzPiano

    Android Question Help with keys management

    Hi, Does anyone know how to deal with the Fire tv keys on a webapp that uses webview to navigate through a webpage with touchable images and buttons? The problem is that when dealing with the Activity_KeyPress() to handle the back button and go back or exit the application: Sub...
  14. Carlos marin

    Android Question Library creation error, Context.getApplicationContext() error

    Hello friends, I would like you to help me with my concerns, I am new to this topic of creating libraries so I try to understand but in the following I have not found a solution. I am creating a wrapper of an SDK, in the first part I must initialize it and get the ok or the error of said...
  15. Carlos marin

    Zendesk SDK iOS and Android wrapper

    Hi, I'm looking for someone who can help me with the Zendesk SDK wrapper, both for iOS and Android, with all its services: SUPPORT SDK Zendesk Guide ANSWER BOT SDK CHAT SDK V2 TALK SDK The SDK link is as follows: https://developer.zendesk.com/documentation/classic-web-widget-sdks/ You can...
  16. H

    B4J Code Snippet Splitter with Fixed Pane

    The Java splitter has the nasty tendency of resizing both panels when the form or splitter parent is resized. I think it is a better behaviour when we have one fixed panel and one flexible panel, so when you resize the form, one panel keeps its size and only the other one changes. Fighting this...
  17. Z

    Bug? Connect to server with protocole UDP

    Hello, when I call my server with my library, it works only in Debug mode but crashes in Release mode. And i added permission in manifest: AddPermission(android.permission.INTERNET) The problem is on all my phones, they are with the following android version: 8.0, 9.0 and 11.0. It’s a huawei...
  18. Sagenut

    What about JAVA JDK?

    I am posting this in Chit Chat on purpose just to make it a nice talking, but to help me clarify some aspects. We know that B4X can use: Oracle Java JDK 8 OpenJDK 11 OpenJDK 14 (even if this one does not appear to be pushed too much, I think because it's not an LTS version as 11) By many time...
  19. DylanTre

    Java Question Setup environment to extend B4A libraries

    Hi everyone, I'm actually attempting to extend BLE2Peripheral lib of B4A. I Started by forking the github repo here: https://github.com/AnywhereSoftware/B4A and imported the project in eclipse Neon. I downloaded the Android SDK from his update site but it looks like that's not enough to satisfy...
  20. cjpryor

    B4J Question Help building a jar file to call from B4J

    So, I have built a jar file named PrintPageReportWrapper.jar that I can execute from a command line with java -jar PrintPageReportWrapper.jar. Unfortunately, I have never had to go beyond this point in my java development other than deploying the jar file to desktop computers. I am now trying...
Top