Polling. The Controller periodically asks the Service for the latest data. IMHO, this option sucks, but it's certainly possible. Callbacks. The Controller registers a callback object ("observer") with theService. The Service invokes a method on…
Local Service Controller 是将LocalService当作“Started”Service来使用,相对于”Bound” Service 来说,这种模式用法要简单得多,LocalServiceActivities.Controller 启动Local Service 之后就基本上不管LocalService了 startService(new Intent(Controller.this,LocalService.class)); LocalService可以选择自己停止自…