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

Contents of a view go blank on resume

2 Answers 20 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 29 Jun 2015, 07:53 AM
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 Answers, 1 is accepted

Sort by
0
ruchin
Top achievements
Rank 1
answered on 01 Jul 2015, 09:01 AM

HI,

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

Thanks.

Ruchin Dayal.

0
Tsvetina
Telerik team
answered on 01 Jul 2015, 11:18 AM
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.

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