Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to deploy strings.xml on Android app?
Forum Updated to NodeBB v4.3 + New Features

How to deploy strings.xml on Android app?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
2 Posts 1 Posters 856 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lqsa
    wrote on last edited by
    #1

    I've using Firebase Cloud Messaging to send notiications to my app. One option in FCM is show the notification message with a localized string that can be found on the strings.xml file provided by the client app. How can create and deploy the Android strings.xml files?

    On QT Creator I've created strings.xml under res/values directory, and it appears on the .pri file under DIST_FILES:

    DISTFILES += \
        android/AndroidManifest.xml \
        android/gradle/wrapper/gradle-wrapper.jar \
        android/gradlew \
        android/res/values/libs.xml \
        android/build.gradle \
        android/gradle/wrapper/gradle-wrapper.properties \
        android/gradlew.bat \
        $$PWD/android/res/values/strings.xml \
        $$PWD/android/res/values-es/strings.xml \
        $$PWD/android/res/values-pt/strings.xml
    

    but when the application is created, the APK file doesn't contain the strings.xml files.

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lqsa
      wrote on last edited by
      #2

      It works! The error was in the server side.

      The strings.xml are correctly created like appears in the sample. In the APK can't view the strings.xml files because they are included into the .dex file.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved