We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Good afternoon,
I'm trying to change the image of the icon of the application that I made for android.
This code works for java application:
import javax.swing.ImageIcon;
ImageIcon titlebaricon = new ImageIcon(loadBytes("icon.png"));
frame.setIconImage(titlebaricon.getImage());
But that code does not work with android: BUILD FAILED C:\Users\Processing\AppData\Local\Android\android-sdk\tools\ant\build.xml:720: The following error occurred while executing this line: C:\Users\Processing\AppData\Local\Android\android-sdk\tools\ant\build.xml:734: Compile failed; see the compiler error output for details.
Did I should import some library for android?
Thanks in advance
Anthony20
Answers
http://forum.processing.org/one/topic/how-to-change-the-icon-of-the-app.html
Thanks Jellyfish,
It's easier than I thought, I do not need to change the program, only put the images in the folder of the sketch is enough. As in processing-2.2.1\lib\icons
http://wiki.processing.org/w/Android#Icons
Best regards
Anthony20