[codenameone-discussions] Re: Display.getInstance().execute on android causes OS to suspend my app
No. It's core to their architecture. It's about battery life and control. Notice your app still has CPU access if it needs it. This isn't about that. -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/d3caf024-1cc2-4b53-9c2b-099e8849eec1%40googlegroups.com.
[codenameone-discussions] Re: Display.getInstance().execute on android causes OS to suspend my app
On Wednesday, February 12, 2020 at 7:55:46 AM UTC-5, Mark Bolduc wrote: > > Fair enough. > > thanks. > > Do you think this behaviour will go away when these devices have more > processing power? > > Regards. > > On Tuesday, February 11, 2020 at 9:10:26 PM UTC-5, Shai Almog wrote: >> >> iOS would do that for some processes. Android is more consistent in that >> sense. You should code defensively regardless. >> FYI Android does that when you just rotate the device... We hide a lot of >> these nuances from the developers but there are some things that aren't >> abstractable. >> > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/1845a2aa-1866-4072-89e3-698c2bde701f%40googlegroups.com.
[codenameone-discussions] Re: Display.getInstance().execute on android causes OS to suspend my app
Fair enough. thanks. Do you think this behaviour will go away when these devices have more processing power? Regards. On Tuesday, February 11, 2020 at 9:10:26 PM UTC-5, Shai Almog wrote: > > iOS would do that for some processes. Android is more consistent in that > sense. You should code defensively regardless. > FYI Android does that when you just rotate the device... We hide a lot of > these nuances from the developers but there are some things that aren't > abstractable. > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/f733b766-bf0d-42ad-a689-4ba5c20faf4b%40googlegroups.com.
[codenameone-discussions] Re: Display.getInstance().execute on android causes OS to suspend my app
iOS would do that for some processes. Android is more consistent in that sense. You should code defensively regardless. FYI Android does that when you just rotate the device... We hide a lot of these nuances from the developers but there are some things that aren't abstractable. -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/8ff09254-c934-46fb-b4b1-17515ad693e2%40googlegroups.com.
[codenameone-discussions] Re: Display.getInstance().execute on android causes OS to suspend my app
Note that this is only on Android, IOS does not suspend my app when my app spawns another process like reading a PDF document. Regards. On Sunday, February 9, 2020 at 8:52:22 PM UTC-5, Shai Almog wrote: > > No. When you exit the app the process is always suspended that's how > mobile programming works. > Notice the PDF reader logic works perfectly you just receive a > suspend/resume for the current activity. > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/99d7d01e-6434-4718-be6a-a0b39f61edcb%40googlegroups.com.
[codenameone-discussions] Re: Display.getInstance().execute on android causes OS to suspend my app
No. When you exit the app the process is always suspended that's how mobile programming works. Notice the PDF reader logic works perfectly you just receive a suspend/resume for the current activity. -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/337e4be4-b576-403d-a8dd-4d2117d5682f%40googlegroups.com.
[codenameone-discussions] Re: Display.getInstance().execute on android causes OS to suspend my app
So , 1 year later, In Android 9 Can An App run an external process / app without the OS sending a suspend to my app? Is there a codenameone PDF reader library? Regards On Sunday, February 17, 2019 at 8:12:23 AM UTC-5, Mark Bolduc wrote: > > Thanks. > > On Saturday, February 16, 2019 at 11:26:50 AM UTC-5, > shop.servic...@gmail.com wrote: >> >> If you are experiencing an issue please mention the full platform your >> issue applies to: >> IDE: NetBeans/Eclipse/IDEA NetBeans 8.2 >> Desktop OS Windows 10 Pro >> Simulator Latest >> Device Android 7 & 8.1 >> >> My app uses Display.getInstance().execute(file system path to PDF doc) >> >> On Android, my app receives a suspend signal from the OS until I close >> the PDF reader app. >> Once the PDF reader app is closed, my app receives a start() >> >> This does not occur on IOS, >> >> Curious, Is there a method that my app can envoke another process and not >> suspend my app? >> >> Thoughts? >> > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/eacf1ad1-183c-44e4-95ba-f6713a6af84f%40googlegroups.com.
[codenameone-discussions] Re: Display.getInstance().execute on android causes OS to suspend my app
Thanks. On Saturday, February 16, 2019 at 11:26:50 AM UTC-5, shop.servic...@gmail.com wrote: > > If you are experiencing an issue please mention the full platform your > issue applies to: > IDE: NetBeans/Eclipse/IDEA NetBeans 8.2 > Desktop OS Windows 10 Pro > Simulator Latest > Device Android 7 & 8.1 > > My app uses Display.getInstance().execute(file system path to PDF doc) > > On Android, my app receives a suspend signal from the OS until I close the > PDF reader app. > Once the PDF reader app is closed, my app receives a start() > > This does not occur on IOS, > > Curious, Is there a method that my app can envoke another process and not > suspend my app? > > Thoughts? > -- 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+unsubscr...@googlegroups.com. 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/088b4db2-abe0-4a3a-9323-0c60d46c2e1d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: Display.getInstance().execute on android causes OS to suspend my app
This is a core difference between the OS's. In some cases we hide those differences but in lifecycle it's really hard/undesireable to do so. Android is very aggressive about activity lifecycle. It suspends instantly, even does that on device rotation by default (we hide that behavior). However, we don't know if you might press the home button from the PDF viewer so we can't "fake it" as we won't get another stop() event. -- 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+unsubscr...@googlegroups.com. 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/a02c0135-c08b-45d2-8c06-3d8ce98f70b8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.