Why does the background service stops while running?
问题 I have a background service in my android application.In which a thread listening recent tasks running frequently.My service overrides both onCreate() and onStartCommand() methods. When i tried to open some applications like Gallery , Camera etc..., the service will be stopped.It calls the onCreate() method only and not onDestroy() or onStartCommand() .I tried to override onLowMemory() in this service but it logs nothing.The application saved internally by specifying android:installLocation=