Hi flyingbag, many thanks for your help, I tried your code but it makes no difference, the reason why I commented out the line was to show the Astreams.write method giving a nullpointerexception, that does not seem normal to me.
"In User Pause - you are closing the socket and Asyncstreams" If Ileave the main window/activity in view and press the button again to call the astreams code again in the button1 code/method, that is not pausing, or is it?
Do any/all object/elements/controls etc have to reinitialized everytime you want to use them? I am not sure of that... unless there is a cleanup process somewhere getting rid of it automatically maybe?
I guess the question is, how can I keep the AStreams alive/initialized? Why does this object go away when used once?
Maybe Erel (Oh ye master of B4A) could give his imput?
Kim