Changes

Jump to: navigation, search

Android Implicit Intents – An Android Studio Example

21 bytes added, 19:55, 27 October 2016
m
Text replacement - "<table border="0" cellspacing="0">" to "<table border="0" cellspacing="0" width="100%">"
<htmlet>androidstudio_a6androidstudio</htmlet>
== Designing the User Interface ==
<googlehtmlet>ADSDAQBOX_FLOWadsdaqbox_flow</googlehtmlet>
The user interface for the ImplicitIntentActivity class is very simple, consisting solely of a RelativeLayout view and a button. Within the Project tool window, locate the app -> res -> layout -> activity_implicit_intent.xml file and double click on it to load it into the Designer tool. Visually construct the user interface in Design mode so that it resembles Figure 33-1, or enter the following XML in Text mode. Note that in both cases, the text on the button (“Show Web Page”) has been extracted to a string resource named button_text:
Double-click on the WebView instance and change the ID to @+id/webView1.
<htmlet>androidstudio_a6androidstudio</htmlet>
== Obtaining the Intent URL ==
<htmlet>androidstudio_a6androidstudio</htmlet>
 
<htmlet>ezoicbottom</htmlet>
<hr>
<table border="0" cellspacing="0" width="100%">

Navigation menu