-
-
Save ugjka/20b4630964cc289052dda18ac528565d to your computer and use it in GitHub Desktop.
How to convert any Website into Android App in Android Studio?
This file contains 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
// add this code to the onCreate method of your MainActivity.java File | |
String url ="URL" ; // Replace URL with your website address like this "http://google.com" | |
WebView view = (WebView) this.findViewById(R.id.webView); | |
view.getSettings().setJavaScriptEnabled(true); | |
view.loadUrl(url); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment