b4a

  1. SinaDeveloper

    Admob income

    Hello I am building a browser with b4a for Android and b4j for Windows. I really don't know if it will be profitable to use Admob ads or to add vip subscription! That's why I ask a few questions, please answer them: 1- In addition to Android, will it be possible to use AdMob in b4j? 2- Can I...
  2. V

    Android Question WebView & Action

    I Want a code like Dim domain As String = "https://google.com" WebView1.LoadUrl(domain) if WebView1.Url = "https://b4x.com" then 'Do the Action End If Means if in google he open b4x.com then some action start I Don't know how I write it to its work pls help me:)
  3. OliverA

    B4A Class Camera2Torch - Torch using B4A's Camera2 library

    Attached is the class Camera2Torch. It uses B4A's Camera2 library to use Android's CameraManager's setTorchMode method. Please note that this method is only available since API23, whereas CameraManager is available as of API21. This has been successfully tested (via sideloading...
  4. F

    Android Question NFC Application Example in b4A

    Good Day Can we have any sample application to read Credit / Debit Card public information like Card Number & Name using NFC Application. Thanks
  5. S

    B4A Class [B4X] PDF Generator - B4X Cross Platform - Class 100% B4X Code

    Hi, This class cPDF.bas (version 0.6 - 2024-01-03) generate PDF File with limited fonctionnalities (but enough for me) Add pages with different paper size (use constants or custom size) PDF standards font (Courier, Helvetica, Times, Symbol and Zapfdingbats), style (Normal, Bold, Italic...
  6. V

    Android Question If webView something do some action

    I need some code to if WebView redirect too like "https://google.com" do some action like hide app or send notification are else
  7. E

    Italian Come visualizzare le app su tablet

    Salve a tutti. Sono nuovo e da poco sto smanettando utilizzando b4a! Nonostante le svariate letture, ancora non mi è chiaro (sicuramente è un problema mio), come adattare una applicazione a device diversi. Nel mio caso, dovrei adattare una applicazione che viene visualizzata bene su uno...
  8. Mattiaf

    Android Question how to parse this html through WebView

    HI, would it be possible to parse in the folllwing website and I would like to parse the following html <div class="post-block__content_message" itemprop="articleBody" style="max-height: initial;">? Formula 1 - Messico 20:00 Prove Libere (3) 23:00 Qualifiche <a itemprop="url"...
  9. stevel05

    Android Code Snippet [DSE] [B4A] Standard Tooltips for Android 8+

    Based on @Dave O 's code in this thread, here is a Designer script extension to add standard tooltips for Android 8+ 'Parameters: Text As String, 1 view 'Code in DesignerScript:{class}.SetTooltip("Tooltip", Button1) Public Sub SetTooltip(DesignerArgs As DesignerArgs) Dim p As Phone If...
  10. Mattiaf

    Italian [B4A] Problema con WebView e fullscreen

    Salve, sto usando un sito web dove ha embeddato un video. Nonostante io allarghi il controllo webview, il pulsante fullscreen all'estrema destra della barra di sotto non è visibile. La grandezza del webview è indifferente, l'ultimo pezzetto della bar è sempre oltre la parte destra dello schermo...
  11. S

    Android Question Multiple Push Notifications possible?

    Hello all, I am new to B4A and I have followed Erel's tutorial exactly how he shown in his video including Firebase. My problem is though that when the notification is displayed on my phone, I have to swipe it away so when I run the B4J side of it again, it pops up again. It does not do...
  12. RockSmoke

    Android Question Convert String Expression To Label

    Good day to everyone. In my project on B4A, I convert the data I receive over BLE to UTF-8 units. Then I want to give it to the screen via the label, but I am getting such an error. How do i convert to label text Thanks For Your Answer. ERROR MESSAGE : (TextView) android.widget.TextView{82e135b...
  13. S

    Android Question Can't choose First option in B4XComboBox

    Hello, when I fill a B4XCombobox then I can not choose the first option. I first have to choose another option, and after that I can choose the first option. How do I solve that? I must be forgetting something, I think. As it looks like something is already chosen, but it is not. it's filled...
  14. M

    Android Question B4A - Maven artifact not found: androidx.core/core-ktx (-> lStar)

    Hi everyone, I just switched to a MacBook M1 and i'm configuring everything on Windows11 with Parallels. I followed the usual B4A installation instructions and tried to compile an already existing project. This error showed up... what can i do? i already tried to install these...
  15. M

    Android Question Transparent Panel but with Shadow

    Hi everyone, I'm experimenting some modern UI techniques... is it possibile to have a panel with transparent color and keeping the shadow? At the moment i'm achieving the shadow using the "Elevation" but if i put Color to transpartent the shadow disappears. Is there a better way to apply a...
  16. M.Amini

    Android Question how can I change Orientation of Activity title

    hi how can I change Orientation of Activity title
  17. AbdurRahman

    Share My Creation Sun, Earth and moon revolution orbit

    For learning purposes, I wrote a code that rotates an object in circle in pure way WITHOUT USING ANY 3RD PARTY LIB OR FUNCTION ;). Important code is: Sub rotate( parent As ImageView, child As ImageView, latency As Int, r As Int) As ResumableSub Dim parent_vertical_center As Double...
  18. erraticless

    Android Question Freezing app while phone screen off

    Hello, When i run my project (an activity with a service) in release mode in my Samsung Galaxy S20, after about 3 minutes of screen turned off, the complete app just freezes for a few seconds (or even minutes sometimes) until i turn on screen again, and then the program continue working...
  19. AbdurRahman

    Android Question revolve image in circle ?

    Hi, I'm trying to revolve earth image around sun image making an orbit without using 3rd party libraries or builtin functions. So here's what I achieved: If you notice its revolves in rectangle but not in circle. So whats correct formula for moving it in circle ? Here's my current code: This...
  20. B

    Android Question B4A Designer don't save layout anymore

    Yesterday i opened B4A to modify a project and i notice the UI of B4A was resetted. So i reimposted the theme and the layout of the windows (logs, files, lib, ecc); i tried to close and open again and the setting was saved. When i opened the Designer the UI was also resetted, so i reimposted all...
Top