M Markos Well-Known Member Licensed User Longtime User Jul 5, 2019 #1 Hi, I used StartService quite successfully in recent past to run an app immune to going to sleep or being killed while in background. I have two(2) questions. 1) StartService is now not allowed and if you execute this command the App will crash? 2) If the latter is true and I'm using a tcp listener how to do I keep that process alive without having to close and reopen thereby disconnecting all active users?
Hi, I used StartService quite successfully in recent past to run an app immune to going to sleep or being killed while in background. I have two(2) questions. 1) StartService is now not allowed and if you execute this command the App will crash? 2) If the latter is true and I'm using a tcp listener how to do I keep that process alive without having to close and reopen thereby disconnecting all active users?
Peter Simpson Expert Licensed User Longtime User Jul 5, 2019 #2 Here you go @Markos, you can always try manipulating the idea in the link below. https://www.b4x.com/android/forum/threads/background-location-tracking.99873/ Upvote 0
Here you go @Markos, you can always try manipulating the idea in the link below. https://www.b4x.com/android/forum/threads/background-location-tracking.99873/
M Markos Well-Known Member Licensed User Longtime User Jul 5, 2019 #3 Thanx a mil. Found my error I used to pass non defined variables in cresting the notification object but now compiler more precise anx makes me use strings .. Upvote 0
Thanx a mil. Found my error I used to pass non defined variables in cresting the notification object but now compiler more precise anx makes me use strings ..