HTML login form works in Android browser and fails with WebView - Android bug ?

by Derek » Fri, 06 Mar 2009 06:33:35 GMT


Sponsored Links
  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:37am, Mattaku Betsujin <mattaku.betsu...@gmail.com>
wrote:
--~--~---------~--~----~------------~-------~--~----~



HTML login form works in Android browser and fails with WebView - Android bug ?

by Derek » Fri, 06 Mar 2009 06:42:29 GMT


 f 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 to use WebViewClient to make all
pages opened in the same WebView.
Any suggestion ?

Thanks.

On Mar 5, 11:33pm, Derek <cram.de...@gmail.com> wrote:
--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. RESET SQLite AUTOINCREMENT

Hello, I have a database that will be editable inside my android app.
I'm having an issue where when a row is deleted, its spot in the
autoincrement array is still taken, and subsequent entries into that
table pick up after that number.  This leaves me with a list of rows
whos autoincrement id values can jump around.  I need my rows in my
database to stay ascending and in increments of 1.  Is there an easy
way to do this?  Or will I need to rewrite the autoincrement column to
all my rows each time an item is deleted?

-- 

2. Service runnning while PowerManager decides to sleep ?

You should hold a wake lock only when you need to make sure the CPU will
continue running.  If it is during the entire time your service runs until
it schedules an alarm, then that is it, but please keep this as short as
possible since this is one of the things that can have a significant impact
on battery life.

You need to do this on a device.  You need to do this on a device, anyway,
so you have some idea of how you are actually impacting the battery.








> > > 

3. Donut to Eclair

4. Where is "dump HPROF file" button in DDMS

5. TabActivity Lifecycle

6. question regarding dialog dismiss/cancel handling

7. building donut sdk on fedoro with java 1.5