Thursday, June 25, 2020

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. When i enter android:id="@+id/webview
    i get error

    ReplyDelete
    Replies
    1. Just checked again you missed a sign in the end android:id="@+id/webview"
      this is correct one

      Delete
    2. 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.
      "

      Delete
  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!

    ReplyDelete
  3. Hi, when creating a new key store, I am getting a toolkey error

    java.io.IOExceptions:Incorrect AVA format

    How do I resolve it?



    ReplyDelete
    Replies
    1. Ok now, I clicked on create new instead of existing

      Delete
  4. 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.

    ReplyDelete
  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.

    ReplyDelete
  6. 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.

    ReplyDelete

Inpage 2012 Free Download

  Windows Inpage 2012 Free Download  DOWNLOAD June 17, 2025 Atta Ur Rehman RaJA Inpage 2012 free download. Inpage 2012 is a new version of t...