How to access google scholar via Android Webview

2019-08-20 06:25发布

问题:

My current Android Application uses a WebView to allow users to search for Scientific Journals (articles).

When I try to browse to Google Scholar I receive a screen that says

We're Sorry... ...but your computer or network may be sending automated queries. To protect our user's we can't process your request right now.

What does "automated query" mean? My webView simply attempts to load the Scholar URL why do google users need protecting from that?

Does this mean that Google Scholar can never be accessed via an Android WebView?

Is there any way to access Google Scholar via an Android Webview?

回答1:

Clear the cache and cookies for the webview and try again.

CookieSyncManager.createInstance(this);         
CookieManager cookieManager = CookieManager.getInstance();        
cookieManager.removeAllCookie();

For Lollypop and above:

removeAllCookies(ValueCallback)

This topic is discussed here in google forum

Note:

QS already fixed the problem with my comment, i written this answer to help some one who faces this issue.