starter

  1. R

    Android Question How to access code in B4XMainPage from the Starter service?

    I would like to log application errors to SQLite from this Starter code: Sub Application_Error (Error As Exception, StackTrace As String) As Boolean End Sub All my SQLite related code is in my B4XMainPage, but I understand that that is not accessible from the Starter service. In fact...
  2. amorosik

    Android Question App without Starter service - is it not a default service module ?

    On multi pages app example Multi page B4XPages example there is only four modules, Main, B4XMainPage + Page2 + Page3 class module Where is Starter service? I thought the Starter module was indispensable, the entry point of the program, wasn't it? In the example above, having to receive push...
  3. OliverA

    Android Question #Extend, Accessibility Service, Starter Service - oddities

    Note: I'm playing around with #Extend to extend a B4A service directly with Android's AccessibilityService abstract class. Initially when the application is installed via the IDE, everything seems to work, and the inline Java routine onAccessibilityEvent calls the B4A's svc_accessibility...
  4. DALB

    Android Question java.lang.NullPointerException: null receiver in Starter module for a database SLQite

    Hi, everyone, Starting a new project, introducing a database function in the Starter module, it's the first time I have the problem below. At this lines Sub Service_Start (StartingIntent As Intent) Service.StopAutomaticForeground 'Starter service can start in the foreground state in some...
  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. 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...
  7. walterf25

    Android Question Services (Can't keep it alive)

    Hello all, i've been noticing this problem for a very long time, i have read all the threads that talk about Services, I stopped working on an app almost a year ago because i could not figure out why my Services were being killed and not re-started. Basically i was working on an Email Client...
Top