Example usage for android.media.tv TvInputInfo EXTRA_INPUT_ID

List of usage examples for android.media.tv TvInputInfo EXTRA_INPUT_ID

Introduction

In this page you can find the example usage for android.media.tv TvInputInfo EXTRA_INPUT_ID.

Prototype

String EXTRA_INPUT_ID

To view the source code for android.media.tv TvInputInfo EXTRA_INPUT_ID.

Click Source Link

Document

Used as a String extra field in setup intents created by #createSetupIntent() to supply the ID of a specific TV input to set up.

Usage

From source file:com.github.mkjensen.dml.live.SetupFragment.java

private void initInputId() {
    inputId = intentStringExtraNotNull(getActivity().getIntent(), TvInputInfo.EXTRA_INPUT_ID);
}

From source file:com.example.android.sampletvinput.rich.RichSetupFragment.java

@Override
public void onCreate(Bundle savedInstanceState) {
    Log.d(TAG, "onCreate SetupFragment");
    super.onCreate(savedInstanceState);

    LocalBroadcastManager.getInstance(getActivity()).registerReceiver(mSyncStatusChangedReceiver,
            new IntentFilter(SyncJobService.ACTION_SYNC_STATUS_CHANGED));

    mInputId = getActivity().getIntent().getStringExtra(TvInputInfo.EXTRA_INPUT_ID);
    new SetupRowTask().execute();
}