background

  1. M

    Android Question App in pause, when resumed go to MAIN activity instead of the current activity

    Hi everyone, i've an app with the Main activity used as Login form. When i user log in i wrote: StartActivity("Home") But if the user put the app in background and then opens it up from the homescreen (not from the recent apps) starts the Main activity instead of the Home activity (that is the...
  2. M

    Android Question Continous background GPS tracking

    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...
  3. Kevin Hartin

    Android Question #StartAtBoot: True doesnt seem to work

    I have a php web server that happily sends Firebase Push Notifications when a new record is created for a particular customer. These appear when the Android app has been started manually, allowing clients to know when there is something demanding their attention, as the clicking of the...
  4. M

    Android Question Background service tracker killed

    Hi everyone, i implemented this code in my app to track the position in background: https://www.b4x.com/android/forum/threads/background-location-tracking.99873/ But after 4 hours it stopped working... what could be the problem? in the "Service_Create" of the tracking i have...
  5. alimanam3386

    iOS Question How to show a notification

    How can I show a notification when my app is in background? I used timer but it doesn't work when my app is in the background.
  6. D

    iOS Question App not responding to socket messages while in background

    Hi all, I have an app which uses sockets (from the iNetwork library) to communicate with another device over WiFi. Some of the messages received from the other device can cause local notifications to be raised on the iPhone running the app, or the app to send responses back to the other device...
  7. R

    iOS Question Task in Background stop the application.

    Hi, please. Could you help. I.ve been looking the problem and 1 or 2minutes after application in background, the application break. In the log, I can see that message. Can't end BackgroundTask: no background task exists with identifier 1027 (0x403), or it may have already been ended. Break in...
  8. B

    B4J Question How to do "background" stuff in B4J without affecting UI?

    I am programming a Point Of Sale application using B4J which also communicates with remote devices via direct socket connection (using jNetwork and opening/using a ServerSocket connection). I want to use the open socket connection like a serial port, receiving queries from remote devices and...
  9. MegatenFreak

    B4J Question Help minimizing an undecorated form (tried setIconified)

    Hello. My app has a main window which shows all the options and submenus and covers most of the screen. It is "undecorated". The problem is, when I open other forms from that main form, they don't show as separate "tabs" in Windows, so as soon as I click on another part of the screen, the...
  10. R

    Android Question spinner background color on huawei

    I use a spinner on an android layout and have changed the background color. It works, but only on (some) huawei phones i get the effect, that only the with text filled part has this color, the rest is in white. On all other mobiles i have checked the whole control is filled with the back color...
  11. netsistemas

    Android Question StartService HttpUtils2Service when auto destroy it

    I need the service HttpUtils2Service in starter service, because use method JOBDONE(Job as HTTPJO) All service are destroyed in ANDROID8+ (ok) when app is in BACKGROUND (this is a big problem). I write the code (access to a Web Service) in starter service, and with B4A 8.3+ the Starte Service...
  12. FierceBlaze

    Android Question Please Clarify This? A Background Activity with a MediaPlayer Stream!

    I just returned to B4A to recreate an app that I was only able to build in B4A before. But this Background/Foreground Activity vs Android 8+ issue has me nuts on this forum... I can't seem to get a straight answer. Can someone please lay this to rest for me? I just need to play a mediaplayer or...
  13. C

    Android Question Sending SMS in the background

    Is it possible to send small SMS messages in the background without the application having focus, and the phone, not being switched on (i.e. running, but in standby) Thanks, Colin
  14. Cornelius Smit

    Android Question GPS Running and tracking in background

    Good day are there any sample application in B4A to do gps tracking and updating a database even when the screen is locked.The app needs to start when the device boot and update at all times.
  15. K

    Android Question Bakground service not working

    Hii, I make background service app which show notification but it work in some device and not work in some devices. Its work in Xiaomi MI A1 and not work in Redmi note 4. I aslo use region service attributes == #StartAtBoot: True
  16. Yunus ÖZ

    Android Question FirebaseMessaging - preventing show notification when app is running

    Hi, I look all example and try all of them, but always notification is coming when app is running. I only want to show message when notification is coming if app is running 'B4A version 8.30 'Target SDK: 26 Sub Service_Start (StartingIntent As Intent) FM.HandleIntent(StartingIntent)...
  17. rleiman

    Android Question Notifications seem to work differently in Oreo

    Hi Everyone, All of my apps are using this coding to display a notification that lets the user know the app is running in the background. The coding was working correctly on my test phone running Android 7. In the Starter module: In the Process_Globals: Private nNotify As Notification...
  18. Sandman

    iOS Tutorial Location Services Blue Bar

    If you've used Location services on iOS you might have noticed that there's a blue bar showing when the app is in the background and using the GPS: I noticed my app doesn't show this anymore, so I started wondering if something had broken. Couldn't really find anything in the forum, so I...
  19. Shivito1

    Android Question Floating Button keeps pausing other apps

    My app keeps pausing videos when I try to use the fly menu of the bubble. I attached a picture showing the menu and the paused video. Star-Dust mentioned "force it to go in the background by opening a transparent activity from your app" I do use transparency but my question is how do I force it...
  20. giofram

    Android Question B4X: cross-platform and socket managing features

    Dear B4Xers, we need to create cross-platform UI; we need to work with sockets in the background also. A typical example of our hypothetical application is an app where a disabled person "explores" an ever-changing UI that is dynamically generated to learn how to use different types of controls...
Top