Hi there, I'm currently implementing a complex application wich required multithreading. I do many access to database to save and read data.
My problem is to have an application with the better UI experience even if I have some hard task to complete, depending on user interaction. At the beginning, I misundertood why my application was running very jerky on iPad 3 and smoothly on iPad Air 2 : of course the performance of the last one leads us to think there is no problem in code. So I read some informations about EDT and invokeAndBlock method. My idea, as suggested in your post, was to call invokeAndBlock method when I need to do hard task without blocking the UI. The issue is I've many "invokeAndBlock" calls which could interfere (with internal calls, for example : showing a dialog), and some code is invoked with an offset (which sometime lead to exception). What I can't explain is : why sometimes the code inside runnable is executed later ? I'm trying to use scheduleBackgroundTask instead but it's an async methodology.... (PS : sorry if it's not clear !!) Thanks ! Jérémy. -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/1ae2ec28-7e8c-4a63-bff1-7c91961bae45%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
