1. #1
    Sencha User
    Join Date
    Dec 2011
    Location
    Coimbatore
    Posts
    103
    Answers
    4
    Vote Rating
    -2
    venkatesh.R will become famous soon enough

      0  

    Default Unanswered: Sencha Android native package White Screen Issue

    Unanswered: Sencha Android native package White Screen Issue


    Hi,
    I have created sencha application with sencha-touch-all-debug .js by enabling dyanamic loader set to true in develpment mode.

    It worked very well in the browser

    .Now i switched to native android package with custom build by issuing sencha command
    Sencha app build native
    it shows white screen in the android emulator.moreover no issues are in the logcat .


    Test case
    DevelopmentMode
    1.All the resources have been added to index.html
    2.Reference to sencha-touch-all-debug.js in index.html
    3.Set Ext.loader({enable:true})in the app.js file
    it worked very well in the browser for development.


    Native Package
    1.All references and resouces have been added to index.html with sencha-touch.js/sencha-touch-all.js file
    2.Reference to any Extra resources have been added to app.json file.
    3.Packager.json file is created.
    4.Issue sencha command
    Sencha app build native


    It shows white screen on the emulator with no error in the logcat.


    Many questions:
    Development:


    Is it necessary set to enable dynamic loading for development mode with sencha-touch-debug/all-debug.js
    Is it necessary only add microloader in index.file and left to app.json file for all references .


    For Native package:
    Is it necessary to add microloader in index.html for native package.
    Is it necessary to disable dynamic loading by setting Ext.Loader({enabled:false}) in app.js file for sencha-touch.js/all.js.
    Is it necessary to create jsb3 file for native packaging for custom build.
    Is it necessary to setup requires/uses properties
    on our application files and then used SDK Tools to create a custom build.


    What we should do and should not do?


    What are the best practises for creating native android package with custom build? any thing i missed during native build.






    Any Ideas?






    Thanks,

  2. #2
    Sencha User
    Join Date
    Dec 2011
    Location
    Coimbatore
    Posts
    103
    Answers
    4
    Vote Rating
    -2
    venkatesh.R will become famous soon enough

      -1  

    Default Android native build shows white screen issue with Sencha command

    Android native build shows white screen issue with Sencha command


    Hi,
    I have created sencha application with sencha-touch-all-debug .js by enabling dyanamic loader set to true in develpment mode.

    It worked very well in the browser

    .Now i switched to native android package with custom build by issuing sencha command
    Sencha app build native
    it shows white screen in the android emulator.moreover no issues are in the logcat .


    Test case
    DevelopmentMode
    1.All the resources have been added to index.html
    2.Reference to sencha-touch-all-debug.js in index.html
    3.Set Ext.loader({enable:true})in the app.js file
    it worked very well in the browser for development.


    Native Package
    1.All references and resouces have been added to index.html with sencha-touch.js/sencha-touch-all.js file
    2.Reference to any Extra resources have been added to app.json file.
    3.Packager.json file is created.
    4.Issue sencha command
    Sencha app build native


    It shows white screen on the emulator with no error in the logcat.


    Many questions:
    Development:


    Is it necessary set to enable dynamic loading for development mode with sencha-touch-debug/all-debug.js
    Is it necessary only add microloader in index.file and left to app.json file for all references .


    For Native package:
    Is it necessary to add microloader in index.html for native package.
    Is it necessary to disable dynamic loading by setting Ext.Loader({enabled:false}) in app.js file for sencha-touch.js/all.js.
    Is it necessary to create jsb3 file for native packaging for custom build.
    Is it necessary to setup requires/uses properties
    on our application files and then used SDK Tools to create a custom build.


    What we should do and should not do?


    What are the best practises for creating native android package with custom build? any thing i missed during native build.


    Any Ideas?




    Thanks,

  3. #3
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,669
    Answers
    3354
    Vote Rating
    747
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Usually a white screen is either caused by a JS error or not all classes were required properly and it's trying to load the file which isn't there or is there but is loading off the filesystem which will fail.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,669
    Answers
    3354
    Vote Rating
    747
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Also, I have merged your duplicate threads. Please don't post the same thing twice
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  5. #5
    Sencha User
    Join Date
    Dec 2011
    Location
    Coimbatore
    Posts
    103
    Answers
    4
    Vote Rating
    -2
    venkatesh.R will become famous soon enough

      0  

    Default Android white screen issue

    Android white screen issue


    Mitchell,

    Thanks for your post Mitchell.

    But testing build worked fine on browser prior to native package with js error in console : apart from there is no other js errors on my console.

    Uncaught Type Error: Cannot read property 'dom' of null
    Uncaught Type Error: Cannot call method 'unshift' of null

    Do you think it would cause the white screen error on native package.

    Moreover i have added requires definition to every class (views/controllers/models).

    How can i find out which one is missed during native packaging?
    Finally for native packaging ,Eihter do we need to refer all the resources in index.html or refer in app.json file .
    Because you said in one of the forum, micro loader won't apply to native packaging concept.

    i am little bit confused ? could you please clarify on this.



    Thanks,

  6. #6
    Sencha User
    Join Date
    Dec 2011
    Location
    Coimbatore
    Posts
    103
    Answers
    4
    Vote Rating
    -2
    venkatesh.R will become famous soon enough

      -1  

    Default Android white screen issue

    Android white screen issue


    Hi,,



    Any Suggestions on this issue.


    Thanks,

  7. #7
    Sencha User
    Join Date
    Dec 2011
    Location
    Coimbatore
    Posts
    103
    Answers
    4
    Vote Rating
    -2
    venkatesh.R will become famous soon enough

      -1  

    Default Android white screen issue

    Android white screen issue


    Hi,

    Help from any one.


    Thanks

  8. #8
    Sencha User
    Join Date
    May 2012
    Location
    bangalore
    Posts
    60
    Answers
    4
    Vote Rating
    0
    bluemvj is an unknown quantity at this point

      0  

    Default


    I had the Same issue in my code what i did was i was running on chrome on console it was giving warnings like require Ext.Toolbar in corresponding view like that then i opened corresponding view and i added requires:['Ext.Toolbar'], below extend and similarly cleared all the warnings then i got the output on the Android Emulator.

  9. #9
    Sencha User
    Join Date
    Dec 2011
    Location
    Coimbatore
    Posts
    103
    Answers
    4
    Vote Rating
    -2
    venkatesh.R will become famous soon enough

      0  

    Default sencha android white screen issue

    sencha android white screen issue


    Hi,

    Thanks. I will follow your suggestions.


    Thanks

  10. #10
    Sencha User
    Join Date
    Oct 2012
    Posts
    17
    Vote Rating
    0
    romanyu is on a distinguished road

      0  

    Default


    I seems to have the same problem. I removed the default loading animation and replaced it with a jpg background-image. The image will be destroyed in app launch function and the main view will be showed. It works well in the browser but on my Android phone the screen is freezing at the loading stage. Seems no entering the launch function?

    Have you fixed your white screen problem, can you give me some suggestion! Really thanks!

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar