Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Contributor
Posts: 9
Registered: ‎02-23-2010
My Device: 8520 Curve
My Carrier: Vodaphone UK

App Icon not showing - instead the default icon is displayed.

I can't get a custom icon to be applied to my app. The app runs fine on the simulator and on the actual device, but I just get a default app icon.

 

Eclipse version 3.4.1

1) In Eclipse I add an icon resource by right clicking on the project, new->file->advanced->link to file system->browse->finish.

2) I then right click the newly added resource "icon.png" file and select properties->blackberry file properties -> and then select 'use as application icon'

3) I also right click the project -> build path -> configure build path -> blackberry project properties -> resources -> and add the icon in the Icon Files area.

 

But still is doesn't use my custom icon...

 

Finally, in case it is relevant, my app code is started as:

 

public class VisualLauncher extends UiApplication {

	public static void main(String[] args)
	{				
		VisualLauncher theApp = new VisualLauncher();
		theApp.enterEventDispatcher();
	}
	public VisualLauncher()
	{
		pushScreen(new MainGUI());
	}
}

(where MainGUI is my own java class) 

 

Any help much appreciated!

 

Developer
Posts: 455
Registered: ‎01-14-2009
My Device: Apple iPhone 3GS 16GB

Re: App Icon not showing - instead the default icon is displayed.

Would you mind trying it in Blackberry JDE?

Developer
Posts: 157
Registered: ‎05-10-2009
My Device: Not Specified

Re: App Icon not showing - instead the default icon is displayed.

When that happened to me, it was because my icon image was too large.  I've found 120 * 120 pixel,  png files work well.

New Contributor
Posts: 9
Registered: ‎02-23-2010
My Device: 8520 Curve
My Carrier: Vodaphone UK

Re: App Icon not showing - instead the default icon is displayed.

Thanks. I've now tried a small and a large icon size (in png format), unfortunately this hasn't helped either. Thanks again anyway.

 

Developer
Posts: 157
Registered: ‎05-10-2009
My Device: Not Specified

Re: App Icon not showing - instead the default icon is displayed.

In Eclipse, please try this:

Go to 'Project' and select 'properties' & select 'blackberry project properties'

Now click the 'resources' tab and in the 'icon files' section, click 'add'.  Now navigate to your icon file and select it.

 

 

New Contributor
Posts: 9
Registered: ‎02-23-2010
My Device: 8520 Curve
My Carrier: Vodaphone UK

Re: App Icon not showing - instead the default icon is displayed.

Thanks, but I had already tried that and it didn't make a difference.

 

Since my initial post something unusual has happened, I have 5 similar apps in Eclipse, and only 1 of them is showing the custom icon (with the other 4 showing the default icon. I can't understand it - all five apps refer to the same icon and were created in the same way.)

New Member
Posts: 1
Registered: ‎07-06-2010
My Device: 8310
My Carrier: Movistar

Re: App Icon not showing - instead the default icon is displayed.

I am having the same problem. Did you find why is this happening?

 

Thanks in advance.

Developer
Posts: 656
Registered: ‎02-03-2010
My Device: Z10 LE
My Carrier: Rogers

Re: App Icon not showing - instead the default icon is displayed.

Take a look at the screenshot that I have included.  This is how I add the icon.  I drag the icon from the windows folder into the RES section of the project.  Then in the BlackBerry Application Descriptor you can see how you can add the icon to the project.  Hope this helps.


Steven Kader at JaredCo
   Follow me on Twitter    |     Mipixi.com :  Web App for Photo Sharing
New Member
Posts: 1
Registered: ‎09-02-2011
My Device: Bold 9700
My Carrier: T-Mobile

Re: App Icon not showing - instead the default icon is displayed.

I was having trouble with this issue.  I solved it by right clicking on the "img" folder in Eclipse and selecting "Refresh"  My custom icon then appeared when I ran the app.