Android Question Starter.bas module's coding incorporation into B4XMainPage

johnaaronrose

Active Member
Licensed User
Longtime User
I have an app originally written in B4A with a Starter.bas module which has no coding written by me and its coding is shown below. I have converted the app to B4XPages. The app now has Main (standard coding as supplied by B4X) & B4XMainPage (coded by me) modules. I saw in another thread "In most cases you can simply move everything to B4XMainPage and Service_Create -> B4XPage_Created". I presume that after doing so, the Starter.bas module should be removed and deleted from the app. Could anyone clarify what the B4X MainPage should now look like?
PS Apologies if I'm being stupid in not understanding exactly what to do.

Starter.bas:
#Region  Service Attributes
    #StartAtBoot: False
    #ExcludeFromLibrary: True
#End Region

Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'These variables can be accessed from all modules.

End Sub

Sub Service_Create
    'This is the program entry point.
    'This is a good place to load resources that are not specific to a single activity.

End Sub

Sub Service_Start (StartingIntent As Intent)
    Service.StopAutomaticForeground 'Starter service can start in the foreground state in some edge cases.
End Sub

Sub Service_TaskRemoved
    'This event will be raised when the user removes the app from the recent apps list.
End Sub

'Return true to allow the OS default exceptions handler to handle the uncaught exception.
Sub Application_Error (Error As Exception, StackTrace As String) As Boolean
    Return True
End Sub

Sub Service_Destroy

End Sub
 
Top