PhilipBrown Active Member Licensed User Longtime User Jun 16, 2015 #1 I'm not clear on the difference between StartServiceAtExact and StartServiceAt. If StartServiceAt does not start at the exact time given, then when does it start?
I'm not clear on the difference between StartServiceAtExact and StartServiceAt. If StartServiceAt does not start at the exact time given, then when does it start?
Erel B4X founder Staff member Licensed User Longtime User Jun 16, 2015 #2 Starting from Android 4.4, the OS may not use the exact time. The purpose is to group scheduled tasks and save battery. If you call StartServiceAtExact it will force it to wake the phone at the exact time. Upvote 0
Starting from Android 4.4, the OS may not use the exact time. The purpose is to group scheduled tasks and save battery. If you call StartServiceAtExact it will force it to wake the phone at the exact time.
ArminKH Well-Known Member Jul 8, 2015 #3 @Erel Well,now we should use StartServiceAtExact for android > 4.4 and StartServiceAt for android < 4.4 ? or we can use StartServiceAtExact for all android versions? Upvote 0
@Erel Well,now we should use StartServiceAtExact for android > 4.4 and StartServiceAt for android < 4.4 ? or we can use StartServiceAtExact for all android versions?
Erel B4X founder Staff member Licensed User Longtime User Jul 9, 2015 #4 StartServiceAtExact behaves exactly the same as StartServiceAt on Android 4.3-. Whether you should use the Exact version or not depends on your app requirements. Upvote 0
StartServiceAtExact behaves exactly the same as StartServiceAt on Android 4.3-. Whether you should use the Exact version or not depends on your app requirements.
ArminKH Well-Known Member Jul 9, 2015 #5 Erel said: StartServiceAtExact behaves exactly the same as StartServiceAt on Android 4.3-. Whether you should use the Exact version or not depends on your app requirements. Click to expand... i am not sure that i understand exactly You mean we can startserviceatexact on old android version?for example android 2.3? Upvote 0
Erel said: StartServiceAtExact behaves exactly the same as StartServiceAt on Android 4.3-. Whether you should use the Exact version or not depends on your app requirements. Click to expand... i am not sure that i understand exactly You mean we can startserviceatexact on old android version?for example android 2.3?
Erel B4X founder Staff member Licensed User Longtime User Jul 9, 2015 #6 arminkh said: You mean we can startserviceatexact on old android version?for example android 2.3? Click to expand... Yes and Yes. Upvote 0
arminkh said: You mean we can startserviceatexact on old android version?for example android 2.3? Click to expand... Yes and Yes.
M Mahares Expert Licensed User Longtime User Jul 15, 2015 #7 I am trying to use this code: Code: Copy StartServiceAtExact(svcDownload, Datetime.now + X ,True) But it generates an error: Error description: Undeclared variable 'startserviceatexact' is used before it was assigned any value. I am using a phone with OS 5.0. How do you get StartServiceAtExact to work. It is not recognized? Thank you Upvote 0
I am trying to use this code: Code: Copy StartServiceAtExact(svcDownload, Datetime.now + X ,True) But it generates an error: Error description: Undeclared variable 'startserviceatexact' is used before it was assigned any value. I am using a phone with OS 5.0. How do you get StartServiceAtExact to work. It is not recognized? Thank you
DonManfred Expert Licensed User Longtime User Jul 15, 2015 #8 StartServiceAtExact is introduced in B4A 5.0 Which Version of B4A you are using? Upvote 0