Android Question Starter service functionality

Paul Garcia

Member
Licensed User
Longtime User
Good morning, I do not understand the functionality of the starter service.
The starter service should be like this?

B4X:
Sub Process_Globals
    Dim bd As SQL
End Sub

Sub Service_Create
    bd.Initialize(File.DirDefaultExternal,"mydatabase.bd", True)
End Sub

And the activity would be like this?

B4X:
Sub MyFunction
    Starter.bd.ExecNonQuery("Create table myTable (column TEXT)")
End Sub
 
Top