HTMLDialog: html links that call into your code

Quickly share your Android Code Snippets here...

HTMLDialog: html links that call into your code

Postby Dmitry.Skiba » Tue Oct 13, 2009 1:07 pm

Here is an example of how to make html links that call back in your code. See attached test project.
Links must be of form <a href='callback:data'>text</a>. When clicked, onCallback method is called with 'data' portion of the link.

However I must note that html is rendered using TextView and Html.fromHtml helper. This means that only a small subset of html is supported (though that subset it enough in most cases).

Also note that you will need to tie HTMLDialog to your needs, it is hardly usable as is.
(10.05 KiB) Downloaded 220 times
htmldialog.png (20.07 KiB) Viewed 724 times
Posts: 33
Joined: Thu Aug 28, 2008 12:52 pm


Return to Code Snippets for Android

Who is online

Users browsing this forum: No registered users and 1 guest