blob: 27fdbe24157532dbffcc67abeeb22791c744102b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
package de.danoeh.antennapod.activity;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import de.danoeh.antennapod.R;
/** Displays the 'about' screen */
public class AboutActivity extends ActionBarActivity {
private WebView webview;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getSupportActionBar().hide();
setContentView(R.layout.about);
webview = (WebView) findViewById(R.id.webvAbout);
webview.setWebViewClient(new WebViewClient() {
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
view.loadUrl(url);
return false;
}
});
webview.loadUrl("file:///android_asset/about.html");
}
}
|