Convert Any Website Into an Android App

How To Convert Any Website Into an Android App Free Using ANDROID STUDIO

 

 

<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://techproadvice.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();
}
}


	

12 comments

  1. I have reciveon error when I build apk

    "AAPT: error: resource style/Theme (aka com.example.youtubewvideodownoader:style/Theme) not found.
    error: failed linking references.
    "

  2. Hi, this was awesome!
    How can I allow externals URLs to open in default browser or app ?
    for example, if I put a Facebook link in my website, and the user clicks it, the defaults browser should open. or if the Facebook app is installed, it should open. Currently it loads inside our app, in which the user will have to login again!

  3. authorization error 403 disallowed_useragent when trying to log in on the interface inside the app, for example to access a shopping cart.

    and

    I would like Facebook page link to open in a browser window.

    thank you so much for your very helpful information.

  4. Hii there.
    Can u help me with my one project. Please.
    I have to make an android app that can use internet and get live information data from server.
    I wanna that if I update any information on server, clients app should get that information as soon as possible with in 10 to 15 minute.
    How can i do that?
    And for this do i actually need Firebase? And if yes then do Firebase charge for it.

  5. Hii there.
    Can u help me with my one project. Please.
    I have to make an android app that can use internet and get live information data from server.
    I wanna that if I update any information on server, clients app should get that information as soon as possible with in 10 to 15 minute.
    How can i do that?
    And for this do i actually need Firebase? And if yes then do Firebase charge for it.

Leave a comment

Your email address will not be published. Required fields are marked *