@Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    NsisApplication.getInstance().addActivity(this);
    setContentView(R.layout.activity_duty_group_edit);
    ActivityUtil.makeActivity2Dialog(this);

    getInfo();

    initView();
    loadBedScanData(LoginInfo.OFFICE_ID, false);
  }
Example #2
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    NsisApplication.getInstance().addActivity(this);

    Education video = (Education) getIntent().getSerializableExtra("video");
    if (video != null) {
      mTextTitle.setText(video.getTitle());
      mTextTime.setText(video.getTime());
      String urlString = LoginInfo.mFileUrl.getUrl() + "/" + video.getUrl();
      L.i("视频地址:" + urlString);
      Uri uri = Uri.parse(urlString);
      mVideoView.setMediaController(new MediaController(this));
      mVideoView.setVideoURI(uri);
      mVideoView.start();
      mVideoView.requestFocus();
    }
  }