Html with ArrayAdapter<CharSequence>

by MewT » Sat, 27 Feb 2010 07:43:47 GMT


Sponsored Links
 Hi !
I've a problem with Android 1.5 and all the previous versions.

Simply, I have a ListView with an ArrayAdapter<CharSequence> but when
I instantiate a CharSequence with Html.fromHtml (for example "<b>Hi!
How are you?</b>") and i put this CharSequence into the ArrayAdapter
with the method add(), if the version of Android if lower than 1.6,
the ListView is colorless. I don't see the colors, underline ... But
with Android 1.6, I don't have this problem.

I've saw the changelog between 1.5 and 1.6 but nothing ... :s

Any ideas?

--



Other Threads

1. Cannot stop soundpool loop even after exiting app

I have a timer thread setup to play a loop using soundpool, but for
some reason  I cannot get  _soundPool.stop(_playbackTimer); to stop
the loop. even if I exit the application the loop keeps running. I
have to physically power off the phone to get it to stop. am I missing
something here? Does anyone have any experience with this? I have
searched with no resolution. below is a snippet.

if(timeLeft>0 && timeLeft<20 && ticking == false){
                _soundPool.play(_playbackTimer, 0.3f, 0.3f, 0, -1, 1);
                ticking=true;
        }


        if(timeLeft==0 || timeLeft>20){
                _soundPool.stop(_playbackTimer);
                ticking=false;
                }

-- 

2. Kernel sockets

Hi,

I've written a kernel module that logs all socket connection attempts. That is done with the help of LSM hooks. What I can see now is that the kernel is connecting to some 100. and 101. ip addresses many times: ... socket_connect: 1.0.0.0:0 -> 100.119.112.45:106 socket_connect: 1.0.0.0:0 -> 101.118.47.115:12132 ... What is the source ip 1.0.0.0? All other user initiated connections (e.g. browser) have the ip address 0.0.0.0. Some times with zero or non-zero port. And where do these 100./101. addresses end? I assume that this are in-kernel sockets used for IPC but I'm not sure. A user initiated connection looks as follows: ... socket_connect: 0.0.0.0:43659 -> 10.0.2.3:53 //DNS socket_connect: 0.0.0.0:0-> 74.125.77.95:0 // Src-Port and Dst-Port are 0? ... Thanks Yves

smime.p7s
Description: S/MIME Cryptographic Signature

3. OOT: Paging pak Dolly

4. mau tanya ttg Cyanogen Mod

5. getting control value from within a dialog

6. Using ListView in AlertDialog

7. When is the appropriate time to use separate processes?