Hi Kevin thanks for your reply

Well I've tried alot with userclosed = true and = false but it doesn't seem to work.
Now I have this code, it's saving the settings double.
Sub Activity_Pause (UserClosed As Boolean)
timerbegin.Enabled = False
StateManager.SaveSettings
If userclosed = True Then
StateManager.SaveSettings
Else
statemanager.SaveSettings
End If
End Sub
Any ideas, or is it just impossible to save if the app is killed with a taskmanager.