Instantiating a WebView

0

I have a simple application that with a given link returns an html page. I'm doing this with a WebView, it's working normally, but I do not want the user to see WebView on the screen.

Before I was doing so to instantiate it:

WebView wv = findViewById(R.id.webview);

So I searched the net and found this way here to instantiate without having to create WebView on the screen:

    final WebView wv = new WebView(this);
    setContentView(wv);

But the result was the opposite, even deleting WebView in xml when I was running the application, there was the WebView on the screen, and even more occupying the space. I wanted a way to instantiate WebView without it appearing on the screen the same, since the goal is just to get the html from the page and not show the site to the user.

    
asked by anonymous 21.07.2018 / 03:08

0 answers