Tuesday, July 19, 2011

[android-developers] Re: Webview out jump to anchor after loadData

Actually would this work

webview.loadUrl("file:///android_asset/main.html" + "#" + anchor);

Can I append a anchor to the end of a load url from an asset?

On Jul 19, 11:00 pm, SImplyG2010 <thomas.sheppar...@gmail.com> wrote:
> Hi!
>
> I hope someone can help. Does anyone know if there is a way to get a
> webview to automatically jump to an anchor on a webview after the
> webview has been populated using loadData? I don't want the user to
> have to press a link in order to get it to jump you see I would like
> to just pass the anchor value into the activity as an extra populate
> the webview and jump.
>
> Thanks to anyone who gives there time to help me with this.

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