Android Tutorial 61 - Opening a Webpage

Опубликовано: 25 Март 2014
на канале: Code Here Now
1,938
5

This is an excerpt from Learn by Doing - Android for Beginners on Udemy.
https://www.udemy.com/learn-by-doing-...

Video demonstrates how to use an intent to open a web URL.

Things to Remember
-----------------------------
1. Use the following action, Intent.ACTION_VIEW for your intent.

2. Use the Uri.parse(String) method to create an URI from your URL.

3. Call the Intent.setData(Uri) method on the intent instance to set the website URL.

4. Finally, use the Context.startActivity(Intent) method to open the web browser pointing towards the desired URL.


Смотрите видео Android Tutorial 61 - Opening a Webpage онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Code Here Now 25 Март 2014, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 1,938 раз и оно понравилось 5 людям.