1. S

    B4A Class PopupMenu SubMenu

    Hello, The class clsPopupMenu shows a Popup Menu which can own sub menus. The options are stored in a map. In the example they are in json file in the assets folder. 3 events are fired : - open : A popup menu has been opened - click : An option has been clicked - close : A popup menu has...
  2. M

    Wish Possible to create real classes in B4R (and create instances of that class)?

    You can create class modules in B4R but they act as singletons - I can't define a class module say "MQTTBUNDLE" and then create instances of that class. I know the whole thing about low resources and all that but is this something that might be possible in the future? I'm using Types for this...
  3. S

    B4A Class CSBuilder, store in JSON format

    Hello, This class can parse JSON to generate CSBuilder. Create a json string, save it in a file, add it to assets folder, and display it with this class. All the CSBuilder capabilities are supported. Comments in clsCSBuilderParser.bas and samples files explains the JSON structure. spsp
  4. M

    iOS Question Fire an event from a class

    Hi, where can I find some documentation/tutorial on #event in B4i class? I want to add a custom event in a code module, fired by my class. thanks
  5. D

    Android Question Call a sub in a class defined in starter service.

    Hi Guys Up to this point in B4A, I have always used the classic CallSubDelayed()/CallSub() as appropriate to call subs in Activities or Services. However, by mistake I called a sub (defined within a class) in the Starter service using the classic OOPs format Starter.objectName.subName - and it...
  6. W

    B4J Tutorial Raspbee - RPi Zigbee home automation with B4X

    Introduction: The Raspbee (or Conbee, which is the USB version - the information here will only refer to the Raspbee) from Dresden Elektronik (, also available elsewhere, e.g. on Amazon) is a Zigbee ( radio board for the...
  7. S

    B4A Class Camera Intent, Picture and Video

    Hello, This is a class (clsCameraIntent) inspired by this thread. It adds Video support. One line of code in your activity to call the camera intent One Callback sub in your activity to get the dirame and filename of the picture/video taken/recorded Demo Project with class in zip attached SpSp
  8. K

    B4A Class [B4X] myPopup popup menu (B4A/B4i)

    Here's a small class which produces a simple popup menu anchored to a view. It works in B4A and B4i currently. I've attached projects to show how it is used. Enjoy. [Edit] New version 1.1 has better support for popup menus inside (nested?) scrollviews.
  9. M

    Android Question Make not visible Place Autocomplete View

    Hi, everyone, im trying to use the Place Autocomplete View from Erel. I have the necessity to hide (or show) the view as i want by code, but the command: PlaceAutocompleteView.Visible = False doesn't exist... how can i solve this?
  10. MarkusR

    Android Code Snippet time switch class

    Class Name TimeSwitch 'time switch Sub Class_Globals Type HourSettings(q1 As Boolean,q2 As Boolean,q3 As Boolean,q4 As Boolean) Private DaySettings(24) As HourSettings '0 to 23 End Sub 'Initializes the object. You can add parameters to this method if needed. Public Sub...
  11. A0_2_A7

    Android Example Simple example B4XDrawer sliding drawer class with materialicons and fontawesome icons

    Good afternoon, I contribute to the community with a small example of the class B4XDrawer with material icons and fontawesome icons. Thanks to the whole community for this wonderful forum.
  12. C

    B4i Library [Class] FaceDetector

    FaceDetector is a class that uses Apple's Vision framework which was introduced with iOS11. The class basically returns a list of detected faces, and each face consists of a list of floats which represent the x and y coordinates of various face landmarks. The class explicitly exposes the left...
  13. D

    Italian Panoramica Filippo

  14. A

    Android Question Share image throw FileProvider class

    Hello, I tried to use Erel's new class ( to share an image. I tried to share an image by the example of sharing a file, but the app crashed... Does anybody have an example of sharing an image(only) using...
  15. Dave O

    Android Question CharSequence vs. CSBuilder in parameters?

    If we want to include support for CharSequence in our classes and libraries, should we be changing external-facing String parameters (and any related internal ones) to CSBuilder? (If I understand correctly, we can't reference CharSequence directly.)
  16. Marcus Araujo

    Android Example Solving "Font asset not found" from library

    I developed a class (compiled in library) that makes use of Typeface.MATERIALICONS, but when I tried using it there was this error: java.lang.RuntimeException: Font asset not found b4x_materialicons.ttf I could not find a thread summarizing this problem in this forum for a workout, but the...
  17. K

    Android Question custom object click in customlistview (parent click)

    I attach sample project. I add my customobject in customlistview. My problem is, When I click on my customobject, it doesn't run customlistview click, on other side B4A default object work properly.
  18. K

    Android Question object base class

    Hii experts, I have to create an application by custom components class. in which I want all same property of default object. like Button class, I want to create my custom components button which contains all property and event of buttons. like in other software, there is option of base class...
  19. Yunus ÖZ

    Android Question Change StatusColor from class

    I have a class file name funcs, and there is a code like this Public Sub statusBarColor(color As Int) If ph.SdkVersion >= 21 Then Dim jObj As JavaObject jObj.InitializeContext Dim window As JavaObject = jObj.RunMethodJO("getWindow", Null)...
  20. Peter Simpson

    At last, maybe...

    So after studying Klaus's xChart, Erels various examples and watching Star-Dust release example of what can be created using XUI, I decided to take a closer look at XUI. I've started learning about XUI and its advantages, yes it looking really good and way better than I first thought it was...