コード例 #1
0
  @Override
  protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);

    if (data != null) {

      Uri file =
          SideLoadTypeChoosingFragment.getUriFromActivityResult(
              requestCode, resultCode, data, SharingHelper.getLoadInformation());
      if (file != null) {
        loadVersion(file);
      }
    }
  }
コード例 #2
0
  private void showSideLoadDialog() {

    SideLoadTypeChoosingFragment.constructFragment(
            SharingHelper.getLoadInformation(),
            new SideLoadTypeChoosingFragment.SideLoadChoosingFragmentListener() {
              @Override
              public void finishWithFile(Uri uri) {
                loadVersion(uri);
              }

              @Override
              public void finishWithText(String s) {}
            })
        .show(getSupportFragmentManager(), "SideLoadTypeChoosingFragment");
  }