Android Question B4XPages, Splash Screen + Biometric

bobbyh

New Member
Hi,

I'm a new b4xpages , I'm trying to create a splash screen + biometric.


and



manifest editor :
B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="21" 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$")
CreateResourceFromFile(Macro, Themes.LightTheme)
'End of default text.
SetActivityAttribute(Main, android:theme, "@style/DarkTheme")
CreateResource(values, theme.xml,
<resources>
    <style
        name="DarkTheme" parent="@android:style/Theme.Material.Light.NoActionBar.Fullscreen">
          <item name="android:windowBackground">@color/window</item>
    </style>
</resources>
)

CreateResource(values, colors.xml,
<resources>
    <color name="window">#FF5B7BFF</color>
</resources>
)

AddPermission(android.permission.USE_BIOMETRIC)
AddPermission(android.permission.USE_FINGERPRINT)
SetApplicationAttribute(android:theme, "@style/MyAppTheme")
CreateResource(values, theme.xml,
<resources>
    <style name="MyAppTheme" parent="Theme.AppCompat.Light">
    </style>
</resources>
)


I have an error when I run it.
B4X:
B4A Version: 11.50
Parsing code.    (0.02s)
    Java Version: 11
Building folders structure.    (0.02s)
Running custom action.    (0.03s)
Compiling code.    (0.08s)
Compiling layouts code.    (0.02s)
Organizing libraries.    (0.03s)
    (AndroidX SDK)
Compiling resources    (0.70s)
Linking resources    Error
AndroidManifest.xml:22: error: resource style/DarkTheme (aka b4a.example:style/DarkTheme) not found.
error: failed processing manifest.

Thanks for helping.

Regards,
Bobby.
 
Top