Hi Max, There is no splash screen officially supported by Android. All the apps has it's own solution. And also no snapshot displayed when application resumed, as I know.
But on iOS, there are splash screen and snapshot officially supported. I think we can follow iOS way 1) Developer can choose whether use system provided splash screen or not. They need to configure the images of splash screen. 2) Splash screen will be displayed each time when application restarted, if it's resumed from background, no splash screen displayed.. From: Crosswalk-dev [mailto:crosswalk-dev-boun...@lists.crosswalk-project.org] On Behalf Of Max Waterman Sent: Monday, December 23, 2013 2:53 PM To: crosswalk-dev@lists.crosswalk-project.org Subject: Re: [Crosswalk-dev] Intent to implement - SplashScreen API for xwalk based application. On 23/12/13 13:53, Li, Guangzhen wrote: Thanks for your answers; glad that these issues are being considered :) One quick follow-up question... 2) Isn't it true that, on Android, apps are started/stopped "on the fly" and they need to store/restore their state so that they are started again as if they hadn't been stopped? I wonder how a splashscreen might interfere with this functionality - perhaps the splashscreen can be set at runtime to 'fake' the most recent screen image? ...but then, what about the case where the user switches orientation while the app is stopped? Tricky...; Yes, apps can running foreground or back to the background, and it will be killed by the OS or restarted. As my planning, The splash screen will be displayed only in two cases 1) The first time the app start up 2) When the app restarted (after killed by the OS) When the app resumed (from background to foreground), splash screen will not be displayed. It is the correct behaviour to show the splashscreen when the OS has stopped the app? If you consider the app as a flow of screens, I would have only expected a splash screen as the 'first' screen in that flow. I wouldn't expect to see it just because the OS is starting the app, irrespective of if it has been stopped by the user or the OS. I suppose that expectation is debatable, depending on if you just want to replace the 'white screen' with something more interesting, or if you're really considering the flow of the app...ie, the user will see a 'white screen' when the OS restarts an app. I am also wondering if the OS already shows a snapshot of the screen, grabbed when it stopped the app (the same as it uses in the switcher, I presume). Perhaps this is only for the 'resume'? My knowledge of Android app lifecycles might be insufficient here, so please correct me if I'm misunderstanding something. Regards, Max.
_______________________________________________ Crosswalk-dev mailing list Crosswalk-dev@lists.crosswalk-project.org https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev