refreshing data of app php vs java in android
<p>I have an app that retrieves data over httpconnection just b calling a php script. I want to implement the following: enable notifications like facebook when new data arrives. I have found a way to do it but I am wondering if there is a better sollution. so far, my app is running in the background and fetches data all the time. I am wondering if it would be better any othrr approach (because I am always fetching data over http connection and I think that this is in-effective). Is there any other way? like enabling my app over my server?</p>
