Hi all, I am creating an app that can edit word documents saved on google drive. >From Android app, my webview will show an document manager page, click on a file (an Edit icon on webview), webview will redirect to google-drive-document-edit address.
I used a WebViewClient, checked 3 methods: onPageStarted, shouldOverrideUrlLoading and onPageFinished, that flow is: shouldOverrideUrlLoading A, onPageStarted A, onPageFinished A: A is document manager page shouldOverrideUrlLoading B, onPageStarted B: B is my service from own server, that get document-google-drive link, then redirect to C. shouldOverrideUrlLoading C, onPageStarted C: C is google-drive-document-edit link shouldOverrideUrlLoading D, onPageStarted D shouldOverrideUrlLoading E, onPageStarted E If my webview just load A, then load direct C, it's no problem. But if load A then user click Edit, my webview can not show expected address. That is problem about redirect page, how can I resolve that? Here is full LogCat: ---> Already show document manager page, log showed when click Edit icon. ...OVERIDE: https://docs.google.com/document/d/1VAqhYXSnua0oQT869u93iF84rB3cRTBFHFeZ1lYgHr8/edit?overridemobile=true&om=true&richtext=false ...STARTED: https://docs.google.com/document/d/1VAqhYXSnua0oQT869u93iF84rB3cRTBFHFeZ1lYgHr8/edit?overridemobile=true&om=true&richtext=false ...OVERIDE: http://www.google.com/url?sa=p&q=https://www.google.com/accounts/ServiceLogin?service%3Dwise%26passive%3Dtrue%26go%3Dtrue%26continue%3Dhttps://docs.google.com/document/d/1VAqhYXSnua0oQT869u93iF84rB3cRTBFHFeZ1lYgHr8/edit?overridemobile%253Dtrue%2526om%253Dtrue%2526richtext%253Dfalse%2526pref%253D2%2526pli%253D1 ...STARTED: http://www.google.com/url?sa=p&q=https://www.google.com/accounts/ServiceLogin?service%3Dwise%26passive%3Dtrue%26go%3Dtrue%26continue%3Dhttps://docs.google.com/document/d/1VAqhYXSnua0oQT869u93iF84rB3cRTBFHFeZ1lYgHr8/edit?overridemobile%253Dtrue%2526om%253Dtrue%2526richtext%253Dfalse%2526pref%253D2%2526pli%253D1 ...OVERIDE: https://www.google.com/accounts/ServiceLogin?service=wise&passive=true&go=true&continue=https://docs.google.com/document/d/1VAqhYXSnua0oQT869u93iF84rB3cRTBFHFeZ1lYgHr8/edit?overridemobile%3Dtrue%26om%3Dtrue%26richtext%3Dfalse%26pref%3D2%26pli%3D1 ...STARTED: https://www.google.com/accounts/ServiceLogin?service=wise&passive=true&go=true&continue=https://docs.google.com/document/d/1VAqhYXSnua0oQT869u93iF84rB3cRTBFHFeZ1lYgHr8/edit?overridemobile%3Dtrue%26om%3Dtrue%26richtext%3Dfalse%26pref%3D2%26pli%3D1 ...OVERIDE: https://accounts.google.com/ServiceLogin?service=wise&passive=true&go=true&continue=https://docs.google.com/document/d/1VAqhYXSnua0oQT869u93iF84rB3cRTBFHFeZ1lYgHr8/edit?overridemobile%3Dtrue%26om%3Dtrue%26richtext%3Dfalse%26pref%3D2%26pli%3D1 ...STARTED: https://accounts.google.com/ServiceLogin?service=wise&passive=true&go=true&continue=https://docs.google.com/document/d/1VAqhYXSnua0oQT869u93iF84rB3cRTBFHFeZ1lYgHr8/edit?overridemobile%3Dtrue%26om%3Dtrue%26richtext%3Dfalse%26pref%3D2%26pli%3D1 ...OVERIDE: https://docs.google.com/document/d/1VAqhYXSnua0oQT869u93iF84rB3cRTBFHFeZ1lYgHr8/edit?overridemobile=true&om=true&richtext=false&pref=2&pli=1 ...STARTED: https://docs.google.com/document/d/1VAqhYXSnua0oQT869u93iF84rB3cRTBFHFeZ1lYgHr8/edit?overridemobile=true&om=true&richtext=false&pref=2&pli=1 ...OVERIDE: https://docs.google.com/document/d/1VAqhYXSnua0oQT869u93iF84rB3cRTBFHFeZ1lYgHr8/edit?overridemobile=true&om=true&richtext=false&pli=1 ...STARTED: https://docs.google.com/document/d/1VAqhYXSnua0oQT869u93iF84rB3cRTBFHFeZ1lYgHr8/edit?overridemobile=true&om=true&richtext=false&pli=1 -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

