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
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...
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...
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...
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...
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...
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...
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".
Hi everyone, i'm completing an app, but i really wish to solve those problems that i always had in these years using B4A.
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...
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
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
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...
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:
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)...
Android is killing (putting to sleep) my radio streaming app.
Originally, I placed all of the app code in the main module. It works fine for long periods of time only if I stay in the app. If I exit the app or turn the phone screen off, Android was killing it after about 3 or 4...
If my app does an automatic backup to the cloud, what's the best timing to run the backup process?
I'm adding an automatic backup to some of my apps (so that users can restore later if data gets corrupted or if they just want to revert to an earlier state).
Hi everyone, after a long period of no programming, I met again a problem that I never solved before.
I want my ImageView Background continue under the status bar too.
I Wish to make transparent the part that now is gray the picture.
I tried to follow this post, without success.
Is it possible...
how can I make a border on a panel and then remove a top part of the border to put a label with a transparent background.
note that the background color of the panel is transparent.
I need the background to be transparent because there are screens for apps that contain gradients.