Ejemplo n.º 1
0
 @Override
 public void onServiceDisconnected(ComponentName name) {
   mTrafficService.setOnFlowListener(null);
   mTrafficService = null;
 }
Ejemplo n.º 2
0
 @Override
 public void onServiceConnected(ComponentName name, IBinder service) {
   mTrafficService = ((TrafficService.TrafficServiceBinder) service).getService();
   mTrafficService.setOnFlowListener(TrafficManageActivity.this);
   mTrafficService.scanRunProcess();
 }