Create an HTML page using your favorite web editor, or you may just reuse the HTML page in the resources provided (in the assets
folder, file name info.html
). The HTML page, as shown in the following screenshot, is a simple HTML page that contains the app information. If you find that the HTML is too simple, do add your own information. In this exercise, we will put the HTML pages and the resources inside the assets
folder, hence before proceeding, copy all the related materials of the HTML page into the assets
folder.
Next is to edit the source code for Info.java
that resides in the folder src/net.kerul.simplenumb3r5
. Add the following code to the existing template:
package net.kerul.simplenumb3r5; import android.app.Activity; import android.os.Bundle; import android.webkit.WebView; public class Info extends Activity { private WebView webinfo; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState...