Code Monkey home page Code Monkey logo

Comments (5)

cyberdreamandroid avatar cyberdreamandroid commented on September 3, 2024 1

The problem causing the Philips not adding channels is line 306 in Channel.java:
values.put(TvContract.Channels.COLUMN_SEARCHABLE, mSearchable);
If I disable this line, it is working with your sample.
Line 97-98 is not causing a problem, but bad code which should not be in an official Google sample project.

from androidtv-sample-inputs.

cyberdreamandroid avatar cyberdreamandroid commented on September 3, 2024

Got it working now. Problem seems to be the updateChannels() method which I replaced. I will provide a working example tomorrow. Please also have a look at the weird lines 97 and 98 of TvContractUtils, they seem to be duplicated.

from androidtv-sample-inputs.

Fleker avatar Fleker commented on September 3, 2024

Lines 97-98

cursor = resolver.query(channelsUri, projection, null, null, null);
cursor = resolver.query(channelsUri, projection, null, null, null);

Yes, it is being repeated.
Is this causing a problem on Philips TVs?

from androidtv-sample-inputs.

Fleker avatar Fleker commented on September 3, 2024

COLUMN_SEARCHABLE:
https://developer.android.com/reference/android/media/tv/TvContract.Channels.html#COLUMN_SEARCHABLE

This seems like a problem in the Philips implementation of TIF or Android TV. That's a field that should exist as part of the Android framework and developers shouldn't have to worry about a problem with that field.

Someone within Google should probably get in contact with Philips about fixing this bug. A workaround could be checking the device name before setting that field.

from androidtv-sample-inputs.

Tom60chat avatar Tom60chat commented on September 3, 2024

The problem causing the Philips not adding channels is line 306 in Channel.java:
values.put(TvContract.Channels.COLUMN_SEARCHABLE, mSearchable);
If I disable this line, it is working with your sample.
Line 97-98 is not causing a problem, but bad code which should not be in an official Google sample project.

Removing this line makes the fixed sample project (#44) work, on an android box (API 25) and an emulator (API 30)

from androidtv-sample-inputs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.