Let me quickly introduce myself: over 30 years of programming in general, over 12 years of Java, less than 3 weeks of Android.
My question is about my architecture/design. Being so novice in Android, I wonder if the whole idea makes sense. Basically, I want to build a Telnet-like terminal. Such a terminal normally has a long-lived TCP connection that would be nice not to be dropped every time the activity that displays the screen goes away or whenever Android feels like it. My idea is to use a service that keeps the connection open and contains the current telnet screen contents. When the activity is (re)created, it starts the service and retrieves the screen contents and the connection (java.net.Socket). It displays the contents and uses the socket for further user interraction. If the user intentionally disconnects, only then I stop the service.
To avoid the user forgetting that his telnet session is open somwhere in the background, I would also put something in the notification area while the service is running.
Thanks!