Sunday, November 15, 2009

[android-developers] Re: BAck to Activity after WebView

Hi,
Just to be sure... is the previous Activity still on the task stack?
You did not finish() it?

On Nov 15, 6:16 am, toby <teisentrae...@googlemail.com> wrote:
> Hello,
>
> I've been searching and looking for this answer for quite some time
> now. I want to display a little HTML in a webView.
>
> When the User read the HTML, he's supposed to use the back button to
> go back to the previous activity. However, it closes the App.
>
> How can I make it go back to the last Activity? It would also be ok to
> display a soft back button or something.
>
> Here my code
>
> [snip]
> WebView webview = new WebView(this);
> setContentView(webview);
> webview.canGoBack();
> webview.loadData(worker.getHtmlResult(), "text/html", "utf-8");
> [snap]
>
> Thanks,
>
> Toby

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate