This is a migrated thread and some comments may be shown as answers.

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

2 Answers 83 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
ruchin
Top achievements
Rank 1
ruchin asked on 07 Aug 2015, 05:17 AM

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 Answers, 1 is accepted

Sort by
0
Accepted
Tsvetina
Telerik team
answered on 11 Aug 2015, 09:38 AM
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.

 
0
ruchin
Top achievements
Rank 1
answered on 12 Aug 2015, 11:39 AM

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

Tags
General Discussion
Asked by
ruchin
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
ruchin
Top achievements
Rank 1
Share this question
or