Blank black Screen Issue after using Kendo.All.min.js file in Android Versions before Android KitKat

3 posts, 1 answers
  1. ruchin
    ruchin avatar
    33 posts
    Member since:
    Jun 2015

    Posted 07 Aug 2015 Link to this post

    Hi All,

    I recently bought a Telerik App Builder subscription for 1 yr. Our app requires Kendo.All.Min.js file for many controls. However i noticed it is the trial version and the file is quite huge around 2 mb. This file causes problem in devices before Jelly Bean. A blank black screen appears, In the ice cream sandwich version , the black screen stays for around 15 secs. How do i get rid of  this problem.

    This error does not occur in devices using KitKat and Lollipop.

    Also i wanted to confirm is the blank black screen due to Kendo.All.min.js file since it is a huge file , do i need to buy it separately. 

    Some of our clients use older versions of android so we need to get this working.

     

    Thanks

    Ruchin

     

     

  2. Answer
    Tsvetina
    Admin
    Tsvetina avatar
    1873 posts

    Posted 11 Aug 2015 Link to this post

    Hi Ruchin,

    Yesterday, I replied to your support thread regarding the same problem. Please, check my reply and post there if there are still any outstanding after applying my advice. 


    In case anyone else is interested in the cause of the black screen—it can appear if the splash screen is hidden before the app has fully loaded. If your app needs a longer period of time to load, do not use hard-coded values in the Android Config file. Instead, hide the splash screen manually in the deviceready event:
    1) Remove this setting from your Android config file:
    <preference name="SplashScreenDelay" value="5000"/>

    2) Hide the splash screen manually in the deviceReady event using:
    navigator.splashscreen.hide();


    Regards,
    Tsvetina
    Telerik
     

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

     
  3. ruchin
    ruchin avatar
    33 posts
    Member since:
    Jun 2015

    Posted 12 Aug 2015 in reply to Tsvetina Link to this post

    I did try this answer before , but the black screen did not go for versions before Jelly Bean. Based on you reply regarding large files in our project , i noticed the error was actually because of Kendo.all.min.js file only, even if we had those extra js files. However your suggestion made me research further and i found  this grunt tool method where you can generate Kendo.custom.min.js from the controls you choose, we are now referencing  this Kendo.custom.min.js in our projects, which has removed  this black screen in the versions before Jelly Bean.

    The file size of Kendo.custom.min.js is only 393 kb compared to Kendo.all.min.js which  was 2.02 mb

    Thanks for the help

    Ruchin Dayal

Back to Top