B4A Tutorial Intent Filters - Intercepting SMS messages in the background - Erel    Jan 13, 2023   (15 reactions) SmsInterceptor objects from the Phone library also use dynamic registration to listen for common intents... is that dynamic receivers listen to intents as long as the process is running. Static receivers... killed. This means that you cannot rely on dynamic receivers to intercept intents when your... type of intents then you may prefer to use a static receiver. Note that some intents can only... intents to the service. For example when you call StartServiceAt, it is the receiver that actually... B4A Tutorial Device Owner / TaskLock / Kiosk apps 2017 - Erel    Jul 18, 2017   (38 reactions)   tags: #kiosk /basic4android/images/SS-2017-07-18_14.35.53.png Existing user accounts on the device must first be removed... /> <intent-filter> <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /> </intent-filter> </receiver>) CreateResource(xml, device_admin.xml... activity. This is done by adding this code to the manifest editor: AddActivityText(Main, <intent-filter> <action android:name="android.intent.action.MAIN" /> <category... 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... running task and you don't want the OS to kill your process when there is no visible activity then... B4A Question Version 6.30 super.onTaskRemoved(rootIntent) error - Erel (first post)    Oct 4, 2016 You need to use a newer version of android.jar (Tools - Configure Paths).... B4A Tutorial Intent Based Camera - Erel    Sep 19, 2021   (20 reactions)   tags: Erel, camera, intent, Fotos, camera intent Newer example: Intent based camera This example uses an intent to take a picture with the default camera app. It is based on this tutorial: https://developer.android.com/training/camera/photobasics.html It is simple to use and doesn't require any permission (*). It does rely on the default camera app to work properly and save the image file in the path passed in the intent. As a fallback, if the image was not saved it tries to get the thumbnail from the intent returned. Don't... B4A Tutorial [B4X] [B4XPages] Intent based camera - Erel    Oct 15, 2020   (17 reactions) B4A + B4i project that uses an intent in B4A and the Camera object in B4i to take a picture using the default camera app. The B4A code depends on JpegUtils: https://www.b4x.com/android/forum/threads/11629/#content It rotates the bitmap based on the EXIF orientation attribute. Don't miss... with the top page being removed from B4XPages stack. The change adds a line before and after the Wait....mStackOfPageIds.Add(TopPage) 'this is required as the page will be removed from the stack when the external... Italian [ solved ] B4A android 10 target 29 non si riesce ad accedere alla cartella esterna download help - Xfood    Aug 21, 2020 api target minore di 29 L'attuale livello API target della tua app è 28, ma il livello API...Buon Pomeriggio a tutti non riesco ad accedere alla cartella download su androi 10 con target 29, faccio notare che per pubblicare un'app su googleplay bisogna mettere per forza api 29, come da... download, da notare che con api 28 quindo solo modificando il manifest in api 28 tutto funziona, qualcuno ha qualche idea? Grazie mille a tutti If Not(File.Exists(File.DirRootExternal, "Download... B4A Code Snippet [B4X] Wait For the first task to complete - Erel    Mar 21, 2024   (12 reactions) This code snippet shows how to wait for several tasks to complete: https://www.b4x.com/android/forum/threads/b4x-wait-for-multiple-tasks-to-complete.150329/#content Here, we are waiting for the first event that is raised. This can be useful in cases where there are two different events, one for... While status(0) = "" Sleep(50) Loop Log("task completed: " &...) WaitForFailure(status) Do While status(0) = "" Sleep(50) Loop Log("task... B4A Question Background task - Laurie    Nov 4, 2019 I'm struggling to create a background task using Tracker as a guide. I have a simple music player that we like but of course it stops when the screen goes off. Where should my Process Globals/Globals and all subs go? Particularly what happens to what was Activity_Create ?... B4A Code Snippet [B4X] Wait for multiple tasks to complete - Erel    Sep 6, 2023   (25 reactions) A pattern such as this one can be used when you want to run multiple resumable subs concurrently and wait for all of them to complete before continuing: Dim status(1) As Int Test1(status) Test2(status) Test3(status) Do While status(0) < 3 Sleep(50) Loop Log("all tasks completed. Continue with your next task...") Private Sub Test1 (Status() As Int) Sleep(Rnd(1, 1000)) Log("Test1 completed") Status(0) = Status(0) + 1 End Sub... Page: 1   2   3   4   5   6   7   |