i did try to follow the post on edge to edge i was referred to in another post
added the section mentioned
had no line to delete
nothing made the app work
it failed in runtime
so i went back and all is working
my sdk is 36
my target sdk in manifest is 35
i think i'm missing something
this is my current working manifest
i tried to remark the theme section but it didn't work
anyone can guide me?
thanks
added the section mentioned
had no line to delete
nothing made the app work
it failed in runtime
so i went back and all is working
my sdk is 36
my target sdk in manifest is 35
i think i'm missing something
this is my current working manifest
i tried to remark the theme section but it didn't work
anyone can guide me?
thanks
B4X:
''This code will be applied to the manifest file during compilation.
''You do not need to modify it in most cases.
''See this link for for more information: http://www.basic4ppc.com/forum/showthread.php?p=78136
'AddManifestText(<uses-permission
'android:name="android.permission.WRITE_EXTERNAL_STORAGE"
'android:maxSdkVersion="30" />
')
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$")
SetApplicationAttribute(android:theme, "@style/MyAppTheme")
CreateResource(values, theme.xml,
<resources>
<style name="MyAppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">#FFFFFF</item>
<item name="colorPrimaryDark">#FFFFFF</item>
<item name="windowNoTitle">true</item>
<item name="windowActionBar">false</item>
</style>
</resources>
)
SetApplicationAttribute(android:largeHeap,"true")
AddManifestText(<uses-feature android:name="android.hardware.camera" android:required="false"/>)
AddManifestText(<uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>)
AddManifestText(<uses-feature android:name="android.hardware.camera.flash" android:required="false"/>)
AddApplicationText(<activity android:name="io.card.payment.CardIOActivity" android:configChanges="keyboardHidden|orientation" />)
AddApplicationText(<activity android:name="io.card.payment.DataEntryActivity" />)
AddPermission("android.permission.USE_FINGERPRINT")
AddPermission("android.permission.NFC")
AddPermission("android.permission.READ_PHONE_NUMBERS")
AddManifestText(
<queries>
<package android:name="arkom.nfc"/>
<package android:name="com.whatsapp"/>
<package android:name="com.whatsapp.w4b"/>
<package android:name="org.telegram.messenger"/>
</queries>
)
AddApplicationText(
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="$PACKAGE$.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths"/>
</provider>
)
CreateResource(xml, provider_paths,
<files-path name="name" path="shared" />
)
'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>
')