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
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?
I had the same problem some time ago.
As sugested here several times : remove the Starter module.
The problem is : with de...

kimstudio

Active Member
Licensed User
Longtime User
are these.
I don't even know Android 11 can manage to run or not on 2G RAM... that's why Go Edition?

BTW: my 3 years Anroid phone is Android 10 and now I saw even 13 is out, guess all these OS changes is a light nightmare for developers.
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
These tablets have 2 GB
I don't know, I'm not sure anymore if the problem is the tablet or my programs that are not ready for Android 11
I compile them for SDK 28, I don't think that's the problem.
They are not in the play store, I install them on the devices before delivering them to customers.
 
Upvote 0

josejad

Expert
Licensed User
Longtime User
hi vecino, any logs in the IDE?
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
Hello, the IDE does not show anything.
I seem to remember that there was some way to enable an "advanced log" with B4A but I don't remember how to do it.
 
Upvote 0

josejad

Expert
Licensed User
Longtime User
Uncheck the “filter log“ check in the ide
 
Upvote 0

Hamied Abou Hulaikah

Well-Known Member
Licensed User
Longtime User
it doesn't show the dialog asking whether to allow any permissions.
You should write your code to ask user about permission grant, dialog will not appear without your routine code such as:

B4X:
rp.CheckAndRequest(rp.PERMISSION_WRITE_EXTERNAL_STORAGE)
   Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
   If Result Then
       'your remaining code here
   Else
       Log("No permission!")
   End If
Your problem may be related to your coding routine.
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
There doesn't seem to be much information in the log.

Logger connected to: SMART PRODUCTS CONNECTION SA GRAVITY SE
--------- beginning of main
Not starting debugger since process cannot load the jdwp agent.
Returning zygote-cached class loader: /system/framework/android.test.base.jar
No Network Security Config specified, using platform default
No Network Security Config specified, using platform default
common created.
Starting remote logger. Port: 35536
[MapperLoader] load
[MapperLoader] loadModule
After accept
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
iMideScreen: 9
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
Compat change id reported: 147798919; UID 10113; state: DISABLED
** Activity (main) Pause, UserClosed = true **
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
You should write your code to ask user about permission grant, dialog will not appear without your routine code such as:

B4X:
rp.CheckAndRequest(rp.PERMISSION_WRITE_EXTERNAL_STORAGE)
   Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
   If Result Then
       'your remaining code here
   Else
       Log("No permission!")
   End If
Your problem may be related to your coding routine.
I do so.
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
This is a B4XPages project?
Did you tried with an Activity project? Same problem?
I have tried with the "classic" mode and with "b4xpages" and problems occur randomly in both modes.
I mean, even "b4a bridge" gives problems. Sometimes it starts and sometimes it doesn't. Sometimes it shows "FTP server" and sometimes not. Sometimes it says "error saving apk" and sometimes it works fine.
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
Curiously it does not show the permissions dialog and in "settings -> applications" it shows "all permissions denied".
I change it manually to give it permissions.
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
Attached is a simple application that is still under development and does not start with these tablets con Android 11.
 

Attachments

  • ItemCheck.zip
    62.6 KB · Views: 156
Upvote 0

Hamied Abou Hulaikah

Well-Known Member
Licensed User
Longtime User
tested and worked on android 9
sorry I don't have 11
By the way try to downgrade/upgrade your devices if the problem is specific to 11.
 
Upvote 0

walterf25

Expert
Licensed User
Longtime User
Just FYI, i have a client who is using some Samsung Tab 8 SM-X205 tablets and for some reason the app I'm developing doesn't run fine, the issue only happens on this specific tablet running Android 11, I have tried it other devices and the app runs fine, maybe the issue is not specific to the tablet?

Just following this thread as I have been trying to figure out what's going on.

Walter
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
Thanks for the information, I am even more scared than before ?
Will I have to buy old tablets (Android <11) to have for the future?
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
Just FYI, i have a client who is using some Samsung Tab 8 SM-X205 tablets and for some reason the app I'm developing doesn't run fine, the issue only happens on this specific tablet running Android 11, I have tried it other devices and the app runs fine, maybe the issue is not specific to the tablet?

Just following this thread as I have been trying to figure out what's going on.

Walter
What problems do you have?
Is it similar to what is happening to me?
 
Upvote 0
Top