guangzhen's Recent Forum Activity

  • Does any other different fonts supported in crosswalk?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • If you find any performance issue on crosswalk, you can request help from crosswalk-help mailing list, and attach your test case. They will help optimize the engine, or give you feedback to improve the performance.

  • Hi, Which device are you testing? I'm wondering the GPU has been black listed. you can try below steps to enable GPU, but remember there will be some stability issues on some devices.

    Please try below steps:

    1. Add a text file called "xwalk-command-line" (no suffix) to the "assets/" directory of your Android apk package

    2. This file should contain a single line, representing the xwalk command line to run; in this case, the line would be:

    xwalk --ignore-gpu-blacklist

    3. Rebuild and test again.

    Don't

  • Hi Scofano, Have you put too many js files in the <head></head>? It will delay the first rendered frame.

    Suggest put only necessary js files (Used for loading page) in <head>, and a loading page as first page, load remaining js files in the background.

  • rekjl I have a patch about orientation related issue on splash screen, but has not been integrated into XDK yet. it needs some days for XDK to integrate.

    Would you please try below solution firstly:

    There is a ```intel.xdk.device.hideSplashScreen()``` method called in ```onDeviceReady``` listener by default.

    Would you please remove this function and have a try?

    Do you have the black screen issue when you use 'Android' not 'Crosswalk for Android' build?

  • guangzhen, That's weird. I don't think it has to do with my image specifically, because even if I use the default splashscreen image, it also happens. So far, I've tested on a HTC One and Sony Z1 and they both have the same issues. I also notice earlier that there are other members beside me who are facing this same problem. For your information, it was built using the stable built. I will try it with the beta build and report if the issue still persist.

    Mayfly rekjl

    About the black screen issue after splash screen.

    I have a patch to fix it, but confirmed with Cordova upstream, they think it's work as design, and won't fix this issue: they prefer to let splash screen stay longer and cover the black screen.

    If you can download command line tools of crosswalk-cordova-android from our Crosswalk website, you can change the config.xml file to make the timeout value of splash screen more longer and use splashscreen.hide() to hide the splash screen manually when you receive 'device ready' event.

  • Hi Mayfly,

    I have checked your XDKOffline.apk

    And inspected the app, found the error message from console:

    "Uncaught TypeError: Cannot read property 'closeModal' of undefined "

    I have a short investigation about this error, and found it should be c2runtime error:

    There is no 'UI' item under 'Clay' for crosswalk, and will cause the javascript error.

    I have just commented out below codes in c2runtime.js

    13846: if( ID )

    Clay['UI']['closeModal']( 'clay-' + ID + '-wrapper' );

    else

    13849: Clay['UI']['closeModal']();

    And the game continued, have you missed some js file in your project?

  • Thanks rekjl

    The behavior of displaying splashscreen during orientation change is bad. Will fix it ASAP, and will let you know when it's fixed. You can also track the issue via jira: And also for your 1st question:

    I have tested locally with below cases:

    1. Use default splashscreen for both orientation

    2. Upload only one customized splashscreen.

    3. Upload two customized splashscreen

    All of above cases can not reproduce the black white screen issue, Would you please share me your image of splashscreen? (You can upload to the jira or here)

    Thanks again.

    guangzhen, Sorry I guess I didn't explain it clearly enough.

    1. To reproduce the black and white screen, change the orientation of your phone while the splashscreen is showing. For example, hold your phone in portrait mode, once the splashscreen is showing, turn your phone sideways to landscape mode. It should than reproduce the black and white screen.

    2. Also for this, I have uploaded two splashscreen for both portrait and landscape. I wanted it to show the same image, so I used the same image for portrait, but just adjusted the resolution to be portrait. But something happens, when I do the 1 problem. When I turn the phone from portrait to landscape or vice versa, instead of the splashscreen staying the same because the two images in both modes are the same, it actually stretched the original image to fit the new orientation. That means a portrait image being stretched to fit a landscape resolution.

  • rekjl

    For your splash screen issue:

    1: I can't reproduce your 1st question about black and white screen, Have you uploaded a black and white screen in XDK? Would you please explain more about this issue?

    2: It's a known issue that developer need to upload both two splashscreen for portrait and landscape currently, and will be improved later.

    Currently, please upload two splashcreens for both.

    Thanks.

    Hmm..I am getting that audio lag as well, I guess I will now wait until there is a stable version 5. Also, I am having the same problem as:

    KFC where our screen tends to go to sleep after a while if the user doesn't touch anything. Is there anyway to disable this, as my game has a slideshow movie and it always comes in effect during them.

    SabinX when loading the splashscreen, we get a half black and white screen before going to the game. I notice that this problem only arise for me when say the spashscreen is shown in portrait mode, then I change my phone's orientation, it goes to that black and white screen. If I don't change the orientation when showing the spashscreen, it just goes black for roughly 2 seconds before entering the game.

    Also, I notice that we have to options to place a landscape and portrait splashscreen. I only wanted to use a landscape one, so I place an image there. However, if I start up the game and my handphone is being viewed in portrait, it shows the default intel spashscreen. Does this mean that I have to place the image on both landscape and portrait? Will this count as double in terms of file size? Or is there a way to let XDK know that I want to use the same image for any splashscreen orientation?

guangzhen's avatar

guangzhen

Member since 26 May, 2014

None one is following guangzhen yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies