I'm trying to add my java project in android studio. I got many references & added my Project in Android studio.
Now i am unable to add the assets to my projects. So please help me to solve it
Thanks in Advance
Structure
CODE
this.trayIcon = new TrayIcon(ImageIO.read(this.getClass().getResourceAsStream("icon.png")));
this.trayIcon.setImageAutoSize(true);
this.trayIcon.setToolTip("Remot Server");
this.trayIcon.setPopupMenu(menu);
SystemTray.getSystemTray().add(this.trayIcon);
Error
Exception in thread "main" java.lang.IllegalArgumentException: input == null!
at javax.imageio.ImageIO.read(ImageIO.java:1348)