Example usage for android.media.tv TvInputManager RECORDING_ERROR_INSUFFICIENT_SPACE

List of usage examples for android.media.tv TvInputManager RECORDING_ERROR_INSUFFICIENT_SPACE

Introduction

In this page you can find the example usage for android.media.tv TvInputManager RECORDING_ERROR_INSUFFICIENT_SPACE.

Prototype

int RECORDING_ERROR_INSUFFICIENT_SPACE

To view the source code for android.media.tv TvInputManager RECORDING_ERROR_INSUFFICIENT_SPACE.

Click Source Link

Document

Error for TvInputService.RecordingSession#notifyError(int) and TvRecordingClient.RecordingCallback#onError(int) : Recording cannot proceed due to insufficient storage space.

Usage

From source file:com.android.tv.dvr.ui.DvrUiHelper.java

/**
 * Shows DVR insufficient space error dialog.
 *///w w  w. j a va2  s .c  o m
public static void showDvrInsufficientSpaceErrorDialog(MainActivity activity,
        Set<String> failedScheduledRecordingInfoSet) {
    Bundle args = new Bundle();
    ArrayList<String> failedScheduledRecordingInfoArray = new ArrayList<>(failedScheduledRecordingInfoSet);
    args.putStringArrayList(DvrInsufficientSpaceErrorFragment.FAILED_SCHEDULED_RECORDING_INFOS,
            failedScheduledRecordingInfoArray);
    showDialogFragment(activity, new DvrInsufficientSpaceErrorDialogFragment(), args);
    Utils.clearRecordingFailedReason(activity, TvInputManager.RECORDING_ERROR_INSUFFICIENT_SPACE);
    Utils.clearFailedScheduledRecordingInfoSet(activity);
}