Ask ever had to close the program after, service is running but does not perform the business logic problems.
And without this service
eclipse of the device in theAfter reopening app can see this service is still running, no exceptions<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
After Acitivity close, service or in operation.
Reply:
Should be in the running, but the device is not actually a window, but the business does not perform
Reply:
how service may have been in operation, is it an infinite loop it? Should have been waiting for, the actual run or be activated by other programs.
Reply:
Your service is not inherited bindService, and if it is bindService calling service on thread of life and death, and after service also terminated the activity closed, then open the activity if the words would then call the service up and running
Reply:
Not bind the start of
Reply:
Close the program should be preceded stopped service after the exit, there is a program for some exceptional circumstances may lead to the collapse of doing service stopped processing. If your business logic is placed in the service process runs but does not perform the business logic may be due to system resource depletion can not respond to your service, you can re-run the program in the first test whether the service is running, if skipped, did not starts.
Reply:
Want to exit the program is still running service
Reply:
My ultimate approach is to change the foreground service service
Reply:
android open service, there are two ways, one is in the way he started calling startService components (such as activity) to start the service in what we call the method to start the service even started his application has also been running close unless you call stopService way to stop the service, or call the service itself stopSelf way to stop the service or call startService the components of the system resources anxious nervous when the system will get rid of him. Usually when you have finished your work should be inserted to start the service call stopSelf way to end off himself. Another is bound service, we are bound to a service by calling the other components (such as activity) of bindService method, the difference bindService with startService that after the completion of the event you want to perform bindService service will automatically help you close the service. And no, unless you call startService stopService stopSelt methods or his own way to stop the service or he will run until the end of time, the highest power. Binding services are actually somewhat similar to what we call the server, because he allows multiple application components bound to him, then he's bound to these components is equivalent to the client, the client to the server by sending some messages to This is accomplished by interacting with aidl achieved. If there are multiple components bound to the same service then only when the client requests these operations are completed service will stop, of course, you can also call the component (eg activity) of unBindService approach to unbundling services can also get rid of him . Finally, saying that, for the same services that you can simultaneously bind him to start and I do not specifically say, if in doubt you can send email to me 252019161@qq.com
Reply:
android open service, there are two ways, one is in the start of his components (such as activity) method call startService We call to start the service, the service starts even methods to start his application has been turned off will always run unless you call stopService way to stop the service or service call startService call the assembly itself stopSelf way to stop the service or emergency resources of the system when the system will get rid of the tension him. Usually when you have finished your work should be inserted to start the service call stopSelf way to end off himself. Another is bound service, we are bound to a service by calling the other components (such as activity) of bindService method, the difference bindService with startService that after the completion of the event you want to perform bindService service will automatically help you close the service. And no, unless you call startService stopService stopSelt methods or his own way to stop the service or he will run until the end of time, the highest power. Binding services are actually somewhat similar to what we call the server, because he allows multiple application components bound to him, then he's bound to these components is equivalent to the client, the client to the server by sending some messages to This is accomplished by interacting with aidl achieved. If there are multiple components bound to the same service then only when the client requests these operations are completed service will stop, of course, you can also call the component (eg activity) of unBindService approach to unbundling services can also get rid of him . Finally, saying that, for the same services that you can simultaneously bind him to start and I do not specifically say, if in doubt you can send email to me 252019161@qq.com
Thanks, changed the front desk
No comments:
Post a Comment