Created
June 13, 2013 14:53
-
-
Save iraSenthil/5774330 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @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