Contents of a view go blank on resume

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

    Posted 29 Jun 2015 Link to this post

    Hi,

    I making use of single process Android Manifest to handle returning  to the current view when I close and open the app again.I have a layout with header and footer(tabstrip).On resume I am able to get to my current view but on some views I encounter the following strange behaviour:-

    When I return to my app after closing the app the header and contents are shown.But  after 3-4 sec the contents go blank but the header is still visible.However if I randomly try to click on the view and by chance if I click inside a text box(not visible but present in the view) then the contents are shown.

    What could be causing this?Any suggestions on how to solve this?

    Thanks.

    Ruchin Dayal.
  2. ruchin
    ruchin avatar
    33 posts
    Member since:
    Jun 2015

    Posted 01 Jul 2015 in reply to ruchin Link to this post

    HI,

    The above mentioned issue is persistent on MI 3 and does not replicate on a moto g phone.

    Thanks.

    Ruchin Dayal.

  3. Tsvetina
    Admin
    Tsvetina avatar
    1876 posts

    Posted 01 Jul 2015 Link to this post

    Hello Ruchin,

    A search on the internet showed that this is a common issue in Cordova apps running on some Android devices. It seems that forcing a repaint of the current screen fixes the problem, as you suggested yourself. A way to do this should be to hook up the resume event of the application and trigger an action that repaints the view. It could be focusing an input, re-binding a widget, navigating to another view, etc.

    Also, you could try, just in case, if updating the Cordova version of the project to the latest availavle one changes anything in the behavior of the app.

    Regards,
    Tsvetina
    Telerik
     

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

     
Back to Top