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 | */
|
---|
18 | package org.greenstone.android.tipple;
|
---|
19 |
|
---|
20 | import android.app.Activity;
|
---|
21 | import android.os.Bundle;
|
---|
22 | import android.webkit.WebView;
|
---|
23 |
|
---|
24 | /**
|
---|
25 | * Simple activity to display the info web page from the assets folder.
|
---|
26 | */
|
---|
27 | public 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 | } |
---|