From a0c8ccf3a1043f6677c8a46da8dd70ded7453446 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Tue, 18 Nov 2014 13:02:12 -0800 Subject: [PATCH] use strings.xml to clean application name --- cmake/android/AndroidManifest.xml.in | 90 ++++++++++++++-------------- cmake/android/QtCreateAPK.cmake | 3 + cmake/android/strings.xml.in | 11 ++++ gvr-interface/CMakeLists.txt | 2 +- 4 files changed, 60 insertions(+), 46 deletions(-) create mode 100644 cmake/android/strings.xml.in diff --git a/cmake/android/AndroidManifest.xml.in b/cmake/android/AndroidManifest.xml.in index ebed371a6b..50ddb45975 100755 --- a/cmake/android/AndroidManifest.xml.in +++ b/cmake/android/AndroidManifest.xml.in @@ -3,53 +3,53 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - + + + + + + - - - + + + - + \ No newline at end of file diff --git a/cmake/android/QtCreateAPK.cmake b/cmake/android/QtCreateAPK.cmake index 1e7e3c8c8a..a3dea6b65a 100644 --- a/cmake/android/QtCreateAPK.cmake +++ b/cmake/android/QtCreateAPK.cmake @@ -37,6 +37,9 @@ macro(qt_create_apk) # Create "AndroidManifest.xml" configure_file("${ANDROID_THIS_DIRECTORY}/AndroidManifest.xml.in" "${ANDROID_APK_BUILD_DIR}/AndroidManifest.xml") + # create "strings.xml" + configure_file("${ANDROID_THIS_DIRECTORY}/strings.xml.in" "${ANDROID_APK_BUILD_DIR}/res/values/strings.xml") + # copy the res folder from the target to the apk build dir add_custom_command( TARGET ${TARGET_NAME} diff --git a/cmake/android/strings.xml.in b/cmake/android/strings.xml.in new file mode 100644 index 0000000000..6e6ce7b12e --- /dev/null +++ b/cmake/android/strings.xml.in @@ -0,0 +1,11 @@ + + + + + + ${ANDROID_APP_DISPLAY_NAME} + + Can\'t find Ministro service.\nThe application can\'t start. + This application requires Ministro service. Would you like to install it? + Your application encountered a fatal error and cannot continue. + diff --git a/gvr-interface/CMakeLists.txt b/gvr-interface/CMakeLists.txt index e40bcadc01..b410290694 100644 --- a/gvr-interface/CMakeLists.txt +++ b/gvr-interface/CMakeLists.txt @@ -16,7 +16,7 @@ link_hifi_libraries(${REQUIRED_HIFI_LIBRARIES}) link_shared_dependencies() set(ANDROID_SDK_ROOT $ENV{ANDROID_SDK}) -set(ANDROID_APP_NAME Interface) +set(ANDROID_APP_DISPLAY_NAME Interface) set(ANDROID_API_LEVEL 19) set(ANDROID_APK_PACKAGE io.highfidelity.gvrinterface) set(ANDROID_APK_FULLSCREEN true)