Home > Mobile >  Ask: how to determine the application has already been set up "to allow the background" (o
Ask: how to determine the application has already been set up "to allow the background" (o

Time:10-20

For half a day to add code "in the background,"
Masters, have added to allow API can view?

CodePudding user response:

Ignore the battery optimization function add to it or not, strange

CodePudding user response:

Start the service

CodePudding user response:

refer to the second floor heaimnmn response:
to start the service line


Hello, thank you, after the server to start, will soon be killed,
Is there any API can be judged have joined the white list?
The white list and ignore the battery optimization is not a function,

CodePudding user response:

I think this function is a normal requirements, and are malicious, although some do not need to receive real-time news, but every time need to reopen the time, still very cumbersome, and users need to let it open once, don't close, such as similar to the tape, then the phone every foot of MAO to find the icon, and then open it, and then began to speak, of course, this example is not very appropriate, because a lot of phone calls during a recording function button,

CodePudding user response:

Two threads a protection

CodePudding user response:

reference 5 floor heaimnmn reply:
two threads a protective


Thank you, write a C code is to use the NDK guardian? Or open a thread in the service?

CodePudding user response:

@ l_o_s masters, excuse me, how do you solve?

CodePudding user response:

reference net_morning reply: 3/f
Quote: refer to the second floor heaimnmn response:

Start the service line


Hello, thank you, after the server to start, will soon be killed,
Is there any API can be judged have joined the white list?
The white list and ignore the battery optimization is not a function of

How's that? Solution: no, I also looking for ways to judge whether to allow running in the background after
  • Related