[android-developers] Re: HTML login form works in Android browser and fails with WebView ?

2009-03-01 Thread Derek
To get the login form, use: String url = "http://m.flickr.com/signin/";; On Mar 1, 9:03 pm, Derek wrote: > Hi all, > > I'm facing the following problem. I'm opening Flickr HTML login form > with default Android browser and everything works fine when I'm > logging (click "sign in" button in HTML

[android-developers] Re: HTML login form works in Android browser and fails with WebView ?

2009-03-02 Thread Derek
Anyone ? Even simple links are not followed. On Mar 1, 9:08 pm, Derek wrote: > To get the login form, use: > String url = "http://m.flickr.com/signin/";; > > On Mar 1, 9:03 pm, Derek wrote: > > > Hi all, > > > I'm facing the following problem. I'm opening Flickr HTML login form > > with defaul

[android-developers] Re: HTML login form works in Android browser and fails with WebView ?

2009-03-03 Thread Miguel Paraz
On Mar 2, 11:14 pm, Derek wrote: > Anyone ? > Even simple links are not followed. > > On Mar 1, 9:08 pm, Derek wrote: > > > To get the login form, use: > > String url = "http://m.flickr.com/signin/";; > > > On Mar 1, 9:03 pm, Derek wrote: > > > > Hi all, > > > > I'm facing the following proble

[android-developers] Re: HTML login form works in Android browser and fails with WebView ?

2009-03-03 Thread for android
Are you using weight in your webview..there are errors if the webview has a layout_weight="1.0" On Mon, Mar 2, 2009 at 8:44 PM, Derek wrote: > > Anyone ? > Even simple links are not followed. > - Show quoted text - > > > On Mar 1, 9:08 pm, Derek wrote: > > To get the login form, use: > > String

[android-developers] Re: HTML login form works in Android browser and fails with WebView ?

2009-03-03 Thread Derek
Yeah, thanks ! I was using layout_weight="1.0". I've removed it and now the links are working. However, the login form still doesn't work as in Android browser. When I look to the source it seems very simple (No JavaScript). Some form fields are hidden and empty. Could it be the problem ? Here is

[android-developers] Re: HTML login form works in Android browser and fails with WebView ?

2009-03-03 Thread for android
webView.getSettings().setSupportMultipleWindows(true); On Wed, Mar 4, 2009 at 2:19 AM, Derek wrote: > > Yeah, thanks ! I was using layout_weight="1.0". I've removed it and > now the links are working. However, the login form still doesn't work > as in Android browser. > When I look to the source

[android-developers] Re: HTML login form works in Android browser and fails with WebView ?

2009-03-04 Thread Derek
Thanks but the problem is still here. However, If i remove: webview.setWebViewClient(new AuthWebViewClient()); then I notice that with setSupportMultipleWindows(true); it opens a new Android browser windows when I click to "Submit" button but the page displayed is not the correct one. I'm wonderin

[android-developers] Re: HTML login form works in Android browser and fails with WebView ?

2009-03-04 Thread for android
webView = (WebView) findViewById(R.id.webView); String url = "http://www.flickr.com/";; webView.setWebViewClient(new AuthWebViewClient()); webView.getSettings().setJavaScriptEnabled(true); webView.getSettings().setLoadsImagesAutomatically(true); webView.loadU

[android-developers] Re: HTML login form works in Android browser and fails with WebView ?

2009-03-04 Thread Derek
Yes, that's I did in the code I've posted before. I don't see the difference ? Could this issue come from Cookie management in WebView ? Is there any option to make sure cookies are passed ? Thanks. On Mar 4, 12:34 pm, for android wrote: > webView = (WebView) findViewById(R.id.webView); >    

[android-developers] Re: HTML login form works in Android browser and fails with WebView ?

2009-03-04 Thread Mattaku Betsujin
Have you looked into android.webkit.CookieManager? On Wed, Mar 4, 2009 at 2:02 PM, Derek wrote: > > Yes, that's I did in the code I've posted before. I don't see the > difference ? > Could this issue come from Cookie management in WebView ? Is there any > option to make sure cookies are passed ?

[android-developers] Re: HTML login form works in Android browser and fails with WebView - Android bug ?

2009-03-05 Thread Derek
I think I've found the problem, WebView seems to NOT follow HTTP redirect (302) as response for an HTTP POST (the login form). Is there any option to enable redirect support after POST on WebView ? Thanks. On Mar 5, 8:37 am, Mattaku Betsujin wrote: > Have you looked into android.webkit.CookieMa

[android-developers] Re: HTML login form works in Android browser and fails with WebView - Android bug ?

2009-03-05 Thread Derek
If I remove webview.setWebViewClient(new AuthWebViewClient()) which overrides: public boolean shouldOverrideUrlLoading(WebView view, String url) { view.loadUrl(url); return true; } Then redirect after POST works. So, I think I didn't understand how