Could somebody help me about this issue described as below?
mainActivity create a thread (named thread1) which used to download files from web server.
And mainActivity start subActivity (maybe subActivity will create its sub activity then).
My question is: how subActivity (or subsubActivity ...) submit download request to thread1?
A solution I got is: make a queue in mainActivity, thread1 will always get request from this queue. But I don't think it is a good solution, for it is difficult to put requestion to the queue from subActivity.
Please tell me your good solution, or give me some comments.
Thank you very much.