LaurentGomila / qt-android-cmake

A simple CMake utility for building and deploying Qt based applications on Android without QtCreator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to change the icon of android app

e665107 opened this issue · comments

Hi Friend
Now, I have adapt your cmake with my own, but I can't change the icon of app. I have tried to make a dir named res , and add a icon.png. Then add the icon attribute to andrioidmainfest.xml. But it can't find it. In the binnary dir, I find the res, but it doesn't have the icon.png, Can you help me? Thanks a lot!

It was a long time ago, so maybe it has changed, but here is how it's done in one of my old projects:

In manifest:

<application ... android:icon="@drawable/icon">

Then, "icon.png" is under "res/drawable-ldpi".

Thank you for your instant reply! I have solved this problem by adding the PACKAGE_SOURCES ${CMAKE_CURRENT_LIST_DIR}.