In my app I want to open Google tasks page in WebView
. (https://mail.google.com/tasks/android or https://mail.google.com/tasks/canvas (second link most relevant for me, cause I use tablet)).
But when I load url:
wv.loadUrl(url);
My app open native browser and show nested page on it.
Then I tried open page in WebView
inside app, with setting custom WebViewClient
with
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url){
view.loadUrl(url);
return true;
}
And page opened inside app, but without binding Google account.
Is this possible to open some of this two pages in WebView
inside my own app with binding Google acc (auto or not (I have all Google account info)).
UPD
I'm looking for way, how make my WebView
authorized in Google, with using AccountManager
. I already can generate nested scope (like "ya....").
ps - My app - already authorized in google, and Task Api available.
UPD2
If it's possible I want to manage my authorization status. That mean: I can make my WebView
authorized in Google and also unauthorized.