how can I put a newline into a format string

by Mark Murphy » Tue, 09 Mar 2010 04:00:16 GMT

Sponsored Links

Out of curiosity -- where are you seeing this list of supported HTML
tags? Html.fromHtml() mentions special handling of <img> but otherwise
does not mention any specific tags it supports. If there is a definitive
list for it, I'd love to know!

Personally, I didn't even realize that existed. Thanks!

Mark Murphy (a Commons Guy)  | 

Android Training...At Your Office: 


how can I put a newline into a format string

by Mark Murphy » Thu, 11 Mar 2010 11:07:15 GMT


10, actually -- 9 on the second page you linked to, plus <img> as
mentioned in Html.fromHtml()'s documentation. And I know that <font>
works, at least for the color attribute, based on some StackOverflow
support issues.

And examining the source code, in addition to the above, I see
references to <div>, <p>, <blockquote>, <font size="" face="">, <em>,
<strong>, <cite>, <dfn>, <h1> through <h6>, ...and <br>. <br> is
supposed to inject \n as a newline.

In a nutshell, the docs are out of sync with the source.

Mark Murphy (a Commons Guy)  | 

_Beginning Android_ from Apress Now Available!


Sponsored Links

Other Threads

1. How to track URL in each landing page in Webview


I am working on webview android application and I am successfully able to
load a URL in that webview ,and when i click a link in the webview, i want
to capture the new URL string.

for example,
i search in google and browser opens in webview with multiple search links,
now i click on a link and google opens that link,,,in that scenario,i want
to capture that opening link

bottom point is i am trying to open next link in new webview,just like
tabbed browsing.

 Can any one halp me to solve this issue.



2. URGENT....REQ............Android

*Hi friends *

                Please send profiles matching the below requirements to **

Title                       : *Android*

Location                *:** San Diego or Silicon Valley*

Duration               : *1 year + *

Rate                     : *$48/hr*


         Experts in Android

          Multimedia/Graphics optimization experience

          Browser optimization experience


*Must Have Skills*

Android OS, Kernel level, Multimedia/Graphics, browser optimization


Writing drivers onAndroid, Libraries, Application framework

Soft Skills

Communication, go-getter

Project Details / Description

Integration of Android on the new generation smartphone platforms

Client Domain

Cellular/3G wireless

Visa Restrictions


Security Clearance €



% of Travel :

Any Other Information

Strong, experienced enggs needed



*IT- Recruiter*

* <>*


*IT Consulting MSSharePoint Services e-Learning Custom Content

*200,CentennialAve,Suite 200,Piscataway, NJ - 08854 | **Mobile 9940563104 |
visit us at *** <>**


3. HTML5 video support

4. Android logo copyright/trademark

5. Change default Contact Application in Eclipse

6. Setting Translucent Theme from Java

7. Change Default Package Name of