torresj / indi-android-ui

Android library to create user interface for device with INDI library
GNU General Public License v3.0
1 stars 1 forks source link

Test App for socket communication and mainteinance even when the app is "minimized" #2

Closed zerjillo closed 9 years ago

zerjillo commented 10 years ago

Since the INDI Client should maintain the connection to the servers even the the app is not in foreground a test app in which this kind of connections is stablished should be done and tested.

torresj commented 10 years ago

I have created a first version to check the TCP connection. At this point not detected any problems.

The next step will be a new app with INDI FOR JAVA to check connections with INDI server

zerjillo commented 10 years ago

Have you tried your test app for a long time? Do you avoid that the Android device closes the connection or destroy the App if it is in the background for a long period of time (an hour or two)?

torresj commented 10 years ago

No I haven't. I have done test 30 minutes but i will repite the tests with longer periods.

torresj commented 10 years ago

Test done. After 2 hours the connection was still open. You can open the connection and send some messages. You can only open socket using threads so although you send app to background the connection is kept open until APP is destroyed. If you try to open socket in main thread, android throws an exception.

torresj commented 9 years ago

all test done. There aren't problem with conections.