Android Question How to support shortcut android:label in different languages ?

b4auser1

Well-Known Member
Licensed User
Longtime User
My application supports several languages for the interface elements. How to support shortcut android:label in different languages ?

B4X:
AddActivityText(actAddShortcut_Test,
    <intent-filter>
        <action android:name="android.intent.action.CREATE_SHORTCUT"/>
        <category android:name="android.intent.category.DEFAULT"/>
    </intent-filter>)
SetActivityAttribute(actAddShortcut_Test,
    android:label, "Test")
 

b4auser1

Well-Known Member
Licensed User
Longtime User
Erel,

Thank you for the support. The AndroidResources library provides a way to localize strings in the code.
But I need to localize the value defined in the manifest file only.
It is not accessible with code (or at least I don't know how to change it with code).
 
Upvote 0
Top