Should a service started as part of an application be visible/killable from the UI?
I'm teaching myself to develop in Android using the sample notes, and documentation.
Here is what I did
- Created an application in a project
- Created a class that extends IntentService in the same project; default implementatin in onHandleIntent
- In the app manifest XML, defined the IntentService child to be subordinate to the application
The application object is visible under App Settings in the emulator. The Service is not visible under either the Application Settings, or the Running Services.
Should the running service be visible in开发者_StackOverflow中文版dependently?
If your app can function without the service running, you should consider enabling the user to change the behaviour of it in the preferences activity of your app.
A service should not be visible by the user in any other means than being able to turn it off or changing the frequency of i.g. network activity.
精彩评论