M morosh Member Feb 5, 2023 #1 Hello: I need my application still running in the background, so I looked to services examples, I found "MyLocation" and I modified it to have a notification every 10s. Unfortunately, it didn't works, Any help is appreciated. Thank you Attachments Service.zip Service.zip 83 KB · Views: 286
Hello: I need my application still running in the background, so I looked to services examples, I found "MyLocation" and I modified it to have a notification every 10s. Unfortunately, it didn't works, Any help is appreciated. Thank you
teddybear Well-Known Member Licensed User Feb 6, 2023 #2 morosh said: Hello: I need my application still running in the background, so I looked to services examples, I found "MyLocation" and I modified it to have a notification every 10s. Unfortunately, it didn't works, Any help is appreciated. Thank you Click to expand... There are 2 issues in your project. 1. You have to add AddPermission(android.permission.ACCESS_FINE_LOCATION) in your manifest 2. You should initialize timer1 event name "timer1" instead of "timer1_Tick" in your module Tracker. Last edited: Feb 6, 2023 Upvote 0
morosh said: Hello: I need my application still running in the background, so I looked to services examples, I found "MyLocation" and I modified it to have a notification every 10s. Unfortunately, it didn't works, Any help is appreciated. Thank you Click to expand... There are 2 issues in your project. 1. You have to add AddPermission(android.permission.ACCESS_FINE_LOCATION) in your manifest 2. You should initialize timer1 event name "timer1" instead of "timer1_Tick" in your module Tracker.
DonManfred Expert Licensed User Longtime User Feb 6, 2023 #4 mcqueccu said: You should start with Receivers Click to expand... It will not help to run the app 24/7 as per requirement in #1 Upvote 0
mcqueccu said: You should start with Receivers Click to expand... It will not help to run the app 24/7 as per requirement in #1