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. Solution to whining users over advertising

I may have found the magical solution to keeping users from whining
and complaining about in app advertising. I'm in the process of
introducing ads into the app now and are starting to run informational
banners first.

My solution to keeping the whining and complaining to a minimum is to
add a free opt-out option to the app. The opt-out lasts for 30 days,
so after that time they will start seeing ads again. They can opt-out
again though for another 30 days. Fairly simple to implement.

I could have done something else like create a "pro" version and sold
it but that was too complicated and from what others have said, pretty
much a waste of time.

On the opt-out page I also put a donate button, so people could give
me money if they felt compelled. Today I got my first earnings from
the app: $5 in donation! 1000 hours of labor and a couple of grand in
server fees for $5! A few more like that and I can retire to Hawaii.

The stats: over 10,000 people have downloaded the app since I added
the opt-out option and 165 have done so. I find that quite acceptable,
less than 2%. Those that opt-out still see my informational banners,
they are propaganda for how much the app cost me to run it so perhaps
they'll feel guilty and not opt-out after the 30 days expire.

-John Coryat


2. Android-based Laptop + need to run Win XP apps

Can't answer the "run laptop with Android" though I have a touch-
screen netbook I would love to do that with personally.

However, I have found the best solution for running Windows programs
"myself" to be to setup a home (also did this at work in one place
where it was ok) system with LogMeIn, and then use the LogMeIn
Ignition app for Android. Have also used the iPhone version, and
almost bought an iPad because the interface is very nice on a larger
screen. So you run all your programs on something with real
horsepower, while carrying something that's lighter and has better
battery life.

Currently that means running LMI on my NexusOne when I need to do a
little editing (then send myself or the client the doc) with MS Word.
Have not yet tried using PhotoShop that way - more because I'm worried
how the zoom option might be interpreted by PS.

YMMV and all that :-)


3. WTPamer: Homescreen hari ini

4. Homescreen g

5. Link belajar desire

6. Amazon MP3 StoIntent start search

7. Droid Motorola