I do not quite understand some aspects of the implementation of Service in the Android OS:
- I start the
Service, in which there is a fieldprivate int depCount;. In the process ofServiceit changes. I stop the service using thestopService()method. When I restart it, thedepCountfielddepCountno longer null - it takes on the value that was before the previous service stop. Why it happens? - If I call the
startService()method for oneServiceseveral times in a row, it will only be run once, right?