Android Question delete black page at the beggning of activities

Hi developers.
I have a bad problem. At the start of each of my activities i can see a black page.
I set the Animation Duration of each layout = 0
And i set my app theme like this:
SetApplicationAttribute(android:theme,"@android:style/Theme.Holo.Light.NoActionBar.Fullscreen")
in addition i want to say i used immersive mode in my app.
I want to see nothing.
Please help me.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0
This is my manifest code.
I see a gray page whit blue navigation bar at start of each activities.
but it,s short so where is the problem?

B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="30"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
SetApplicationAttribute(android:theme, "@style/DarkTheme")
CreateResource(values, colors.xml,
<resources>
   <color name="actionbar">#ff039be5</color>
   <color name="statusbar">#ff006db3</color>
   <color name="textColorPrimary">#ffffffff</color>
   <color name="navigationBar">#039BE5</color>
</resources>
)

CreateResource(values-v20, theme.xml,
<resources>
    <style
        name="DarkTheme" parent="@android:style/Theme.Material.NoActionBar.Fullscreen">
         <item name="android:navigationBarColor">@color/navigationBar</item>
    </style>
</resources>
)
CreateResource(values-v14, theme.xml,
<resources>
    <style
        name="DarkTheme" parent="@android:style/Theme.Holo.NoActionBar.Fullscreen">
                 <item name="android:navigationBarColor">@color/navigationBar</item>

    </style>
</resources>
)
AddPermission(android.permission.INTERNET)
 
Upvote 0
Top