Shows query tiles in ntp android

Query Tiles Service

Introduction

Query tiles is a new feature to bring down the barriers for NIU users and boost their confidence when using Chrome in Android. It encourages users to explore the internet by simply clicking on a few image tiles, and building a search query to find the information they want.

With this feature enabled, users will see a list of image tiles with the corresponding query strings shown on NTP(new tab page) and Omnibox suggestions. By clicking on those tiles, users will be directed to the search result page provided.

The client side will schedule fetch tasks from Google server periodically to update the latest data and images based on the user’s locale.

Code structure

components/query_tiles Public interfaces and data structure.

chrome/browser/query_tiles include service factory and background task client code.

components/browser_ui/widget/image_tiles Generic widget representing image tiles carousel.

TileService — Public interface for query tile service.

TileServiceScheduer — Handles scheduling tasks to fetch tiles from the server.

TileManager — Store and dispense query tiles.

ImageTileCoordinator — UI widget representing the carousel.

TileProvider — Handles backend interaction from the Java layer

QueryTileSection — Query tiles widget on NTP.

QueryTileProvider — Provider for omnibox query tile suggestions.

Test and debug

Feature flags

Disable Start surface

Enable Query tiles

Enable Query tiles in omnibox

Set Country code for getting tiles to IN or US

If you’d like to see the UI immediately, enable Query tile instant fetch , restart Chrome twice and wait for 10 seconds.

Источник

Shows query tiles in ntp android

Краткое описание:
Браузер Chrome для мобильных устройств на базе Android.

Google Chrome – это удобный, быстрый и безопасный браузер. Он создан специально для Android. В Chrome вам доступны персонализированные новости, быстрый переход на любимые сайты, скачивание контента, а также встроенные Google Поиск и Google Переводчик.

Расходуйте меньше времени и трафика благодаря специальному режиму в Chrome.
Браузер сжимает текст, изображения, видео и сайты без потери качества, что позволяет экономить до 60% трафика.

Получайте доступ к контенту в одно касание.
В Chrome можно не только пользоваться быстрым Google Поиском, но и открывать любимые сайты (например, новостные ресурсы или социальные сети) на новой вкладке одним нажатием. Кроме того, в Chrome есть встроенная функция поиска. Просто нажмите на слово или словосочетание, чтобы найти его в Google, не покидая исходную веб-страницу.

Скачивайте контент и открывайте его в офлайн-режиме.
Специальная кнопка в Chrome позволяет скачивать видео, изображения и целые веб-страницы в одно касание. Все скачанные файлы сохраняются на одноименной вкладке Chrome и становятся доступны в офлайн-режиме.

Читайте также:  Управление чайником редмонд с андроида

Защитите телефон, используя Безопасный просмотр.
Встроенную функцию Chrome. Если она включена, при попытке открыть опасный сайт или скачать подозрительный файл в Chrome появится соответствующее предупреждение.

Используйте голосовое управление.
Просто скажите Chrome, что нужно сделать. Находите нужную информацию в Google с помощью голосового поиска, быстро открывайте и просматривайте веб-страницы где угодно и когда угодно.

Переводите текст на экране.
Благодаря встроенному Google Переводчику вы можете переводить целые веб-страницы в Chrome одним нажатием.

Получайте персональные рекомендации.
Chrome запоминает и учитывает ваши интересы. Открыв новую вкладку в Chrome, вы увидите статьи, выбранные на основе вашей истории просмотров. Чтобы сделать поиск в Google ещё быстрее, Chrome может предлагать вам варианты запросов и веб-адресов – они будут появляться по мере ввода.

Сохраняйте конфиденциальность.
Веб-страницы, открытые в режиме инкогнито, не сохраняются в истории просмотров.

Синхронизируйте данные.
При входе в Chrome закладки, пароли и настройки автоматически синхронизируются и становятся доступны на всех ваших устройствах.

Требуется Android: 6.0+
Русский интерфейс: Да

Источник

Shows query tiles in ntp android

TrueTime for Android

Make sure to check out our counterpart too: TrueTime, an NTP library for Swift.

NTP client for Android. Calculate the date and time «now» impervious to manual changes to device clock time.

In certain applications it becomes important to get the real or «true» date and time. On most devices, if the clock has been changed manually, then a new Date() instance gives you a time impacted by local settings.

Users may do this for a variety of reasons, like being in different timezones, trying to be punctual by setting their clocks 5 – 10 minutes early, etc. Your application or service may want a date that is unaffected by these changes and reliable as a source of truth. TrueTime gives you that.

You can read more about the use case in our blog post.

In a recent conference talk, we explained how the full NTP implementation works with Rx. Check the video and slides out for implementation details.

Also, once we have this information it’s valid until the next time you boot your device. This means if you enable the disk caching feature, after a single successful NTP request you can use the information on disk directly without ever making another network request. This applies even across application kills which can happen frequently if your users have a memory starved device.

Wiki has a lot of useful information

Take a look at the wiki sidebar which should have a lot of useful information.

Is this library still maintained?

The short answer is yes. We’re planning a complete rewrite of TrueTime (Version 4). See this branch. We juggle our personal time between doing this rewrite and using TrueTime in its current version. TrueTime is still used in its current form at Instacart by many many users.

Читайте также:  What is android malware

As is the case with most open source libraries, maintenance is hard. We’ve not done a great job at answering the various issues, but we want to do better. We can only ask that you trust that the rewrite is coming and it should make things better. We don’t want to spend too much time making changes to the library in its existing state, because the rewrite is the better future for TrueTime.

Источник

Shows query tiles in ntp android

Краткое описание:
Браузер Chrome для мобильных устройств на базе Android.

Google Chrome – это удобный, быстрый и безопасный браузер. Он создан специально для Android. В Chrome вам доступны персонализированные новости, быстрый переход на любимые сайты, скачивание контента, а также встроенные Google Поиск и Google Переводчик.

Расходуйте меньше времени и трафика благодаря специальному режиму в Chrome.
Браузер сжимает текст, изображения, видео и сайты без потери качества, что позволяет экономить до 60% трафика.

Получайте доступ к контенту в одно касание.
В Chrome можно не только пользоваться быстрым Google Поиском, но и открывать любимые сайты (например, новостные ресурсы или социальные сети) на новой вкладке одним нажатием. Кроме того, в Chrome есть встроенная функция поиска. Просто нажмите на слово или словосочетание, чтобы найти его в Google, не покидая исходную веб-страницу.

Скачивайте контент и открывайте его в офлайн-режиме.
Специальная кнопка в Chrome позволяет скачивать видео, изображения и целые веб-страницы в одно касание. Все скачанные файлы сохраняются на одноименной вкладке Chrome и становятся доступны в офлайн-режиме.

Защитите телефон, используя Безопасный просмотр.
Встроенную функцию Chrome. Если она включена, при попытке открыть опасный сайт или скачать подозрительный файл в Chrome появится соответствующее предупреждение.

Используйте голосовое управление.
Просто скажите Chrome, что нужно сделать. Находите нужную информацию в Google с помощью голосового поиска, быстро открывайте и просматривайте веб-страницы где угодно и когда угодно.

Переводите текст на экране.
Благодаря встроенному Google Переводчику вы можете переводить целые веб-страницы в Chrome одним нажатием.

Получайте персональные рекомендации.
Chrome запоминает и учитывает ваши интересы. Открыв новую вкладку в Chrome, вы увидите статьи, выбранные на основе вашей истории просмотров. Чтобы сделать поиск в Google ещё быстрее, Chrome может предлагать вам варианты запросов и веб-адресов – они будут появляться по мере ввода.

Сохраняйте конфиденциальность.
Веб-страницы, открытые в режиме инкогнито, не сохраняются в истории просмотров.

Синхронизируйте данные.
При входе в Chrome закладки, пароли и настройки автоматически синхронизируются и становятся доступны на всех ваших устройствах.

Требуется Android: 6.0+
Русский интерфейс: Да

Источник

Google Chrome tests “Query Tiles” to speed up searching on mobile

The new tab page in Google Chrome has seen several redesigns since its inception and Google continues to experiment with different features to make the previously empty page more useful. Back in December last year, Google started testing a radically new UI for the Chrome new tab page which moved all UI elements closer to the top of the display and replaced recommended articles with tab organization features. While the previous redesign still hasn’t made it to Chrome on the stable channel, Google has now started testing another design change that adds new ‘Query tiles’ on the new tab page to help you quickly start a search.

Читайте также:  Нужно ли сохранять проект после закрытия android studio нет

According to a recent report from Android Police, the new Query Tiles are nothing but predefined search shortcuts with images that let you get the latest results related to a few different topics without the need to type out keywords in the search bar. As of now, Google is offering 13 first-level tile categories in the US: News, Films, Recipes, Fashion, Music, Health, Electronics, TV Shows, Sports, Astrology, Education, Investment, and Automobile. Tapping on each tile brings up a few sub-categories underneath it, like COVID-19 under news or video games under electronics.

Query editing flag disabled.

Once you make a selection, Chrome automatically starts a search based on the tile keywords you choose and the results are displayed in the same tab. Alternatively, you also get the option to edit the search before it’s submitted to get more customized results. You can alternate between these two behaviors by enabling/disabling the #query-tiles-enable-query-editing flag.

Query editing flag enabled.

The tiles feature is currently available on Chrome Dev and Canary, but it might reach the beta and stable channels in future updates. In case you wish to try out the new query tiles on your device, you’ll need to head over to chrome://flags, search for ‘query tiles’, and then enable the #query-tiles flag.

There are a total of six different flags related to the feature, that you can use to further customize how query tiles work on your device. Here are all the related flags, along with a brief explanation:

  • #query-tiles: enables the query tiles feature in the new tab page.
  • #query-tiles-omnibox: enables query tiles to show up below the Omnibox, both on the new tab page and anytime you click on the Omnibox in a tab.
  • #query-tiles-country-code: personalizes the tile content based on location. As of now, you can pick the USA, India, Brazil, Nigeria, and Indonesia.
  • #query-tiles-enable-query-editing: lets you edit the search query before it’s submitted.
  • #query-tiles-single-tier: limits queries to a single level, no sub-categories.
  • #query-tiles-instant-fetch: no user-facing changes.

As Chrome flags are experimental in nature, we can’t be sure if Google will release the query tiles flags on the stable channel anytime soon or if they’ll be discarded like the Duet experiment that Google recently killed off.

Источник

Оцените статью