Android Question SetApplicationAttribute programmatically

Discussion in 'Android Questions' started by HAH, Jun 10, 2019.

Similar threads

B4A Code Snippet Theme Colors
B4A Code Snippet Full Screen Theme
B4A Tutorial Make your app compatible with Android 5.0 devices
B4A Tutorial Adaptive Icons
Other B4A v5.80 BETA is released!
  1. HAH

    HAH Active Member Licensed User

    What is the code that equivalent to this
    Code:
    SetApplicationAttribute (android:supportsRtl, true)
    That code is in manifest file, I want to write it in activity or service code.
     
  2. DonManfred

    DonManfred Expert Licensed User

    Application attributes must be known when compiling. They are part of the APK.
    i dont think that you can change it afterwards.
     
  3. HAH

    HAH Active Member Licensed User

    Several months ago, I read in the forum that we can code it in activity/service module, but I didn't reach that post because I forget the search keyword :( , it was an example of something I forget
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    You cannot change it at runtime. The output of the manifest editor is the AndroidManifest.xml file. It cannot be changed after compilation.
     
  5. HAH

    HAH Active Member Licensed User

    Is there any approach to achieve my goal "changing layout direction at runtime with application restart or without"
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    As this is an application level setting, I don't see how you can change it. If it was an Activity setting then you could have created two activities with different values.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice