[codenameone-discussions] Re: Cache a form?

2019-03-28 Thread Gareth Murfin
Thanks, I tried to cache some forms but it didnt seem to keep the complete form. For example once I have set up the UI and then populated it, I call this in postShow(): cachedForm=getCurrentForm(); then if I come back to the form I do if (cachedForm!=null) {

[codenameone-discussions] Downloading image to label automatically

2019-03-28 Thread Gareth Murfin
I want to be able to download an image and then have it appear in the label automatically when its ready, so Im using this: setIconOnMe.setIcon(URLImage.createToStorage(placeHolder, url, url, URLImage.RESIZE_SCALE)); but it doesnt seem to set the image when it comes in? It works fine if I

[codenameone-discussions] Re: Status bar on ios flashes white during transition

2019-03-28 Thread Gareth Murfin
Yes, you can see during the transition the top turns white, before and after its fine. https://www.dropbox.com/s/kb3t35q4o5le65c/Snap%202019-03-29%20at%2000.30.50.png?dl=0 On Saturday, March 9, 2019 at 1:09:24 PM UTC+8, Shai Almog wrote: > > Can you get a screenshot of the problem? > -- You

Re: [codenameone-discussions] MediaPlayer on ios

2019-03-28 Thread Steve Hannah
This is likely because during a form transition, it needs to perform a lightweight rendering of the outgoing form. For native peers, this can cause some jitter like you're describing. On Thu, Mar 28, 2019 at 9:40 AM Gareth Murfin wrote: > Ive noticed when I leave a screen with the media player

Re: [codenameone-discussions] MediaPlayer on ios

2019-03-28 Thread Gareth Murfin
Ive noticed when I leave a screen with the media player on it briefly flashes black, is there some way to stop this? like do I need to release it before I swap forms or something? On Monday, March 11, 2019 at 7:17:59 PM UTC+8, Gareth Murfin wrote: > > thanks steve, will give it a go... reminds

[codenameone-discussions] Re: Cache a form?

2019-03-28 Thread Shai Almog
Are you using the old GUI builder? It's a bit problematic to cache forms in the old GUI builder. -- 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

[codenameone-discussions] Re: Status bar on ios flashes white during transition

2019-03-28 Thread Shai Almog
How did you customize the colors of the title area/form? I'm guessing you are seeing one of those there during the transition. -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails

[codenameone-discussions] status of sqlite DB and threads?

2019-03-28 Thread Thomas
I have an sqlite database that might be accessed by multiple concurrent threads. I saw this blog post: https://www.codenameone.com/blog/threadsafe-sqlite.html but the ThreadSafeDatabase class is deprecated https://www.codenameone.com/javadoc/com/codename1/db/ThreadSafeDatabase.html . So

[codenameone-discussions] Re: Downloading image to label automatically

2019-03-28 Thread Shai Almog
That should work but you used the URL and image name as the same value. Did you make changes to the animation behavior used to refresh the placeholder? -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group

[codenameone-discussions] Re: support of the full java.util.concurrent API?

2019-03-28 Thread Shai Almog
Hi, it's a bit hard to implement that full API. A more pragmatic approach is narrowing this down to an RFE about specific classes/methods. We might include some features of that ideally in the Codename One packages to keep things simple as changing the VM takes much longer than implementing a

[codenameone-discussions] Re: status of sqlite DB and threads?

2019-03-28 Thread Shai Almog
We made some improvements to that but still strongly recommend writing to the database from a single thread. EasyThread is a relatively simple solution for that and it can be implemented in the level of the data access class. E.g. instead of calling SQL directly just call a wrapper class that

[codenameone-discussions] support of the full java.util.concurrent API?

2019-03-28 Thread Thomas
Hi I am trying to implement some complex multi-threading process in my app (with complex objects that can be partially and parallely fetched from a server and that are populated (with some computation from the fetched data and local data) as soon as each part is received) but the lack of the

[codenameone-discussions] Re: status of sqlite DB and threads?

2019-03-28 Thread Thomas
On Friday, March 29, 2019 at 4:31:27 AM UTC+1, Shai Almog wrote: > > We made some improvements to that but still strongly recommend writing to > the database from a single thread. EasyThread is a relatively simple > solution for that and it can be implemented in the level of the data access >