Skip to content

Instantly share code, notes, and snippets.

@iraSenthil
Created June 13, 2013 14:53
Show Gist options
  • Select an option

  • Save iraSenthil/5774330 to your computer and use it in GitHub Desktop.

Select an option

Save iraSenthil/5774330 to your computer and use it in GitHub Desktop.
@SuppressLint("SetJavaScriptEnabled")
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
//Force to login on every launch.
CookieManager cookieManager = CookieManager.getInstance();
cookieManager.removeAllCookie();
button = (Button) findViewById(R.id.button);
webView = (WebView) findViewById(R.id.webView);
webView.getSettings().setJavaScriptEnabled(true);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment