Android Question Application.LabelName is now = packagename

peacemaker

Expert
Licensed User
Longtime User
Hi, All

Just found in B4A v.10.70 that LabelName returns the package name, in Android emulator of API level 29 or 30.
Anything missed ?
 

peacemaker

Expert
Licensed User
Longtime User
manifest editor code
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="19" android:targetSdkVersion="28"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
'End of default text.
SetManifestAttribute("android:installLocation", "auto")
'SetApplicationAttribute(android:largeHeap, "true")
AddPermission(android.permission.READ_EXTERNAL_STORAGE)


SetApplicationAttribute(android:theme, "@style/MyAppTheme")
CreateResource(values, theme.xml,
<resources>
    <color name="custom_background_color">#9BBB59</color>
    <style name="MyAppTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <item name="android:windowBackground">@color/custom_background_color</item>
        <item name="android:windowContentOverlay">@null</item>
        <item name="android:backgroundDimEnabled">false</item>
        <item name="android:windowAnimationStyle">@android:style/Animation</item>
        
        <item name="colorPrimary">#9BBB59</item>
        <item name="colorPrimaryDark">#9BBB59</item>
        <item name="colorAccent">#F79646</item>
        <item name="windowNoTitle">true</item>
        <item name="windowActionBar">false</item>
    </style>
</resources>
)
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
Hmm, indeed, if i start and debug any other app - LabelName works as usual OK...
Seems, something wrong with only this one app

p.s. SOLVED:
Might be related to your manifest
B4X:
SetApplicationAttribute(android:label, "$LABEL$")
must be so
 
Upvote 0
Top