source: other-projects/tipple-android/trunk-restructured/workspace/tipple-lib/src/org/greenstone/android/tipple/base/InfoView.java@ 24807

Last change on this file since 24807 was 24807, checked in by davidb, 12 years ago

Reloating base files into 'base' package

  • Property svn:executable set to *
File size: 1.2 KB
Line 
1/*
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 3 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 * Based on file of the same name from mapsforge.org
17 */
18package org.greenstone.android.tipple.base;
19
20import android.app.Activity;
21import android.os.Bundle;
22import android.webkit.WebView;
23
24/**
25 * Simple activity to display the info web page from the assets folder.
26 */
27public class InfoView extends Activity
28{
29 @Override
30 protected void onCreate(Bundle savedInstanceState)
31 {
32 super.onCreate(savedInstanceState);
33 WebView webView = new WebView(this);
34 webView.loadUrl("file:///android_asset/info.xml");
35 setContentView(webView);
36 }
37
38 @Override
39 protected void onResume()
40 {
41 super.onResume();
42 }
43}
Note: See TracBrowser for help on using the repository browser.