background

  1. walterf25

    Android Question Receivers vs Services (Which one?)

    Hi all, I'm working on a small app that connects to a power usb meter via BLE, I need to log voltage and current values vs Time to a csv file, my question is, since I haven't used Services in a long time, I'm not sure of which one to use, I now see that there are Receivers, as if our lives are...
  2. Alexander Stolte

    B4i Library AS Alarm - Alarm clock or keep app active in the background

    I needed a way to play a sound at a certain time even though the app is in the background. The problem is that the app is paused as soon as it goes into the background, you can delay this by 30 seconds, but if you take longer, the app is stopped and no more code is executed. Now I have found a...
  3. A

    Android Question Web View - need webview die continue

    I have a web vision, I get out of the application and, when the loaded page passes 20 minutes, the page does not continue, the page stops!
  4. M

    Bug? [B4A] Intent Based Camera stops working in certain conditions ?

    Hi everyone, I'm using this method by @Erel to take a picture from Android in my app released months ago. Since some days, some customers told me that the "take picture" button is not working anymore, randomly. After some investigation in my code, I could not find the problem... the only thing...
  5. A

    Android Question Strange behavior of Canvas

    I need to make a background for the views so that only part of the image is visible. For example, the top half. Standard code. imvForeground is already built into the Activity. Dim cvs As Canvas Dim img As Bitmap Dim Rect1 As Rect Dim Rect2 As Rect cvs.Initialize(imvForeground)...
  6. Guenter Becker

    Android Question CustomView Background

    Hello I like to set the Background of the Custom View to a GradiendDrawable by code like it is done by the Designer Properties. Dim ColorArray(2) As Int ColorArray(0) = DisabledColor ColorArray(1) = xui.Color_White...
  7. red30

    Wish Upload and download files in the background

    I think this is an important feature and I would like b4i to support it. Since there are no services in ios like in android, it turns out that the application cannot work in the background at all, although ios itself supports the function of background uploading or downloading files. And now...
  8. red30

    iOS Question The upload of files in the background

    I've asked a similar question before but never found an answer. I need to upload a lot of files to the server and ios really lacks background uploads for this ... I have to wait and not minimize or lock the phone until all the files are uploaded. This is very inconvenient ... In android, this...
  9. toby

    Android Question Unable to bring a B4XPage app to foreground

    When my app is in the background, I use a timer to play a sound and bring the B4XMainPage to the foreground when certain conditions are met. The sound was played and B4XPage.ShowPage("MainPage") was called, but the page didn't appear and no log entry either. I tried put the timer first in...
  10. S

    iOS Question Run a Sub in background thread without blocking the UI (Asynchronous)

    Hello everyone. Maybe someone can help with advice. I am developing a chat. I want that when the application starts, a request is sent and received a JSON file with all messages in order to update all chats. But while this function is being executed, the interface stops responding to clicks. I...
  11. A

    Android Question The reasons for the crash of the process in the background.

    Good day! I have a program that works in the background, like "MyLocation". During development, I constantly (around the clock) test it for background operation. The background mode worked stably, when suddenly, for a completely inexplicable reason, the internal timer stopped. It makes no...
  12. A

    Android Question About the MyLocation app

    Hello! I noticed one curious thing about the MyLocation type of application. It started with the fact that I decided to write an application that runs in the background like MyLocation. Let's say we have the following lines in a test program. 1. Module "Main". Sub Activity_Resume...
  13. M

    Android Question Android ugly glitches (White screen before loading layout and more)

    Hi everyone, i'm completing an app, but i really wish to solve those problems that i always had in these years using B4A. Glitch 1: I'm in Activity "A", i press a button to go to Activity "B". Before showing the Activity "B" layout there is this ugly white screen in between, and then the layout...
  14. M

    Spanish [SOLUCIONADO] Android 10 gradientdrawable

    Hola Estoy usando el siguiente código para redondear las esquinas de un Label y funciona bien excepto en Android 10, en A10 no las redondea, quedan como por defecto Dim l_din_redondeocolor(2) As Int l_din_redondeocolor(0)=Colors.Transparent l_din_redondeocolor(1)=Colors.Transparent Dim...
  15. M

    Android Question [SOLVED] gradientdrawable android 10 b4a

    Hello. Sorry for my english. I'm using the next code for "roundering the corner" of a Label and it works fine but in Android 10 does not work, the corner is flat Dim l_din_redondeocolor(2) As Int l_din_redondeocolor(0)=Colors.Transparent l_din_redondeocolor(1)=Colors.Transparent Dim...
  16. rleiman

    Android Question [SOLVED] - Timer is paused randomly when phone is not connected to our computer to display the logs

    Greetings, Can you look at this small linked B4A project? It's a simple project that has a ticking timer that ticks in the background once every second. This works only when the phone is connected to my computer and I watch the logs so the ticks in B4A with or without the phones screen turned...
  17. Sandman

    iOS Question How to make it simple for user to pick "Always allow" when using geofences?

    I'm experimenting a bit with geofences on iOS (related thread) and have encountered something unexpected. When starting the app, the OS asks me (something like): "Do you want to allow this app to use positioning" With these options for the user to select from: Don't allow Allow once Allow...
  18. A

    Android Question Image Background Eraser

    Hi, how can I delete the image background with the eraser? And this can be done by touching and having undo capability. And the image can be recreated by touching
  19. rleiman

    Android Question [SOLVED] - Changing background colour of B4XDialog

    Greetings, I'm trying to change the background colour of a B4XDialog I started to use but the app crashes with this error in the logs. It crashes on the comented out line. java.lang.NumberFormatException: For input string: "(GradientDrawableWithCorners)...
  20. P

    B4J Question Random picture background

    Hello, Is it possible to pick a random picture from uploaded files and set it as the form's background? Seems simple but I have searched and didn't find anything. Help is appreciated.
Top