public void loadUrlFromTextBox(View view) throws UnsupportedEncodingException {
// Get the text from urlTextInput and convert it to a string.
- final EditText urlTextBox = (EditText) findViewById(R.id.urlTextBox);
- final WebView mainWebView = (WebView) findViewById(R.id.mainWebView);
String unformattedUrlString = urlTextBox.getText().toString();
URL unformattedUrl = null;
Uri.Builder formattedUri = new Uri.Builder();
android:id="@+id/home"
android:title="@string/home"
android:orderInCategory="100"
+ android:icon="@drawable/ic_home_black_24dp"
app:showAsAction="ifRoom" />
<item
android:id="@+id/back"
android:title="@string/back"
android:orderInCategory="200"
+ android:icon="@drawable/ic_back"
app:showAsAction="ifRoom" />
<item
android:id="@+id/forward"
android:title="@string/forward"
android:orderInCategory="300"
+ android:icon="@drawable/ic_forward"
app:showAsAction="ifRoom" />
</menu>
jcenter()
}
dependencies {
- classpath 'com.android.tools.build:gradle:1.3.0'
+ classpath 'com.android.tools.build:gradle:1.3.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files