code module

  1. nima66

    Android Question java.lang.NullPointerException error when calling function

    Is it possible that in Android 12 and above, when we leave the app for 5 minutes and return to the app, the module code cannot be recognized? This happened for a variable from the list on some phones and I fixed it. I store user errors in the server database. Now the problem is that sometimes...
  2. mohsen programmer

    Android Question Failure to recognize code module methods

    Hello I use the following code in Service_Create in my starter to send a notification with firebase: Sub Service_Create Try CallSubDelayed(FirebaseMessaging, "SubscribeToTopics") Catch End Try End Sub There are also functions in this service (starter). In these functions...
  3. Dave O

    Android Question B4XSerializator and types declared outside main module

    B4XSerializator says that it wants any types to be defined in the Main module. Why is that? Background: I'm building a multi-user version of my checklist app using CloudKVS, which uses B4XSerializator to send objects back and forth. Normally I declare my types and most global variables and...
  4. R

    Android Question Why Type in code module not recognized by B4XMainPage?

    In B4XMainPage I have this code: Sub Class_Globals Private ser As B4XSerializator End Sub Sub GetSQL_ExtraFromTable(strNameOfSQL As String, _ iFolderID As Int, _ strRunSQL As String) As tSQL_Extra Dim strSQL As String Dim...
  5. Reckless

    Wish B4X IDE Panel Layouts

    After about 12 years of working with B4X, we have seen great improvements in this IDE The speed of software development as well as the cleanliness of the codes compared to Android Studio By is all clear I dedicate this plan to dear Erel And as well as better design layout and code application...
  6. gezueb

    B4J Question webserver handle to call global formatting code

    I would like to write some formatting code that is called from different handlers in a web server. Is it possible to place it in a code or class module? How about reentrancy problem? Explanation or link to some is appreciated!
  7. Rob Bliss

    Android Question Get .bas name from code module

    When calling a function thats in a code module, is there a way to get and use the .bas file name thats calling it, other than creating a new parameter in the function? I was hoping Sender would be of use, but it would appear not.
  8. ALBRECHT

    Android Question [Solved] Job with wait for into a class

    Hello, I have a lot of sub routines that execute some poststrings actions with an ASP API. So i have put the whole in a separate Code Module , like for example sending email directly via the API (its more simpler and lighter for the app) : Sub SendAnEmail(QSTT As String, QSMESS As String...
  9. J

    Spanish conexion a esp8266 como AP falla

    Hola Estoy tratando de conectar el esp8266 como acces point al celular pero no se logra conectar, encuentro la red y me conecto a ella, pero al iniciar la aplicación y tratar de hacer la conexión, no funciona El esp8266 si funciona, usé un ejemplo que encontré...
  10. peacemaker

    Android Code Snippet Super-others: my 42 common usage subs

    Common subs are usually placed into a code module. I decided to check all my projects that have "others.bas" code module, and i have found... 185 unique files. And much more common subs, but 42 pcs of them can be useful for community. Mostly the names are self-explaning, most are from the forum.
  11. Sandman

    Android Question [SOLVED] Placing important vars in Starter vs Code module?

    I know that we're supposed to place important vars in Starter so they are always around. But I have to ask why we can't place them in a code module instead? That's always around also, right? Or do vars in code modules get purged now and then by the OS? Or are there other problems? (Why a code...
  12. Thorsen

    Android Question USBSerial - where is the DataAvailable event raised?

    Hi, I found an unexpected behaviour of the DataAvailable event: My main module calls a codemodule (repshare) to initialize and use the felUSBSerial repshare.mUSBInit in repshare.mUSBinit i setup the callback event … usbserial.Initialize("evtUSBSerial", device, 1) I expected that...
Top