V
V
Vladimir Prikhodko2014-01-11 02:07:03
Android
Vladimir Prikhodko, 2014-01-11 02:07:03

Android. Open socket + reorientation

Good afternoon!
My question is: what should I do if I have an open socket and suddenly I turn the phone. An IOException is thrown because onPause is being called. How do I leave the socket untouched?? Will onRetainNonConfigurationInstance help?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
one pavel, 2014-01-11
@onepavel

Don't open socket in activity, try service

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question