Skip to content

LS-Manila/displaywebpagedemo-rybackpo

Repository files navigation

Display Webpage demo (with WebView)

displaywebpagedemo-rybackpo created by Classroom for GitHub

This assignment illustrates how to display a webpage from an Android application.

Problem:

Implement an Android application that displays DLSU webpage on launch.

Basic WebView usage in MainActivity.java:

   public void displayWebpage(){
        WebView webview = (WebView) findViewById(R.id.viewwebpagedlsu);
        webview.loadUrl("http://www.dlsu.edu.ph");
    }

Sample Solution:

https://github.com/DeLaSalleUniversity-Manila/displaywebpagedemo-rybackpo

Keypoints:

On layout xml:

 <WebView
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/viewwebpagedlsu"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

On AndroidManifext xml (In order to have Access to the Internet):

<uses-permission android:name="android.permission.INTERNET" />

Screenshots:

alt tag

alt tag

alt tag

About

displaywebpagedemo-rybackpo created by Classroom for GitHub

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages