[android-developers] Re: How to use observer pattern in Andorid/ or other method to improve UI response

2009-01-08 Thread cindy
Thanks! I will try that. On Jan 7, 9:55 pm, A R wrote: > HiCindy, > > You can implement the same observer pattern. Create a delegate > interface, pass the reference to the thread and once work is done let > the thread do the call backs. Skeleton below might help (note code > below will not comp

[android-developers] Re: How to use observer pattern in Andorid/ or other method to improve UI response

2009-01-07 Thread A R
Hi Cindy, You can implement the same observer pattern. Create a delegate interface, pass the reference to the thread and once work is done let the thread do the call backs. Skeleton below might help (note code below will not compile) interface callback { workSuccess(); //pass params based on y