In this recipe we will show ways to improve the look and behavior of our mobile application.
One of the things developers will surely do when their application goes into production is brand the application with the icon of the company or development group, for a more professional look.
First we need to find an icon that we can use for the application.
For our application icon we can use this site to find images:
Creating the project:
MyPrettyMobileApp
, leave the other options with their default values and click Next. DefaultCldcPhone1
and click Finish.Now we will be adding an icon:
HelloMIDlet
and click Edit....Click OK from the Edit MIDlet window and the IDE will refresh the icon in our HelloMIDlet
class.
By adding the icon to our mobile applications' libraries & resources we have made it possible for the image to be accessed by our code and IDE.
The Resources folder will show the available folder and contents when returning to the main window of the IDE.
The project.properties
file is updated with the information containing the image:
manifest.midlets=MIDlet-1: HelloMIDlet,/frog.png,hello.HelloMIDlet
The image is shown when the MIDlet is run, and by exiting our application the listed MIDlet with the image is shown.
3.144.35.122