Hi,

i uses the combination of Handler and Threads to fetch images for my
app.

I wanted to know if I had create a inline thread:

class
{
public someMethods()
{

final Handler h = ....;

Thread thread1 = new Thread()
{
        @Override
        public void run()
        {
                // use Handler h to notify when complete
        }
};
thread1.start();

}
}

what happens if each of these method was called by the system:
onPause, onStop, onDestroy

Am I correct to assume for onDestroy, a RuntimeException will be
thrown as the object Handler h and whatever the Handler tries to
access has already been cleared by the system.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to