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 ?


On Mar 5, 8:37am, Mattaku Betsujin <>

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
public boolean shouldOverrideUrlLoading(WebView view, String
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 ?


On Mar 5, 11:33pm, Derek <> wrote:

Sponsored Links

Other Threads

1. listview onlistitemclick not getting

Hi all,
  I am beginer to the anroid ,i am using the below code for displaying
listview and i am not able to getting the onlistitemclick events for
further ui's. pleas help me.

package com.List;

import android.content.ContentUris;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.DialogInterface.OnClickListener;
import android.database.Cursor;
import android.database.DataSetObserver;
import android.os.Bundle;
import android.provider.Contacts.People;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListAdapter;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.SimpleAdapter.ViewBinder;
import android.view.View;
import android.view.ViewGroup;

public class HelloListView extends ListActivity {
    private static final String[] Cities = null;

    ListActivity getListView = null;
    /** Called when the activity is first created. */
    public void onCreate(Bundle savedInstanceState) {
          final String[] Cities = new String[]

                  setListAdapter((ListAdapter) new ArrayAdapter<String>(this,
                           android.R.layout.simple_list_item_1, Cities));


   public  void onListItemClick(AdapterView parent, View v, int
position, long id) {




2. bar code scanning hypothetical question..

i was wondering, how would one go about using
a barcode scanner android app not only to scan
a bar code, but to make it spit out the bar code
into a text field on a separate computer when the
android device is connected to that computer via usb;
effectively turning the android device into the equivalent
of a real usb-connected barcode scanner.

/ eitan


3. Two Problems with ExpandableListView

4. Adding a shortcut to Programs (launchers) programmatically

5. interrupt dialog

6. SurfaceFlinger and SurfaceComposerClient problem.

7. call addFlags in xml