当实现调用的Activity或者fragment发生orientation改变时,服务器会停止吗?
查了很多资料,都是当调用 Context.stopService()或者stopSelf()时服务器会停止。
就是说假设当Activity或者fragment发生orientation改变时,服务器不停止。
用startService()重写默认由bindService(Intent, ServiceConnection, int)管理的服务器,需要服务器一直运行,直到调用了stopService(Intent)方法,不会被其他的客户端影响。
是不是就是说服务器不遇到调用stopService
就会一直运行?