tv-samples icon indicating copy to clipboard operation
tv-samples copied to clipboard

Android Tv Searchable function not working on Android 10.0

Open Nathan-Feng opened this issue 4 years ago • 21 comments

Hi Android Team I am a developer from OEM Hisense, Right now I am testing tv-amples leanback function in Android TV Platform (including Amlogic S905,Realtek 1319 chipset), I found that searchable function not ok in ATV 10.0, after add log in com.example.android.tvleanback.data.VideoProvider.java line:161 query , and click search funtion in ATV Launcher ,I have got nothing log output, Can you help to check this function? ATV Pie is OK, Thank you.

Nathan-Feng avatar Apr 17 '20 03:04 Nathan-Feng

For the search by default, there should be mike enabled. Please verify that first. If you don't have mike enabled, need to customize search Fragment

aaghan avatar Apr 17 '20 17:04 aaghan

@aaghan Hi aaghan ,thank you very much for your reply, Maybe I can describe the issue clearly, after sun tv-sample in android studio and run in Android TV Q platform, I want to check the this link function is OK or not Make TV apps searchable And I have checked the tv-sample creat a sqlite database in /data/data/packagename/databases/leanback.db there are some programs in that db. So I return to the ATV Home Lancher, using voice to speak some suggest text words, result is nothing output. also I input some suggest text from leanback.db, bug not got any result. only Youtube result appear to me . So I think maybe this searchable function is not OK in ATV 10.0 platform. Can you help to check ? Thanks

Nathan-Feng avatar Apr 19 '20 02:04 Nathan-Feng

Hi, we have similar issue. We tested GlobalSearch on ADT-3, it seems Katniss never try to query suggestion from tv-sample. It only send "dummy" query to search provider when user press google assistant. Katniss never send "suggest text" to apps which declared so support Global Search. However, the same tv-sample app runs on Mibox s works as we expected. So, we wonder if there is anyone able to make searchable function(global search) works as intended on ATV 10?

lancelotchang avatar Apr 23 '20 05:04 lancelotchang

@lancelotchang Is your Mibox Android version 10.0 ?

Nathan-Feng avatar Apr 25 '20 01:04 Nathan-Feng

@lancelotchang Is your Mibox Android version 10.0 ?

No, it’s android p, however the version of google app on both devices are identical...

lancelotchang avatar Apr 25 '20 12:04 lancelotchang

@lancelotchang So I think only Android 10.0 has this issue.

Nathan-Feng avatar Apr 25 '20 13:04 Nathan-Feng

Will need to investigate this.

IanGClifton avatar May 08 '20 01:05 IanGClifton

update: after updating Katiness to 4.1.0.310049754, global search works as expected.

lancelotchang avatar May 27 '20 04:05 lancelotchang

update: after updating Katiness to 4.1.0.310049754, global search works as expected. @lancelotchang Where can I got Katiness version 4.1.0.310049754 same as you? Thank you

Nathan-Feng avatar May 28 '20 01:05 Nathan-Feng

Updates to ATV Assistant (Katniss) went out earlier this year, which should have fixed this issue. @Nathan-Feng can you confirm this is working for you now?

IanGClifton avatar Sep 22 '20 21:09 IanGClifton

Updates to ATV Assistant (Katniss) went out earlier this year, which should have fixed this issue. @Nathan-Feng can you confirm this is working for you now?

@IanGClifton Hi ,I found the GTVS (Android Q )package Katniss version always 3.13.0.278974704, so I updating from Google Play store , Right now : ATV Katness version is 4.3.0.331205520. But when searching something ,the result shown me the same : 'dummy' Can you help to check? Thank you very much.

Nathan-Feng avatar Sep 25 '20 09:09 Nathan-Feng

Yeah, there were substantial changes from 3.x to 4.x of Katniss, so it's best to test on the latest 4.x version at this point. Can you clarify what you mean by the 'dummy' result?

IanGClifton avatar Sep 25 '20 20:09 IanGClifton

Yeah, there were substantial changes from 3.x to 4.x of Katniss, so it's best to test on the latest 4.x version at this point. Can you clarify what you mean by the 'dummy' result?

Hi @IanGClifton In tv-sample. It only send "dummy" query to search provider when I press google assistant. VideoProvider.java line 165:rawQuery always equal dummy

Nathan-Feng avatar Sep 26 '20 03:09 Nathan-Feng

It looks like the dummy query is used to "warm up" the content provider in case of a future query, but you should see a query go to the app if it's specifically named with something like "Play [content] on [app name]" (e.g., "Play instant upload on videos by google").

IanGClifton avatar Sep 29 '20 19:09 IanGClifton

I'm developing Android TV with Android 9. about global search feature, it's difficult to recognize by using voice to speak (even it didn't recognize). with by using search text, it is difficult to find. It always shows the result from youtube although i search with keyword the same my content. can anybody suggest to me about the solution for this?

catmans1 avatar Nov 27 '20 03:11 catmans1

Here is issue tracker related to Android TV searchable feature https://issuetracker.google.com/issues/171236084

catmans1 avatar Dec 07 '20 09:12 catmans1

@IanGClifton I have downloaded latest version of tv-samples, and updated Katniss application on my Android device to last version.

When I enter 'zeitgeist' as a search query, Google TV sends 'zeitgeist' to VideoProvider. Video is found in DB and displayed. 2 queries received from this case: 'dummy' and then 'zeitgeist'.

But when I enter another text related to sample videos (e.g. 'fusce', which is 1st word in Video description), Google TV sends only 'dummy' to VideoProvider. Hence no video is found by this query.

Could you please help solving this issue. Thanks in advance.

DarkMike82 avatar Dec 11 '20 15:12 DarkMike82

@DarkMike82 have you found out what is happening? we are having the same exact issue.

szaboa avatar Jan 19 '21 07:01 szaboa

i seem to have a similar problem, I am running the latest leanback sample on a android 10 emulator, and i get nothing from global search from the app, no matter what i search

nicusorflorin avatar Jan 19 '21 09:01 nicusorflorin

I have Implemented global search in my app based on this sample, and looks like it works incorrectly. When I type 'panda' in search field I got 'dummy' in query() of ContentProvider's (in selectionArgs param). When I type 'pand' I got 'dummy' and 'pand' in that method. That is very strange logic. And as usual, there is no documentation, there is no working sample. Say hello Google :/

I used mibox4 with android TV on android 9. But I'm pretty sure that it can be reproduced on any other android TV device (I checked on other TV devices, mostly xiaomi mi tv).

evgentset avatar Dec 02 '21 16:12 evgentset

i downloaded latest version tv-samples Leanback , and run successfully, i want search app content globally, i used key words "new dad", "dummy" but there is no this app, i used google voice search button on dpad for searching, can someone five any idea or any example . thank you

samandarkuchkarov avatar Jan 05 '24 05:01 samandarkuchkarov