Hi,

I can able to display the previous page, its working fine.

just I am calling
if(WebView.canGoBack())
{
          WebView.goBack();
}

I tested it writing in onPageFinished(), its working fine.

But I want this to be happen when we click on 'Back' button.

I write the same logic in onDestroy().

I put logs for the function onPageFinished(). It is printing the msg
which I put in Log.i("","");

But the app exits. But it should not happen, it should display my
previous page if there is.

Kindly help me.

On Feb 17, 9:44 am, "Fred Grott(shareme)" <[email protected]>
wrote:
> That is a websettings setting you should be setting in your webview
> class
>
> There is a beginning tutorial of some of the settings at
> developerlife.org its developerlife.com
>
> I am also doing a knol wiki article but that will not be up until
> later in the week..
>
> On Feb 16, 10:32 pm, manoj <[email protected]> wrote:
>
> > Hi,
>
> > I am facing another problem that, I am able to load a web page which
> > has some links.
>
> > When I click on the link it opens another web page in the same page,
> > but when I click on 'Back' button, the application exits.
>
> > It is not showing the previous page.
>
> > Please suggest me, how to show the previous page.
>
> > Thanks,
> > Manoj.
>
> > On Feb 16, 5:13 pm, "Fred Grott(shareme)" <[email protected]>
> > wrote:
>
> > > Sorry your are right WEbClient for that
>
> > > On Feb 16, 6:08 am, for android <[email protected]> wrote:
>
> > > > I am confused now since there is no documentation of the difference 
> > > > between
> > > > WebChromeClient and WebViewClient .
>
> > > > Also in the WebChromeClient there is no equilvalent to onPageFinished.
>
> > > > On Mon, Feb 16, 2009 at 5:26 PM, Fred Grott(shareme)
> > > > <[email protected]>wrote:
>
> > > > > WebChromeCliennt not WebClient than its accessible to javascript :)
>
> > > > > On Feb 16, 3:11 am, for android <[email protected]> wrote:
> > > > > > Found the solution .
>
> > > > > > Extended the WebClient and set the webview to the client.
>
> > > > > > and implemented the WebClient's onPageFinished.
>
> > > > > > On Mon, Feb 16, 2009 at 12:53 PM, for android <[email protected]>
> > > > > wrote:
> > > > > > > I am using a WebView in a LinearLayout.Whats the best way to know
> > > > > whether
> > > > > > > the web page has been fully loaded or not?
>
> > > > > > > i am aware of the method getProgress,but what i am looking for is 
> > > > > > > a
> > > > > > > listener which lets me know when the web view is fully loaded.
>
> > > > > > > Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to