Pratik Butani
1 min readApr 4, 2019

--

Thanks again for your hands on article.

I think following thing you missed in your article:

  • where to connect with socket.
  • where to disconnect with socket.

Nikhil Chaudhari I have create Application object and connect with socket but what to do for 4–5 different activities.
- Do I need to disconnect with socket in `onDestroy()` of every activity?
- Do I need to connect in every activities `onCreate()`?

OR else How can I implement single instance to use in every activity and destroy on application terminate.

Help me by giving your precious time.

Thanks in advance.

--

--

Pratik Butani
Pratik Butani

Written by Pratik Butani

60k+ Reputation Holder on Stack Overflow | #FlutterDev & #AndroidDev | Engineering Lead @7Span | Contributor | Managing @androidschool

No responses yet