Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid App that starts Web App
    primarykey
    data
    text
    <p>I am trying to make a simple app that starts the webbrowser on the right page. Simply enougth I found the code to do it right here on stackoverflow.</p> <p>But there is a problem, if you open the website threw the app, then click home button and open the app again then nothing happens and the browser does not open.</p> <p>Does anybody know away to force the browser in the foreground?</p> <p>Edit: Extend question:</p> <p>Here is the layout:</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"&gt; &lt;WebView android:id="@+id/webview" android:layout_width="fill_parent" android:layout_height="fill_parent" /&gt; &lt;/RelativeLayout&gt; </code></pre> <p>And this is the MainActivity:</p> <pre><code> @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.activity_main); oWebView = (WebView) findViewById(R.id.webview); oWebView.setWebViewClient(new WebViewClient()); oWebView.getSettings().setJavaScriptEnabled(true); String url = "http://google.com"; oWebView.loadUrl(url); } </code></pre> <p>My problem is with the fullscreen, the Webview does not extend to the hole screen. See the top right: <img src="https://i.stack.imgur.com/gfLPr.png" alt="Not fully extended Webview"></p> <p>It doesn't really matter on this websites but on other it messes up the views.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload