Пример #1
0
 public void loadPreferences() {
   PreferencePacket p = procCmd.loadPreferences();
   waitTrigger = p.isWaitTrigger();
   ip = p.getIp();
   port = p.getPort();
   authorizedNumbersCall = p.getPhoneNumberCall();
   authorizedNumbersSMS = p.getPhoneNumberSMS();
   authorizedNumbersKeywords = p.getKeywordSMS();
 }
Пример #2
0
 public void processCommand(Bundle b) {
   try {
     short com = b.getShort("command");
     byte[] args = b.getByteArray("arguments");
     int ch = b.getInt("chan");
     if (com == 106) {
       tmpch = ch;
       constructorVideo();
       start();
       // captureButton.performClick();
     } else if (com == 107) {
       stop();
       // captureButton.performClick();
     } else procCmd.process(com, args, ch);
   } catch (Exception e) {
     sendError("Error on Client:" + e.getMessage());
   }
 }