mirror of http://galexander.org/git/simplesshd.git
Android TV doesn't have Chrome, I guess). This resolves the conundrum of what to do about the one Samsung Note 7 out there that doesn't have Chrome, too.master
parent
6a61e61a74
commit
bbbbb36795
@ -0,0 +1,27 @@
|
||||
package org.galexander.sshd;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.os.Bundle;
|
||||
import android.webkit.WebView;
|
||||
|
||||
public class DocActivity extends Activity
|
||||
{
|
||||
public static final String url =
|
||||
"http://www.galexander.org/software/simplesshd";
|
||||
private WebView wv = null;
|
||||
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.doc);
|
||||
wv = (WebView)findViewById(R.id.docview);
|
||||
}
|
||||
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
wv.loadUrl(url);
|
||||
}
|
||||
|
||||
public void onPause() {
|
||||
super.onPause();
|
||||
}
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
package org.galexander.sshd;
|
||||
|
||||
public class DocActivityTV extends DocActivity
|
||||
{
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<WebView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/docview"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent" />
|
Loading…
Reference in new issue