C csjoe72 Member Licensed User Longtime User May 15, 2023 #1 I created an application with several activities. Each activity connects and communicates with different tcp servers. Is it possible for each activity (foreground and background) to continuously connect to servers and collect data? (now only the one in the foreground is connected, the others are disconnected)
I created an application with several activities. Each activity connects and communicates with different tcp servers. Is it possible for each activity (foreground and background) to continuously connect to servers and collect data? (now only the one in the foreground is connected, the others are disconnected)
Xandoca Active Member Licensed User Longtime User May 15, 2023 #2 I think the only way is using services. Android may destroy the activities that are not in "screen". Upvote 0
DonManfred Expert Licensed User Longtime User May 16, 2023 #3 Switch to B4XPages and forget about such issues Upvote 1
C csjoe72 Member Licensed User Longtime User May 16, 2023 #4 Thanks. I created two connections in the main page and can access from anywhere, always Upvote 0