I post my manifest, Thank You.
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: https://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="28"/>
<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:networkSecurityConfig, @xml/network_security_config)
SetApplicationAttribute(android:theme, "@android:style/Theme.Material.Light")
'SetApplicationAttribute(android:theme, "@style/MyAppTheme")
CreateResource(xml, network_security_config.xml,
<network-security-config>
<base-config cleartextTrafficPermitted="true">
<trust-anchors>
<certificates src="system" />
</trust-anchors>
</base-config>
</network-security-config>
)
'SetApplicationAttribute(android:theme, "@style/MyAppTheme")
'
'CreateResource(values, theme.xml,
'<resources>
' <style name="MyAppTheme" parent="Theme.AppCompat.Light.NoActionBar">
' <item name="colorPrimary">#ff039be5</item>
' <item name="colorPrimaryDark">#ff039be5</item>
' <item name="colorAccent">#AAAA00</item>
' <item name="windowNoTitle">true</item>
' <item name="windowActionBar">true</item>
' </style>
'</resources>
')
CreateResource(values, dimen.xml,
<resources>
<dimen name="action_button_padding">10dp</dimen>
</resources>
)
CreateResource(values, colors.xml,
<resources>
<color name="actionbar">#ff039be5</color>
<color name="statusbar">#ff006db3</color>
<color name="textColorPrimary">#ffffff</color>
<color name="navigationBar">#ff006db3</color>
</resources>
)
CreateResource(values-v20, theme.xml,
<resources>
<style name="LightTheme" parent="@android:style/Theme.Material.Light">
<item name="android:colorPrimary">@color/actionbar</item>
<item name="android:colorPrimaryDark">@color/statusbar</item>
<item name="android:textColorPrimary">@color/textColorPrimary</item>
<item name="android:navigationBarColor">@color/navigationBar</item>
<item name="android:actionButtonStyle">@style/ActionButton</item>
</style>
<style name="ActionButton" parent="@android:style/Widget.ActionButton">
<item name="android:drawablePadding">@dimen/action_button_padding</item>
</style>
</resources>
)
CreateResource(values-v14, theme.xml,
<resources>
<style name="LightTheme" parent="@android:style/Theme.Holo.Light">
<item name="android:actionBarStyle">@style/CustomActionBarStyle</item>
<item name="android:actionButtonStyle">@style/ActionButton</item>
</style>
<style name="CustomActionBarStyle" parent="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse">
<item name="android:background">@color/actionbar</item>
<item name="android:actionButtonStyle">@style/ActionButton</item>
</style>
<style name="ActionButton" parent="@android:style/Widget.ActionButton">
<item name="android:drawablePadding">@dimen/action_button_padding</item>
<item name="android:actionButtonStyle">@style/ActionButton</item>
</style>
</resources>
)
AddPermission(android.permission.FOREGROUND_SERVICE)
'End of default text.