コード例 #1
0
 @Override
 public void action(Intent intent) {
   // TODO Auto-generated method stub
   String strSourceFrom = intent.getStringExtra("from");
   String strSourceTo = intent.getStringExtra("to");
   if ((strSourceFrom != null && !strSourceFrom.equals(""))
       && (strSourceTo != null && !strSourceTo.equals(""))) {
     SkyTvPlayerSourceSwitch sourceFrom = SkyTvPlayerSourceSwitch.valueOf(strSourceFrom);
     SkyTvPlayerSourceSwitch sourceTo = SkyTvPlayerSourceSwitch.valueOf(strSourceTo);
     listener.onSkyTvSourceSwitchDone(sourceFrom, sourceTo);
   }
 }
コード例 #2
0
 @Override
 public void action(Intent intent) {
   // TODO Auto-generated method stub
   String strSource = intent.getStringExtra("source");
   if (strSource != null && !strSource.equals("")) {
     SkyTvPlayerSourceSwitch source = SkyTvPlayerSourceSwitch.valueOf(strSource);
     listener.onSkyTvChannelListUpdate(source);
   }
 }
コード例 #3
0
 @Override
 public void action(Intent intent) {
   // TODO Auto-generated method stub
   String strChannel = intent.getStringExtra("channel");
   String strSource = intent.getStringExtra("source");
   if ((strChannel != null && !strChannel.equals(""))
       && (strSource != null && !strSource.equals(""))) {
     Channel channel = new Channel(new SkyData(strChannel));
     SkyTvPlayerSourceSwitch source = SkyTvPlayerSourceSwitch.valueOf(strSource);
     listener.onSkyTvChannelSwitchDone(source, channel);
   }
 }