Android Run Java everytime page accessed -


I currently have a home screen of my app where it displays a number, all this show is how many questions Answers have been given. Another button takes you to answer the questions and it updates the value of the database.

I've found that the home page number updates for the first time only when the app is opened. This price does not update if you go back to a page.

What should I do to ensure that it is run every time?

I believe that the main method of the onResume The bar will be displayed again.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -