AnsweredAssumed Answered

How Do I access a secured web url?

Question asked by zakiimani on Apr 5, 2018

HI, I was able to open the webapp when I shared it with everyone via url based. But I cant open it when do not want to shared the app with everyone. it just stuck at the loading screen. can any one help on how to include the credentials into the code? thanks


public class
MainActivity extends Activity {
    private WebView mWebView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        mWebView = (WebView) findViewById(R.id.activity_main_webview);

        //Enable Javascript
        WebSettings webSettings = mWebView.getSettings();
        webSettings.setJavaScriptEnabled(true);
        mWebView.loadUrl("URL");



        }
}

Outcomes