Comments (5)
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.
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.
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.
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.
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)
- package com.google.android.exoplayer.metadata.id3 not found HOT 1
- Overlay not showing on API 28 HOT 4
- Live channels -> Rich Input -> After scan and click finish it , it says No channels Available HOT 2
- Unable to buil sample HOT 4
- How to run the sample on Android TV Emulator? HOT 1
- How to run dvb from coax cable? HOT 1
- More than one file was found with OS independent path 'error_prone/Annotations.gwt.xml' HOT 1
- Live Channels with no audio (onSetStreamVolume gets volume = 0)
- Delete Wrong Issue CLosed
- Cannot be identified as a source HOT 2
- Not a channel: null on Philips TVs
- Not working Google TV
- Migrate to Maven Central
- create record file on 'onStopRecording' method
- Migrate to androidx HOT 1
- Code is old?? HOT 3
- Code is Too old HOT 3
- Unable to make field private final java.lang.String java.io.File.path accessible: module java.base does not "opens java.io" to unnamed module @6e37e88f
- Deprecated?
- Failed in initial building com.jfrog.bintray / org.codehaus.groovy.modules.http-builder:http-builder:0.7.2.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from androidtv-sample-inputs.