java - Refreshing android app -


i have android app gets data mysql database, want implement refreshing capabilities such when new entry entered int database having app able see new entry after without restarting app again. how can that.?

i have tried use

intent = getintent(); finish(); startactivity(i); 

but not want refresh activity not load new entries.

you have implement code fetch new data db , update entries in onresume() method of activity code work.

if entries, using listview, use adapter.notifydatasetchanged() refresh data without having finish , restart entire activity. (taken this post)


Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -