Android Question multiple connection

csjoe72

Member
Licensed User
Longtime User
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
I think the only way is using services. Android may destroy the activities that are not in "screen".
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…