unable to login in webview in android
<p>I have an application in which I am loading a URL in android Webview. There is a login page in this URL. I am unable to login through android webview using the valid username/password but I can login using android browser.</p>

<p>When I click on login button it does not respond to it... when I leave the app and come back to it.. it's my account logged in..
Why is it so?
Why is not logging in when clicking on it?</p>

<pre><code>    package com.example.vishal.webapi;

   //packages import
    import android.support.v7.app.AppCompatActivity;
    import android.os.Bundle;
    import android.webkit.WebSettings;
    import android.webkit.WebView;
   //packages for webclient
    import android.webkit.WebViewClient;

    public class MainActivity extends AppCompatActivity {

   //instance of webview

        private WebView webview;

       //url for webview
        String url="https://yadva.com:3335";

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

            webview =(WebView) findViewById(R.id.webView);
            webview.loadUrl(url);

           //gettin websittings
            WebSettings webSettings=webview.getSettings();

            webSettings.setJavaScriptEnabled(true);

          //**enabled dom storage**
            webSettings.setDomStorageEnabled(true);
          //enabling javascript
            webSettings.setJavaScriptCanOpenWindowsAutomatically(true);
          //database enabled
            webSettings.setDatabaseEnabled(true);
          //setwebcclient
            webview.setWebViewClient(new WebViewClient());

        }
    }
///code finish
</code></pre>

<p>Help me where I made mistake, I don't know...I'm stuck here..</p>