Dear All,
At the time I started working on my project, I was not too aware of how everything in the main activity module is set on pause whenever the app is not in the foreground. My app depends on constant inputs/outputs from/to a server, and will not do well what it´s supposed to if I don´t put up a service module for all the internet related tasks.
However, to sit and find out which parts that it makes sense to run as a service, and which ones that might as well be left in the main activity would take alot of rethinking the project, which is pretty huge. So, my question is:
Will there be any disadvantages - problems with memory and such - if I just throw (almost) all the code from the main activity module over in a service module? That´d seem a bit clumsy, but be a big time saver.
Thanks in advance for your views on this.
At the time I started working on my project, I was not too aware of how everything in the main activity module is set on pause whenever the app is not in the foreground. My app depends on constant inputs/outputs from/to a server, and will not do well what it´s supposed to if I don´t put up a service module for all the internet related tasks.
However, to sit and find out which parts that it makes sense to run as a service, and which ones that might as well be left in the main activity would take alot of rethinking the project, which is pretty huge. So, my question is:
Will there be any disadvantages - problems with memory and such - if I just throw (almost) all the code from the main activity module over in a service module? That´d seem a bit clumsy, but be a big time saver.
Thanks in advance for your views on this.