B4A Tutorial Background location tracking - Erel    Jul 16, 2023   (50 reactions)   tags: Longrunningaoo, background clock alive, B4A Background location, gps, B4A service that keeps the process running in the background. The current location is shown in....
Relevant example, based on this example, which plays music in the background: https://www.b4x.com/android/forum/threads/background-task.111106/#post-693336
There is a new requirement in Android 10+ devices.
In order for the location tracking to continue working in the background, if the user chooses... B4A Tutorial Intent Filters - Intercepting SMS messages in the background - Erel    Jan 13, 2023   (15 reactions) application is in the background. A possible workaround is to call Service.StartForeground in the service... B4A Tutorial Geofence - Monitoring a region in the background - Erel    Feb 1, 2023   (27 reactions)   tags: GEO, Geofence, B4A GPS Geofence, Geofencing Geofencing is an Android feature that allows your app to be notified when the user enters or exits a monitored region. The nice thing about this feature is that your app doesn't need to run for monitoring to work. It will be started automatically when needed. The GeofenceService uses JavaObject to implement the Geofencing API: https://developer.android.com/training/location/geofencing.html ... Games [XUI2D] Large background class + example - Erel    Jun 14, 2021   (11 reactions) LargeBackground class helps with drawing the game background based on a large image that is split... Files folder. The code itself is very simple: Background.Initialize(Me, "map", "png... - Number of columns Call Background.Tick from the Tick event: Background.Draw(GS) And DrawComplete from the DrawingComplete event: Public Sub DrawingComplete Background.DrawComplete End Sub Note that ivBackground should be public variable. The example shows this map: https://opengameart.org... B4A Tutorial Creating a sticky service - long running background tasks - Erel    Dec 9, 2018   (14 reactions)   tags: Services Edit: Things have changed with newer versions of Android and new restrictions. Sticky services should not be used any more. Background service example: https://www.b4x.com/android/forum/threads/background-location-tracking.99873/#content This tutorial is not 100% correct anymore. There are several ways to handle background tasks. 1. You can use StartServiceAt to schedule a service to run at a specific time. When the service is started you can schedule the next one. This way you can create... B4i Tutorial Background playback - Erel    May 17, 2020   (9 reactions) This tutorial explains how you can play local audio files or stream audio while your app is in the background. Standard applications are killed when moved to the background. However you can add the following attribute to your project to mark it as an application that plays audio in the background: #Region Project Attributes #ApplicationLabel: B4i Example #Version: 1.0.0 'Orientation possible values: Portrait, LandscapeLeft, LandscapeRight and PortraitUpsideDown... B4A Question [SOLVED] - Android 10 - Background GPS/Ble scans stop getting data after 1 hr - Jmu5667    Jan 19, 2021 ) AddPermission(android.permission.ACCESS_BACKGROUND_LOCATION) AddPermission(android.permission... Samsung XCover. The ble service has the following code for background scanning: Sub Process_Globals... Games [XUI2D] Parallax Background - Erel    Jun 14, 2021   (6 reactions) 114882 Art source: https://opengameart.org/content/parallax-2d-backgrounds ParallaxBackground class makes it simple to create a multilayer background. The image files should be organized like this, where 0 is the top layer. 114883 The code is very simple: Parallax.Initialize(Me, "layer", "png", 7) 'file names and count Public Sub Tick (GS As X2GameStep) HandleKeys...-background-class-example.131589/post-829748 Note that ivBackground should be public variable. https... B4i Tutorial Background Fetch (Downloads) - Erel    May 3, 2016   (4 reactions) Background fetch feature allows applications to run for a short period of time (up to 30 seconds) while in the background. The steps required to use this service are: 1. Add the fetch mode... no.RunMethod("setMinimumBackgroundFetchInterval:", Array(0)) '0 = minimum interval... the screen is on). #Region Project Attributes #ApplicationLabel: Background Fetch #Version: 1...("setMinimumBackgroundFetchInterval:", Array(0)) End Sub Private Sub Application_FetchDownload Log... B4A Question Continous background GPS tracking - Mike1970    Oct 18, 2019 Hi everyone, i'm coding an app for quite a whille (before the update), and i quitted beacuse the SO kill my foreground process while the app is in background, so after an random period of time it stop working. I wish to know if there is a way with the new update to prevent the OS to kill my process/service (I already tried the Erel's example of gps tracking, my phone kill even that after a while. My phone: Meizu m5c)... Page: 1   2   3   4   5   6   7   |