I managed to make my application start in the background when I call it manually and I also managed to make it autostart. But when both comes together there are some problems.
Currently I have the problem that the app comes to the foreground when it gets autostarted. But when I close it and start it manually again it stays in the background as supposed. How can this be?
These are the lines of code I use to make my app stay in the background:
Besides, with some earlier builts this problem didn't occur and the app behaved as I wanted it to. Only since I express signed it, the problem occurs. Doesn't express sign allow applications to start in the background?