KhanStan99 KhanStan99 - 3 months ago 49
Android Question

Integrating Google Forms in Android WebView, SignIn button not working

I am working on my first android project which is based on Google Forms.
I've done pretty much everything except my main part which is showing forms in webview. The form is getting display but the Sign In button is not clickable.

public class cadexpo extends AppCompatActivity {
private static WebView browser;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_cadexpo);
browser = (WebView) findViewById(R.id.webView);
browser.getSettings().getJavaScriptEnabled();
WebSettings browser = browser.getSettings();
browser.loadUrl("https://drive.google.com/open?id=1VLKIncq9bTJnWqxbOHc3foTeSLykP7AQyL0Si1cIQ1I");


Please help me in fixing it.

Answer

Enable javascript for webview

WebSettings webSettings = browser.getSettings();
webSettings.setJavaScriptEnabled(true);
Comments