Search code examples
google-tv

access the user's setting for tv provider in Google TV?


Is there a way to access the TV provider that the user specified during the setup of Google TV? For example, the setup for my zipcode includes TV providers like Comcast, Dish, DirecTV, etc.

My app duplicates this setup widget because it too needs to know the user's TV provider. Instead, I'd like to ask the Google TV system for the setting the user has already made.


Solution

  • The URI changed for the provider changed in the latest update from content://com.google.android.tv.provider/devices to content://com.google.tv.mediadevicesapp.MediaDevicesProvider/devices

     DEVICE_ID = "device_id";   // like Atsc01
     LINEUP_ID = "lineup_id";   // like TMS:OTA94043
     DEFAULT = "is_default";    // 0 or 1  -- Also changed from "default"
    

    I'm answering this here since I mentioned it in the release note last year. Since using this is a rare use case, there is no guarantee we will support it long term.