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. Date.getTime() and Daylight Saving Time?

Hi all,

What will Date.getTime() returns in a region with Daylight Saving Time
enabled?

Does this function returns a DST time or not?

I call Date.getTime() in a place with DST (such as U.S.), and convert
it to a  local time in China (no DST), I get a wrong time (one hour
ahead of local time in China). How can I fixed this problem?

Maybe I didn't tell tings clearly, but we don't use DST in China... I
don't understand DST very well.
--~--~---------~--~----~------------~-------~--~----~

2. Bitmap in GLSurfaceView

hi all..
I want to load a bitmap on a GLSurfaceView..
I do it like this:
// In the SurfaceCreated function in the class that implements
GLSurfaceView.Renderer
        int[] textures = new int[1];
        gl.glGenTextures(1, textures, 0);

        mTextureID = textures[0];
        gl.glBindTexture(GL10.GL_TEXTURE_2D, mTextureID);

        gl.glShadeModel(GL10.GL_SMOOTH);
        gl.glEnable(GL10.GL_DEPTH_TEST);
        gl.glEnable(GL10.GL_TEXTURE_2D);
        gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER,
                                         GL10.GL_LINEAR);
        gl.glTexEnvf(GL10.GL_TEXTURE_ENV, GL10.GL_TEXTURE_ENV_MODE,
                                         GL10.GL_REPLACE);

        InputStream is = mContext.getResources()
                .openRawResource(R.drawable.map);
        Bitmap bitmap = null;
        try {
            bitmap = BitmapFactory.decodeStream(is);
        } finally {
            try {
                is.close();
            } catch (IOException e) {
                // Ignore.
            }
        }
      GLUtils.texImage2D(GL10.GL_TEXTURE_2D,0,bitmap,0);

But the bitmap repeats itself on the surface and is also inverted..
why is this.. How do i make it appear only once...kindly help!!
Thanks in advance.

--~--~---------~--~----~------------~-------~--~----~

3. App Test Group

4. Problems about receiving "OnItemClick" event in SlidingDrawer + GridView

5. Mrarket?

6. Accessing inbox and few others

7. link to another application