Back to project page retain-android.
The source code is released under:
GNU General Public License
If you think the Android project retain-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.retain2; /*w ww . j a v a2 s . c o m*/ import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import com.retain2.R; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.Window; import android.webkit.WebSettings; import android.webkit.WebView; import android.widget.LinearLayout; public class HelpActivity extends Activity { private static final String LOG_TAG = "HelpActivity"; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); setContentView(R.layout.help); getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.main_title); LinearLayout ll = (LinearLayout) findViewById(R.id.OrderButtons); ll.setVisibility(View.INVISIBLE); String helpData = AppUtils.fromRawResourceFile(R.raw.retain_help, this); WebView wv = (WebView) findViewById(R.id.webviewHelp); wv.setBackgroundColor(-11119018); wv.loadData( helpData, "text/html", "utf-8"); wv.setVisibility(View.VISIBLE); } @Override protected void onDestroy() { super.onDestroy(); } @Override protected void onResume() { super.onResume(); } }