Justin Klaassen | d36d63e | 2015-05-05 12:59:36 -0700 | [diff] [blame^] | 1 | package com.android.calculator2; |
| 2 | |
| 3 | import android.app.Activity; |
| 4 | import android.os.Bundle; |
| 5 | import android.webkit.WebView; |
| 6 | |
| 7 | public class Licenses extends Activity { |
| 8 | |
| 9 | private static final String LICENSE_URL = "file:///android_asset/licenses.html"; |
| 10 | |
| 11 | @Override |
| 12 | protected void onCreate(Bundle savedInstanceState) { |
| 13 | super.onCreate(savedInstanceState); |
| 14 | |
| 15 | final WebView webView = new WebView(this); |
| 16 | webView.loadUrl(LICENSE_URL); |
| 17 | |
| 18 | setContentView(webView); |
| 19 | } |
| 20 | } |