Константин
Константин

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

  • 13235
Загружено: Константин . Категория: Программирование . 27 июля 2013.
На этом видео:
Описание
Android программирование (видеоуроки). В этом уроке узнаем, что такое Uri и Intent-атрибут data, и вызываем системные приложения (браузер, звонилка, карта).

Мы знаем, что Intent имеет атрибут action. С помощью этого атрибута обычно дается указание действия. Например, просмотр или редактирование. Но действие обычно совершается не просто так, а с чем-либо. Значит кроме указания действия, мы должны указывать на объект, с которым эти действия нужно произвести. Для этого Intent имеет атрибут data.

Чтобы посмотреть координаты на карте, необходимо приложение Google Maps. Его нет в стандартных Android платформах.

Нам нужны дополнения от Google. Как их установить, подробно расписано здесь: http://startandroid.ru/ru/uroki/vse-uroki-spiskom/10-kontent/pamjatka/71-kak-obnovit-eclipse-adt-plagin-i-android-sdk.html

Uri -- это объект, который берет строку, разбирает ее на составляющие и хранит в себе эту информацию. Строка, конечно, должна быть не любая, а составлена в соответствии с документом RFC 2396:

http://www.faqs.org/rfcs/rfc2396.html

Для англоязычных пользователей есть английские титры.

Текстовая версия урока: http://startandroid.ru/ru/uroki/vse-uroki-spiskom/70-urok-31-zachem-u-intent-est-atribut-data-chto-takoe-uri-vyzyvaem-sistemnye-prilozhenija.html

Обсуждение урока на форуме: http://forum.startandroid.ru/viewtopic.php?t=120

Android Programming (video tutorial). In this lesson you will learn what Uri and Intent-attribute data, and call

the system applications (browser, dialer, map).

We know that the Intent has an attribute action. Use of this attribute is usually given to specify the action. For example, viewing or editing. But the action usually is not done just so, and with anything. So in addition to indicating the action, we must point to the object with which these actions are to be produced. For this Intent has the attribute data.

To see the coordinates on the map, you need the application Google Maps. He is not in the standard Android

platforms. We need a supplement from Google. How to install them, painted in detail here:

http://startandroid.ru/ru/uroki/vse-uroki-spiskom/10-kontent/pamjatka/71-kak-obnovit-eclipse-adt-plagin-i-android-sdk.html

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: http://www.faqs.org/rfcs/rfc2396.html

For English-speaking users have English subtitles.

Text version of the lesson: http://startandroid.ru/ru/uroki/vse-uroki-spiskom/70-urok-31-zachem-u-intent-est-atribut-data-chto-takoe-uri-vyzyvaem-sistemnye-prilozhenija.html

Talk lesson Online: http://forum.startandroid.ru/viewtopic.php?t=120
Подробнее