content: package com.agenthun.bleecg.activity;
  
  import android.os.Bundle;
  import android.support.v7.app.AppCompatActivity;
  import android.support.v7.widget.Toolbar;
  import android.util.Log;
  import android.view.View;
  import android.view.WindowManager;
  import android.webkit.WebSettings;
  import android.webkit.WebView;
  
  import com.agenthun.bleecg.R;
  
  public class TipsActivity extends AppCompatActivity {
  
      private static final String TAG = "TipsActivity";
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_tips);
  
          getWindow().addFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
  
          Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
          toolbar.setTitle("");
          toolbar.setNavigationIcon(R.drawable.ic_arrow_back_white_24dp);
          setSupportActionBar(toolbar);
          toolbar.setNavigationOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  Log.d(TAG, "onBackPressed()");
                  onBackPressed();
              }
          });
  
          WebView webView = (WebView) findViewById(R.id.webView);
          WebSettings webSettings = webView.getSettings();
          webSettings.setDomStorageEnabled(true);
          webSettings.setAppCacheMaxSize(1024 * 1024 * 2);
          webSettings.setAppCachePath(this.getApplicationContext().getDir("cache", MODE_PRIVATE).getPath());
          webSettings.setAllowFileAccess(true);
          webSettings.setAppCacheEnabled(true);
          webSettings.setCacheMode(WebSettings.LOAD_CACHE_ELSE_NETWORK);
          webView.loadUrl("file:///android_asset/index.html");
      }
  
      @Override
      public void onBackPressed() {
          super.onBackPressed();
          finish();
      }
  }
  