Then you should look into Service in Android and how that should check the server you use each intervall and send the result to your Activity. Or use a propper solution like XMPP (asmack.jar would help you with that).
On 11 Juli, 08:33, Akhil Malik <[email protected]> wrote: > Actually i am building an app for online chat... i am trying to check > server after certain interval if there is any new data or not. if any new > message exists on server that will be downloaded and shown in the app... > the main reason i want to do this is to get latest message on device as > soon as it arrives on server..On Tuesday, July 10, 2012 9:19:00 PM UTC+5:30, > MagouyaWare wrote: > > > What are you trying to accomplish by doing this? Surely you don't want to > > be starting the activity from scratch again every time just to update the > > data that is displayed? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

