Android Question When the service application is minimized, it pauses

senat56

Member
Licensed User
Longtime User
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
ResponseError. Reason: java.net.SocketTimeoutException: failed to connect to ....
 

senat56

Member
Licensed User
Longtime User

Tried it already.
The essence is activation, there is a button on it, when you click on it you need to download the file and unzip it.
There is a service, in it the procedure of downloading and unpacking.
If you press the button and immediately minimize the application, then everything stops.
If deployed within N seconds, the operation is continued.
How to make so that when folding operation further continued?
Sorry for the bad translation.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Inform about partial wake lock and foreground services.
 
Upvote 0

senat56

Member
Licensed User
Longtime User
I quickly clicked
Button and turned


*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
*** Service (update) Create ***
** Service (update) Start **
start s
** Activity (main) Pause, UserClosed = false **
false
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
 

Attachments

  • code.txt
    1.1 KB · Views: 179
Upvote 0
Top