Hello, this topic is also not very complicated, so the post will be quite short.
We have to remember about some rules before we add icon to a MIDlet:
Only PNG’s are allowed icon’s size is not standarized some phones will expand smaller icons, some won’t the icons that are to big might be shrinked or cut to smaller, we can’t decide I recommend using size 32x32, it is smaller than most phones can hold, so at least we can be sure, that it won’t be cut icon files, if we want to reffer to it as: “/icon.
Today’s post will be divided into 2 parts, first will cover JAD files and second will be about JARs.
Part I
JAD stands for Java Application Descriptor, it’s a special file prepared (mostly) by IDE in the process of building/compiling project. It’s used (as the name indicates) to describe file containing application (JAD doesn’t contain application). JAD’s are used to set/provide information about program’s attributes like:
information about size application’s name version vendor (author) icon path comment MIDP/CLDC requirements It will be mostly appreciated by users, who want for example to install program over the internet.
Today I’ll show how to create new mobile app project using Java Mobile and Netbeans (if you don’t have Netbeans installed, read my recent post). If you have installed IDE properly, you should see this screen:
To start new project click:Next, choose options responding to what kind of project you want to create. Select “Java ME” and “Mobile Application”Now, choose project name and path. Also you need to select options “Set as Main Project” (about it later), and “Create HelloMIDlet” which is responsible for creating default MIDlet (Java Mobile application for mobile phone).
Firstly, quick introduction: JavaMe (also known as: j2me, jme, java me, Java Mobile Edition, …) is a special version of Java (in fact it is “frozen” Java 1.3, maybe with some features) dedicated to devices with low computing power, we distinguish two configurations: CDC (palmtops, more powerful phones, …), CLDC (Connected Limited Device Configuration) - baisicaly every other phone.
Configurations include basic classes, and they are extended by profiles (MIDP - Mobile Information Device Profile), all new phones should handle MIDP version 2.