Android Question [Solved] Blank screen when starting any application created with B4A (Android 11)

vecino

Well-Known Member
Licensed User
Longtime User
Hi, on a new 10" tablet with Android 11 I am having that problem with any application created with B4A.
Even also the "B4A Bridge" app has that problem.
Even with an application that has only one button.
Usually the whole screen goes blank, and if I hit the "back key" it exits (sometimes) and if I try to enter again then sometimes it starts fine (sometimes).
I have downloaded, for testing purposes, from the google store several apps and they all work fine.
I'm lost!!! I don't get it, it's 6 tablets the same.
I have seen this thread which is similar to what is happening to me:
What could be going on?
 
Solution
I had the same problem some time ago.
As sugested here several times : remove the Starter module.
The problem is : with de...

Computersmith64

Well-Known Member
Licensed User
Longtime User
Have you tried ItemCheck and did it work right the first time?
first time?
Please try this example I uploaded just now.
I downloaded, compiled & ran ItemCheck & it appeared to run fine (although my Spanish is limited, so I didn't really give it a workout).

- Colin.
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
Please, can you test this application?
It's just to check that it starts right the first time and doesn't come up with a blank screen.


It's the sales app I install for my customers, it doesn't do anything special or intrusive.
You can uninstall it right away if you want, it's just to test that it also works on other android 11 devices and the problem is only on these tablets.
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
"All new PRODUCTS launching with Android 11, if they have 2GB RAM or less, MUST return true for ActivityManager.isLowRamDevice() API, and launch as an Android Go device."
whether it says go or not go, it must be the go version.
How can I check that?

Anyway they work ALL the play store apps I have tried.
 
Upvote 0

MicroDrie

Well-Known Member
Licensed User
Longtime User
To avoid all timer problems I would take the following steps:
  1. Cold start of the tablet
  2. Start up B4A Bridge
  3. Connecting B4A Bridge to IDE
  4. Clean up project via IDE
  5. Run program in Debug mode from IDE.
And a question is the Table with the developers option on or off?
 
Upvote 0

Mahares

Expert
Licensed User
Longtime User
I installed it on a samsung S10e phone with OS 11 and got the same screen as klaus above.
Maybe we should all make a donation to you to make up the cost of these 6 tablets, so you can replace them with viable tablets.
 
Upvote 0

Alexander Stolte

Expert
Licensed User
Longtime User
Anyway they work ALL the play store apps I have tried.
The only possibility I see is that you should find a driver and then install the app via usb....
 
Upvote 0

MicroDrie

Well-Known Member
Licensed User
Longtime User
How can I check that?

Anyway they work ALL the play store apps I have tried.

"All new PRODUCTS launching with Android 11, if they have 2GB RAM or less, MUST return true for ActivityManager.isLowRamDevice() API, and launch as an Android Go device."
whether it says go or not go, it must be the go version.

There is a function in the B4A Library B4ActivityManager: detect bots using your app
B4ActivityManager: detect bots using your app reports isLowRamDevice: Returns true if this is a low-RAM device. Emits a log warning and return False in case of sdk < 19.
What is the result of the log when you run the test program of this library?
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
I can't find usb driver for these tablets.
 
Upvote 0

MicroDrie

Well-Known Member
Licensed User
Longtime User
I can't find usb driver for these tablets.
  1. Take a USB and connect the tablet to the PC
  2. Allow USB connection on the tablet or if USB debugging is enabled, allow it.
  3. On the PC, accept the connection to the tablet and choose open from file explorer
  4. Copy the APK file from the IDE environment to a location on your tablet.
  5. Install open a file explore app on your tablet and go to the location where you saved the APK file
  6. "Double click" on your APK file to install it

You may need to allow USB debugging on the tablet. By the way, I use the B4A-Bridge application via a USB cable.
 
Upvote 0

Alexander Stolte

Expert
Licensed User
Longtime User
Copy the APK file from the IDE environment to a location on your tablet.
that makes no sense, because this is not working. If he can connect the tablet via usb to the pc, then he can compile via usb to the tablet and then his app should work.
 
Upvote 0

Sandman

Expert
Licensed User
Longtime User
Regarding the suggestion in #95, if the challenge is getting the APK over to the tablet without using Bridge and USB isn't an option, why not simply place it online somewhere and download using the tablet. And then tap and install using an Android file manager of some sort. (Sorry if I'm suggesting that is completely bonkers, I haven't read the full thread.)
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
I am doing it this way.
I upload the apk to my web server with filezilla and download it to the tablet with the web browser.
It doesn't work "b4a bridge" and neither does the usb connection.
 
Upvote 0

MicroDrie

Well-Known Member
Licensed User
Longtime User
that makes no sense, because this is not working. If he can connect the tablet via usb to the pc, then he can compile via usb to the tablet and then his app should work.
Ypu are correct that compile via the USB and a working B4A-Bridge application, however we don't known if the B4A-Bridge application (which is not used in the procedure) will work on his tablet.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…