Question: This is to help you practice dealing with HTML/Web content in Android apps. 1. TextView Follow the tutorial to display HTML text on the screen.

This is to help you practice dealing with HTML/Web content in Android apps.

1. TextView

Follow the tutorial to display HTML text on the screen. Take two screenshots from the first two examples.

http://abhiandroid.com/ui/html

2. WebView

Follow the tutorials below to practice using WebView. Take a screenshot of your running app.

Web view: https://www.youtube.com/watch?v=4Fp34mwEhPE

[Bonus] Small project can extend to a full term project.

Build a simple mini browser.

The mini browser has five UI components:

a WebView control to display webpages

a textbox/EditText (address bar for URL)

a button to load/display the URL into the WebView

a spinner to show the last 5 visited websites (history) of the current session.

A user can choose a URL from the spinner (also the textbox will be updated with the chosen URL) and then the webpage will be displayed in the WebView after hitting the button.

Visit some websites to test the app.

You may get more reference at:

https://www.youtube.com/watch?v=8ayK3odtP8M

https://developer.android.com/guide/webapps/webview.html

https://developer.android.com/reference/android/webkit/WebView.html

https://www.androidauthority.com/working-with-webview-736873/

http://abhiandroid.com/createandroidapp/create-html-app

Take a screenshot in Android Studio layout designer (with preview on). Take several more screenshots of the running app in the emulator or actual phone, with results displayed to prove the functionalities work. You need to explain each screenshot. Provide source code in the main Java code file (main_activity).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!