X-Git-Url: http://gitweb.fperrin.net/?a=blobdiff_plain;f=src%2Fcom%2Fhughes%2Fandroid%2Fdictionary%2FHelpActivity.java;h=2d5c1418cb58b40a859c3466703c6c5c0e0c7d1a;hb=345055ac4070d908ac2d954a580bddf622c1ed00;hp=32067fb1c7aa44c57de558d720aa3d87fc346188;hpb=c7860e7202c7c4b69437220a8851c98e686ab703;p=Dictionary.git diff --git a/src/com/hughes/android/dictionary/HelpActivity.java b/src/com/hughes/android/dictionary/HelpActivity.java index 32067fb..2d5c141 100644 --- a/src/com/hughes/android/dictionary/HelpActivity.java +++ b/src/com/hughes/android/dictionary/HelpActivity.java @@ -14,18 +14,29 @@ package com.hughes.android.dictionary; +import com.hughes.util.StringUtil; + import android.app.Activity; +import android.content.Intent; import android.os.Bundle; +import android.webkit.WebView; public final class HelpActivity extends Activity { + + public static Intent getLaunchIntent() { + final Intent intent = new Intent(); + intent.setClassName(HelpActivity.class.getPackage().getName(), HelpActivity.class.getName()); + return intent; + } /** Called when the activity is first created. */ @Override public void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.help_activity); - - + final String html = StringUtil.readToString(getResources().openRawResource(R.raw.help)); + final WebView webView = (WebView) findViewById(R.layout.help_activity); + webView.loadData(html, "text/html", "utf-8"); } }