The app is simple ,:
- inicio.java: will only show a screen loading and do a check that you are connected or not the internet.
- carregando.java: will display a web page, using myWebClient;
- sem_conexao.java: will display a screen showing that is not connected and also a button to reload and make another check that you are connected or not the internet;
Everything ok ... But then This web page shows only news ... I wanted to make show the number of new notifications ... I thought of pulling of a page, the id of the last posted news, and this information would be saved in memory, whatever .. And it would be done a check every 3minutes eg ..
If, when pulling the url would be sent the latest id displayed .. And it would to do a check of the amount of new news, subtracting the values.
Does anyone have any idea how I could do that? I've been searching, but the most difficult being to make the app run in the background to keep doing this check.
Help me please !!
- inicio.java: will only show a screen loading and do a check that you are connected or not the internet.
- carregando.java: will display a web page, using myWebClient;
- sem_conexao.java: will display a screen showing that is not connected and also a button to reload and make another check that you are connected or not the internet;
Everything ok ... But then This web page shows only news ... I wanted to make show the number of new notifications ... I thought of pulling of a page, the id of the last posted news, and this information would be saved in memory, whatever .. And it would be done a check every 3minutes eg ..
If, when pulling the url would be sent the latest id displayed .. And it would to do a check of the amount of new news, subtracting the values.
Does anyone have any idea how I could do that? I've been searching, but the most difficult being to make the app run in the background to keep doing this check.
Help me please !!
Aucun commentaire:
Enregistrer un commentaire