Sunday, December 11, 2011

Re: [android-developers] Rendering the html file content in Webview

Hi mark.

Thanks for the valuable reply Mark,

Yeah I am doing that.. but I have seen some other android applications using the same, it was good and it was updating html content without affecting the active content of the UI. I think they might have customized the web view and the progress bar.

So I though it will be great, if anyone know some better way to do this.

Thanks.



On Wed, Dec 7, 2011 at 6:48 PM, Mark Murphy <mmurphy@commonsware.com> wrote:
On Wed, Dec 7, 2011 at 1:48 AM, Jebarlin Robertson
<jebarlin.android@gmail.com> wrote:
> I am developing an android application with WebView. I am writing a html
> file and displaying it in webview,
>
> My requirement is to update the webview whenever I write new content to the
> html file.
>
> As of now I am just displaying the html file in webview initially and after
> that for every new content I am just calling webview.reload(uri).
> But when I do this, the webview is blinking for every reload and some times
> it is going to the top of the HTML content, if you were scrolled down.

Of course. This is not significantly different than any other Web browser.

> Can any one please tell me some suggestion how to do it?

You already are doing it.

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

--
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

--
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

No comments:

Post a Comment