I have a VOIP Based app which needs to be run 24/7..But System is Killing my application when my application is background..
1) How do i know when system is killing my application.?
2) Can i set some application parameter so that system wont kill my application.?
3) I am aware of how to re-storing the application when user clicks the app,but if system kill my app at 3 PM and if any data received at 3.30 PM will never reach my app as its killed by System.
4) Making Service based Design to my App will help?
How do over come this.i want to make my App Running all time and Listens to data from Server.
Your Comments will me much appreciated.
Thanks
How is your app designed ? Is the 24*7 process running as a Service in the background ? If not, I would suggest making it a Service, as, in that way, Android would only be killing it, in case, the phone memory goes too low (which is rare nowadays with lots of memory available at disposal).
If you can look for some broadcasts to be received (depending on what you are trying to do), you may set up a broadcast receiver and then invoke the service on broadcast receipt, else kill the service as well. That way, even the service won’t be running all the time.
So, it all depends, on what is your requirement..