Android Question Android 4.4 and Region Attribute Include Title

tdocs2

Well-Known Member
Licensed User
Longtime User
Greetings, all.

Thank you in advance to any reply related to this question.

B4X:
#Region Activity Attributes
#FullScreen: True
#IncludeTitle: False
#End Region

When I run the activity in 4.4, whether Full Screen is true or False, the activity tries to display with a title and then quickly fades out and gives way to the Activity the way I designed it - Include Title: False.

Anyone with 4.4 could easily verify this, I guess. I tried it in 2 different devices running 4.4 with the same results. The behavior is related to Android 4.4 only - it does not happen in 4.0, 4.1, 4.2, and 4.3.

Any solutions?

Regards.
 

tdocs2

Well-Known Member
Licensed User
Longtime User
Thank you, Erel.

I tested on a Nexus 7 (original 1280 by 800) and on a Samsung Note 10 (2014) running 4.4. The behavior is like a flash screen (half a second or so) that shows the title and the icon for the app. It does not happen on devices running Android 4.0, 4.1, 4.2, and 4.3. The behavior is very solid and predictable in these environments.

It is a little bit of a detraction - a little awkward... Can I do anything to correct it?

Best regards.

Sandy
 
Upvote 0

tdocs2

Well-Known Member
Licensed User
Longtime User
You can remove the actionbar from the theme with the manifest editor:
B4X:
SetActivityAttribute(main, android:theme, @android:style/Theme.Holo.NoActionBar)

This will work for Android 4+. It is also possible to set a similar theme for Android 2.x: Theme based on version Tutorial

Thank you, Erel.

This addresses the flash screen issue.

On a secondary question related to running on Full Screen, some devices will bring up the full screen activity from the onset while others bring up the activity as if it were not Full Screen, and then adjust it upward in a smooth fashion to cover the Device Status Bar. I do not have a clear pattern to report since it seems to happen on multiple versions of Android.

Best regards.

Sandy
 
Upvote 0
Top