java

  1. 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...
  2. 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...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. 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...
  10. 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...
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. cjpryor

    B4J Question Library Error when deployed but not in B4J Development Environment

    I wrote an enhancement to my reporting using DynamicJasper. I built a limited java wrapper specific to my purposes and deployed it to B4J as a library using the B4J_LibraryCompiler.exe. I have done this before with Jasper Reports which has been successfully deployed to Windows, Mac, and Linux...
  16. U

    Android Question String Values Going Empty! Web Service(SOAP)

    Hello there, I am connecting to web service with SOAP using KSOAP2 library. I'm currently having a problem that I can't get out of for the user login section. When I send data via **** POST, it returns "successful" as 'result'. However, when I test the web service with SOAP, the email or...
  17. Michael2150

    Java Question Wrapping Genius Scan SDK

    Hi so this is my first attempt at making a library for B4a, and a big attempt it is. I have a project that requires the Genius Scan SDK. So after a few days of research I've gone through most of the tutorials on the forum about how to make your own B4a library, and they are all great, but I...
  18. Z

    Android Example Use MediaStore to play and export Ringtones. Demo, lib and Java source code.

    The media provider provides an indexed collection of common media types, such as Audio, Video, and Images, from any attached storage devices. Root permission is not required.
  19. AbdurRahman

    Android Question how to solve java.exe high memory usage problem ?

    Hi guys, Thanks for being a part of b4x community, Before, I wanna share my pc details: - RAM: 4gb - OS: windows 10 x86 - Processor: x64 based - Type: Laptop Please see images: The strange thing for me is that its -Xmx is 2048m. Whereas, my environment variable named _JAVA_OPTIONS is...
  20. B

    B4J Question Trying to write some b4j code to connect to the Oracle Cloud

    Hi, Oracle has a tool, called RightNow. It provides resources for running queries and generating reports for remote databases. I'm looking at some Java code, as well as the Getting Started section in the...
Top