Modifying Androïd icon
Unsolved
Mobile and Embedded
-
Hi,
I would like including another Icon instead of the basic Androïd Icon. In 3 days I do not succes yet.
Does someone know how to do ?
I tried to modify some files but that don't work.My work directory and files are thoses ones :
C:\Users\Morgatte\Desktop_prog\test2- CMakeLists.txt
- main.cpp
- mainwindow.cpp
- mainwindow.h
- customwidget.cpp
- customwidget.h
- dragzone.cpp
- dragzone.h
- icon.png
My CMakeLists.txt file contains that lines :
set(PROJECT_SOURCES main.cpp mainwindow.cpp mainwindow.h mainwindow.ui ) if(${QT_VERSION_MAJOR} GREATER_EQUAL 6) qt_add_executable(test2 MANUAL_FINALIZATION ${PROJECT_SOURCES} customwidget.cpp customwidget.h dragzone.cpp dragzone.h icon.png ) # Define target properties for Android with Qt 6 as: # set_property(TARGET test2 APPEND PROPERTY QT_ANDROID_PACKAGE_SOURCE_DIR # ${CMAKE_CURRENT_SOURCE_DIR}/android) # For more information, see https://doc.qt.io/qt-6/qt-add-executable.html#target-creation else() if(ANDROID) add_library(test2 SHARED ${PROJECT_SOURCES} icon.png ) qt_android_create_apk( ICON "icon.png" # Chemin vers votre icône ) project(test2) # Define properties for Android with Qt 5 after find_package() calls as: # set(ANDROID_PACKAGE_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/android") else() add_executable(test2 ${PROJECT_SOURCES} ) endif() endif()
-
Actually you can change it in APK build, like this https://youtu.be/VaaWibCSnHM