package net.tomoka319.tweet;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MenuItem;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
import android.webkit.WebViewClient;

@SuppressLint("SetJavaScriptEnabled")
public class webActivity extends Activity {

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
      // Inflate the menu; this adds items to the action bar if it is present.
      getMenuInflater().inflate(R.menu.web, menu);
      return true;
    }
    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
            case R.id.menu_timeline:
            	Intent intent = new Intent (this, MainActivity.class);
            	startActivity(intent);
            	return true;
            case R.id.menu_tweet:
                Intent intent1 = new Intent(this, TweetActivity.class);
                startActivity(intent1);
                return true;
            case R.id.menu_timeline1:
            	Intent intent2 = new Intent (this, MainActivity.class);
            	startActivity(intent2);
            	return true;
            case R.id.menu_tweet1:
            	Intent intent3 = new Intent(this, TweetActivity.class);
            	startActivity(intent3);
            	return true;
        }
        return super.onOptionsItemSelected(item);
    }
    @SuppressWarnings("deprecation")
	@SuppressLint("NewApi")
	@Override
	protected void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_web);
		//CAEgŎw肵WebViewIDw肷B
		WebView  myWebView = (WebView)findViewById(R.id.webView1);		
        //SNS̃ZbVۂ̂ɕKv肵܂B
        myWebView.getSettings().setDomStorageEnabled(true);
		//N^bvƂɕWuEUNȂ
		myWebView.setWebViewClient(new WebViewClient());
		//JavaScriptL
		myWebView.getSettings().setJavaScriptEnabled(true);
		//XN[o[
		myWebView.setVerticalScrollbarOverlay(true);
		//Flash
		myWebView.getSettings().setPluginsEnabled( true );
		//TCY킹
        myWebView.getSettings().setLoadWithOverviewMode(true);
        myWebView.getSettings().setUseWideViewPort(true);
		//Y[
		myWebView.getSettings().setBuiltInZoomControls(true);
		//UAύX
		myWebView.getSettings().setUserAgentString("Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.71 Safari/537.36 OPR/15.0.1147.141" );	
		//z[y[W
		myWebView.loadUrl("http://www.google.com");}
	@Override
	public boolean onKeyDown( int keyCode, KeyEvent event ) {
		WebView webview = (WebView)findViewById(R.id.webView1);
        if(keyCode == KeyEvent.KEYCODE_BACK && webview.canGoBack()) {
            webview.goBack();
            return true;
        }
        return super.onKeyDown(keyCode, event);
	}
}
@@ -248,48 +248,8 @@
 m;%0D%0A
-import android.webkit.WebChromeClient;%0D%0A
 impo

Remove unnecessary import