StartServiceAtExact (Service As Object, Time As Long, DuringSleep As Boolean)Same as StartServiceAt for Android versions up to 4.3 (API 18).On Android 4.4+ it forces the OS to start the service at the exact time. This method will have a larger impact on the battery compared to StartServiceAt and should only be used in cases where it is important for the service to start at the exact time. B4A Question B4A v8.00 StartServiceAt / StartServiceAtExact / SetExactAndAllowWhileIdle - Pendrush    Mar 19, 2018 Do we still need this code in B4A 8.00+:
Sub SetExactAndAllowWhileIdle (Time As Long, ServiceName As String)
Dim p As Phone
If p.SdkVersion < 23 Then
StartServiceAtExact(ServiceName, Time, True)
Else
Dim intex As Intent
intex.Initialize("", "..., Array(0, Time, pi))
End If
End Sub
or StartServiceAtExact(ServiceName, Time, True) will do... B4A Question [Solved] StartServiceAtExact fails in my project - asales    Oct 27, 2022 ))
CancelScheduledService(Alarme)
'StartServiceAt(Alarme,t,True)
StartServiceAtExact(Me,t,True)
If I change the StartServiceAt to StartServiceAtExact, I get this error below when the app starts.
If I use...(Common.java:947)
at anywheresoftware.b4a.keywords.Common.StartServiceAtExact(Common.java:938... Italian StartServiceAtExact non sbaglia mai - sirjo66    May 24, 2022 provare ad utilizzare (al posto di StartServiceAt) il famoso StartServiceAtExact, ed ho risolto il... Other B4A v11.50 has been released! - Erel    Mar 21, 2022   (51 reactions) the B4J sending code:
m.Put("priority", 10)
- StartServiceAt / StartServiceAtExact: You need to use StartServiceAtExact and add this "non-dangerous" permission:
AddPermission... it is no longer possible to start services in the background. One of the consequences of this restriction...'t always work.
Starting from v11.50 the optimized dexer was removed and B4A uses Google's D8... B4A Question startserviceatexact not workin as expected - jayel    Aug 16, 2018 Hello,
my boss want to know if there is internet connection with my app, so he is sure that al the notifications will be send to the phone.
I implemented a service called "checkinternet"... B4A Code Snippet Start receiver at exact time - Erel    May 28, 2023   (16 reactions) )
If HasPermission Then
StartServiceAtExact(ScheduledReceiver, DateTime.Now + 10 * DateTime.TicksPerSecond, True) 'yes it is StartServiceAtExact and we pass a receiver
Else
Log....REQUEST_SCHEDULE_EXACT_ALARM", "package:" & Application.PackageName)
StartActivityForResult(in...("getSystemService", Array("alarm"))
End Sub
Sub StartActivityForResult(i As Intent)
Dim jo... B4A Question StartServiceAtExact vs StartServiceAt - PhilipBrown    Jun 16, 2015 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?... B4A Question StartServiceAtExact can't read data stored - Erel (first post)    Jan 12, 2021 Still not enough information.
Start a new thread and post the question properly.... B4A Question StartServiceAtExact not working - FreemanHK (first post)    May 14, 2020 After I enable the app to run in background ,
It worked!
Thanks!... B4A Question [Solved] StartServiceAtExact doesn't start at the given date/time - AymanA (first post)    Oct 24, 2019 Thank you so much Erel for your help!... Page: 1   2   3   4   5   6   7   |