#Region Service Attributes
#StartAtBoot: False
#ExcludeFromLibrary: True
#End Region
Sub Process_Globals
End Sub
Sub Service_Create
'need to disable it as reading from large JdbcResultSet will cause network requests to be sent on the main thread.
'DisableStrictMode
End Sub
Sub Service_Start (StartingIntent As Intent)
End Sub
'Sub DisableStrictMode
' Dim jo As JavaObject
' jo.InitializeStatic("android.os.Build.VERSION")
' If jo.GetField("SDK_INT") > 9 Then
' Dim policy As JavaObject
' policy = policy.InitializeNewInstance("android.os.StrictMode.ThreadPolicy.Builder", Null)
' policy = policy.RunMethodJO("permitAll", Null).RunMethodJO("build", Null)
' Dim sm As JavaObject
' sm.InitializeStatic("android.os.StrictMode").RunMethod("setThreadPolicy", Array(policy))
' End If
'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