Android Question Difference between SDK34 and SDK35 with example

Filippo

Expert
Licensed User
Longtime User
Hi,

You will find an example of a project in the appendix.
 

Attachments

  • B4a_with_SDK-34.png
    B4a_with_SDK-34.png
    3.8 KB · Views: 140
  • B4a_with_SDK-35_with_edge-to-edge_enforcement.png
    B4a_with_SDK-35_with_edge-to-edge_enforcement.png
    2.9 KB · Views: 136
  • B4a_with_SDK-35_without_edge-to-edge_enforcement.png
    B4a_with_SDK-35_without_edge-to-edge_enforcement.png
    3 KB · Views: 148
  • Test_SDK_34-35.zip
    9.5 KB · Views: 75

Erel

B4X founder
Staff member
Licensed User
Longtime User
The instructions weren't clear. I've updated them: https://www.b4x.com/android/forum/t...t-of-edge-to-edge-enforcement.167109/#content

1748844698463.png


The manifest code:
B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="35"/>
<supports-screens android:largeScreens="true" 
    android:normalScreens="true" 
    android:smallScreens="true" 
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.
SetApplicationAttribute(android:theme, "@style/LightTheme")
CreateResource(values, theme.xml,
<resources>
    <style
        name="LightTheme" parent="@android:style/Theme.Material.Light">
       <item name="android:actionMenuTextAppearance">@style/LowerCaseMenu</item>
       <item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
    </style>
     <style name="LowerCaseMenu" parent="android:TextAppearance.Material.Widget.ActionBar.Menu">
        <item name="android:textAllCaps">false</item>
    </style>
</resources>
)
 
Upvote 0
Top