Hi all,

I am having a strange problem where all my threads are having the same
pid,tid (logcat would display (pid:0xtid)).

beside the main activity that display the GUI, my application created
two threads, one for pulling data from the webpage and one for
performing text to speech. For the threads, I have two separate
classes

class DataReceiver {
     DataReceiver()
    {
        Thread t = new Thread(r);
         t.setPriority(lowpriority)
         t.start
    }
}

class Speak {
     Speak()
    {
        Thread t = new Thread(r);
         t.setPriority(lowlowpriority)
         t.start
    }
}

from the main activity, I start the threads with

DataReceiver dr = new DataReceiver();
Speak sp = new Speak();

I was expecting that all the threads should have different tid but
they are all of the same. Also it seems that they don't have the low
priority from my main activity as my GUI freeze every time the thread
start receiving data or start to process the data for speaking.

any help would be much appreciated.

Thank a bunch!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to