Hi,
If i have also a UI that runs jetty in background how do i end up the rest api server when the user closes the activity window ?
I can use this code but did not found any information about end up the process server programaticaly.
I can find the process with windows tools but yet don't want to do this manually.
Thanks
If i have also a UI that runs jetty in background how do i end up the rest api server when the user closes the activity window ?
I can use this code but did not found any information about end up the process server programaticaly.
I can find the process with windows tools but yet don't want to do this manually.
B4X:
Sub MainForm_CloseRequest (EventData As Event)
EventData.Consume
Dim sf As Object = xui.Msgbox2Async("Close Server?", "Server", "Yes", "Cancel", "No", Null)
Wait For (sf) Msgbox_Result (Result As Int)
If Result = xui.DialogResponse_Positive Then
'save changes
'close server
End If
If Result <> xui.DialogResponse_Cancel Then
MainForm.Close
End If
End Sub
Thanks