Hello, I need help. I have tried differents solutions but I haven't got any idea. I want that when my device power on, an service starts.
It is an example (In this case, I have tried open my app when my device power on), and when power on, appears .... "crashed".
--------SERVICE ------
#Region Service Attributes
#StartAtBoot: 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
End Sub
Sub Service_Start (StartingIntent As Intent)
StartActivity(Main)
End Sub
Sub Service_Destroy
End Sub
'-----END SERVICE
I have tried remove "StartActivity(Main)" in de "Service_Start" but, the application crashed too. It is to say, my app also crashed with the service is empty.
I need help, because I don't know that thing I am doing bad....
It is an example (In this case, I have tried open my app when my device power on), and when power on, appears .... "crashed".
--------SERVICE ------
#Region Service Attributes
#StartAtBoot: 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
End Sub
Sub Service_Start (StartingIntent As Intent)
StartActivity(Main)
End Sub
Sub Service_Destroy
End Sub
'-----END SERVICE
I have tried remove "StartActivity(Main)" in de "Service_Start" but, the application crashed too. It is to say, my app also crashed with the service is empty.
I need help, because I don't know that thing I am doing bad....