How to change icon of kivy app

1,974 views
Skip to first unread message

Alex001

unread,
Dec 6, 2017, 12:06:55 AM12/6/17
to kivy-...@googlegroups.com
Hello everyone, how can i change the default kivy icon?? i try in buildozer spec but nothing when i convert my app in apk the icon not change,Sorry for my english Regards

ZenCODE

unread,
Dec 6, 2017, 6:44:10 AM12/6/17
to Kivy users support
That should do it for the desktop icon. Are you sure the path is correct?

Alex001

unread,
Dec 6, 2017, 8:44:28 AM12/6/17
to kivy-...@googlegroups.com
I am a beginner, I created a simple application that shows landscapes, you can explain how to replace the logo of kivy with another image,you can tell me some information like logo photo size or similiar thanks 


ZenCODE

unread,
Dec 6, 2017, 11:45:09 AM12/6/17
to Kivy users support
Okay, in your buildozer.spec file, change the icon line to

    # (str) Icon of the application
    icon.filename = %(source.dir)sicon.png

Then make sure you have an 'icon,png' file in this folder. That should do it.

Alex001

unread,
Dec 7, 2017, 12:26:09 AM12/7/17
to Kivy users support

Traceback (most recent call last):                                                                                                                                                   
  File "/usr/local/bin/buildozer", line 11, in <module>
    load_entry_point('buildozer==0.32', 'console_scripts', 'buildozer')()
  File "/usr/local/lib/python2.7/dist-packages/buildozer/scripts/client.py", line 13, in main
    Buildozer().run_command(sys.argv[1:])
  File "/usr/local/lib/python2.7/dist-packages/buildozer/__init__.py", line 1020, in run_command
    self.target.run_commands(args)
  File "/usr/local/lib/python2.7/dist-packages/buildozer/target.py", line 90, in run_commands
    func(args)
  File "/usr/local/lib/python2.7/dist-packages/buildozer/target.py", line 102, in cmd_debug
    self.buildozer.build()
  File "/usr/local/lib/python2.7/dist-packages/buildozer/__init__.py", line 210, in build
    self.target.build_package()
  File "/usr/local/lib/python2.7/dist-packages/buildozer/targets/android.py", line 765, in build_package
    copyfile(join(dist_dir, 'bin', apk), join(self.buildozer.bin_dir, apk))
  File "/usr/lib/python2.7/shutil.py", line 82, in copyfile
    with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: u'/home/kivy/Desktop/Newfolder/.buildozer/android/platform/build/dists/myapp/bin/MyApplication-0.1-debug.apk'


I have create folder with icon.png,file main.py,and buildozer spec this is the error thanks regards

Reply all
Reply to author
Forward
0 new messages