Assalam o Alaikum Friends! Today in this article I am telling you how to convert any website into a professional android app using android studio for free from scratch. So Freinds Don't forget to SUBSCRIBE my YouTube Channel for more interesting videos.
Convert Website into Android App
Convert Website into Android App Using Android Studio
Watch Tutorial
Intersting for You
Source Code
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
android:id="@+id/webview"
import android.webkit.WebSettings; import android.webkit.WebView; import android.webkit.WebViewClient;
private WebView mywebView;
mywebView=(WebView) findViewById(R.id.webview); mywebView.setWebViewClient(new WebViewClient()); mywebView.loadUrl("https://technicalansariyt.blogspot.com/"); WebSettings webSettings=mywebView.getSettings(); webSettings.setJavaScriptEnabled(true);
public class mywebClient extends WebViewClient{ @Override public void onPageStarted(WebView view, String url, Bitmap favicon){ super.onPageStarted(view,url,favicon); } @Override public boolean shouldOverrideUrlLoading(WebView view,String url){ view.loadUrl(url); return true; } } @Override public void onBackPressed(){ if(mywebView.canGoBack()) { mywebView.goBack(); } else{ super.onBackPressed(); } }
0 Comments