public void saveData() { m_new_video_config = (NetSDK_Media_Video_Config) m_video_config.clone(); m_new_video_config.capture.HFlip = m_tb_h_flip.isChecked() ? "1" : "0"; m_new_video_config.capture.VFlip = m_tb_v_flip.isChecked() ? "1" : "0"; m_new_video_config.addHead(false); String xml = m_new_video_config.getCaptureXMLString(); int ret = FunclibAgent.getInstance().SetP2PDevConfig(m_device_id, 524, xml); if (0 != ret) { toast(R.string.dlg_set_video_capture_param_fail_tip); return; } mTipDlg.setCallback(null); showTipDlg( R.string.dlg_set_video_capture_param_tip, 20000, R.string.dlg_set_video_capture_param_timeout_tip); }
public void loadData() { int ret = FunclibAgent.getInstance().GetP2PDevConfig(m_device_id, 501); if (0 != ret) { toast(R.string.dlg_get_media_param_fail_tip); finish(); return; } mTipDlg.setCallback( new ProgressDialog.ICallback() { @Override public void onTimeout() { finish(); } @Override public boolean onCancel() { return false; } }); showTipDlg(R.string.dlg_get_media_param_tip, 20000, R.string.dlg_get_media_param_timeout_tip); }