Thank Junmin and Guangzhen.
Any comments from Tizen port? We want to provide a user friendly solution for 
end users. The key idea is to avoid white screen for several seconds with a 
common solution by crosswalk itself.

Yongsheng

From: Crosswalk-dev [mailto:crosswalk-dev-boun...@lists.crosswalk-project.org] 
On Behalf Of Zhu, Junmin
Sent: Friday, December 20, 2013 10:37 AM
To: crosswalk-dev@lists.crosswalk-project.org
Subject: [Crosswalk-dev] Intent to implement - SplashScreen API for xwalk based 
application.

Description:
Xwalk based application takes too long times to show the web page at the 
startup. It only shows the blank screen during this time currently. It's not 
user friendly.
I want to supply the unified SplashScreen API in manifest, which allows 
developer to provide screen image for application during the startup.

Note that, the application startup time is composited by two parts. First is 
the Xwalk's startup time, including loading native library and Xwalk's resource 
file etc.
Second is the application start up time, including the loading application's 
resource and rendering the page etc.

Affected component:

1.       Android port.

2.       Tizen port.

3.       Manifest API spec.

Related feature: (Jira ID)
https://crosswalk-project.org/jira/browse/XWALK-637

Target Release: (Crosswalk N)
Crosswalk 4

Implementation details:
To achieve this, two parts of implementation is needed.

1.       For preparing step, we need to get SplashScreen image from manifest, 
and show it when it is set in the manifest.

Android port:

a.       Add parser support for this new API in the packaging tool 
(make_apk.py).

b.      Add mechanism to show/hide the SplashScreen image (xwalk_app_template).
      Tizen port: (call for help from Tizen expert) ....

2.       For finish step, we need to know the time when page is rendered, and 
remove the splash screen.

a.       Common: invoke the client's native callback (such as: 
OnFirstRenderingReady() ) when the content is updated in the ViewRender first 
time.

b.      Android port: 1) provide client's Java callback API; 2) Add JNI mapping 
between Java callback API and native callback API.

c.       Tizen port: (call for help from Tizen expert)....
Thanks,
Junmin.

_______________________________________________
Crosswalk-dev mailing list
Crosswalk-dev@lists.crosswalk-project.org
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev

Reply via email to