Start Аndroid: Урок 31. Зачем у Intent есть атрибут data. Что такое Uri. Cистемные приложения

  • 6 years ago
Скачать видео урок, его текстовую версию, а также исходный код проекта можно по этой ссылке: \r
Android программирование (видеоуроки). В этом уроке узнаем, что такое Uri и Intent-атрибут data, и вызываем системные приложения (браузер, звонилка, карта). \r
\r
Мы знаем, что Intent имеет атрибут ion. С помощью этого атрибута обычно дается указание действия. Например, просмотр или редактирование. Но действие обычно совершается не просто так, а с чем-либо. Значит кроме указания действия, мы должны указывать на объект, с которым эти действия нужно произвести. Для этого Intent имеет атрибут data.\r
\r
Чтобы посмотреть координаты на карте, необходимо приложение Google Maps. Его нет в стандартных Android платформах. \r
\r
Нам нужны дополнения от Google. Как их установить, подробно расписано здесь: \r
\r
Uri -- это объект, который берет строку, разбирает ее на составляющие и хранит в себе эту информацию. Строка, конечно, должна быть не любая, а составлена в соответствии с документом RFC 2396: \r
\r
\r
\r
Для англоязычных пользователей есть английские титры.\r
\r
Текстовая версия урока: \r
\r
Обсуждение урока на форуме: \r
\r
Android Programming (video tutorial). In this lesson you will learn what Uri and Intent-attribute data, and call \r
\r
the system applications (browser, dialer, map).\r
\r
We know that the Intent has an attribute ion. Use of this attribute is usually given to specify the ion. For example, viewing or editing. But the ion usually is not done just so, and with anything. So in addition to indicating the ion, we must point to the object with which these ions are to be produced. For this Intent has the attribute data.\r
\r
To see the coordinates on the map, you need the application Google Maps. He is not in the standard Android \r
\r
platforms. We need a supplement from Google. How to install them, painted in detail here: \r
\r
\r
\r
Uri - an object that takes a string, parses it into components and keeps this information. String, of course, should not be any, as prepared in accordance with the document RFC 2396: \r
\r
For English-speaking users have English subtitles.\r
\r
Text version of the lesson: \r
\r
Talk lesson Online: