T
his is third part of the "Java ME Beginners Tutorial" series. If you haven't read the previous parts you can begin here (Java ME Beginners Tutorial : Introduction).
This section explains in-depth about the Sun's Wireless Tool kit(WTK). We have already discussed the Installation of WTK.
When you install WTK seven menu entries are made for you. They are:Default Device Selection
After you write your code and compile it, you will be emulating the behavior of your application using an emulator that's built into the WTK. This avoids the need for a physical mobile device to install and test your app each time you make a modification. Since there are a wide variety of mobile devices on the market each with a different look and feel, WTK provides us with four different emulators each having a different screen size and look and feel.
The "Default Device Selection" menu entry points to Documentation
An excellent documentation for the Wireless Tool Kit. It also includes the API reference for CLDC, MIDP and a number of other popular packages. (Don't worry if you don't understand what's CLDC and MIDP. It will be explained later). Go throught the FAQ section in the documentation. It is a must read!OTA Provisioning
The Java ME platform has the ability to download and install a Java application over a wireless network (usually on demand). This is called OTA(Over The Air installation) For this, after developing the application we need to place the application on a special server. Once we have done this, we can use the WTK emulator to download and install the application. If OTA works fine in emulator it ought to work fine in an actual mobile device.
The "OTA Provisioning" menu entry points to
Select "Apps" and then Menu -> Launch.
You will see a text entry where you can give the web address of your application to be installed.Preferences
The menu entry "Preferences" points to Utilities
The "Utilities" menu entry points to Wireless Toolkit 2.5
This is the most important one. It points to
An important thing to know is that WTK is not an IDE. It doesn't have any means for code editing. You will have to use an external text editor like notepad for creating .java files.
We can classify the main window into three parts:
This have been marked in the figure:
How to use WTK will be discussed as we begin coding.
Previous:Installation
Table of Contents
Next:Java ME Basics
Showing posts with label Java ME. Show all posts
Showing posts with label Java ME. Show all posts
T
his is the beginning of the 'Java ME Beginners Tutorial' Series. Emphasis has been given to explain stuff in a easy to understand, concise manner. This is intended for novice Java programmers who wishes to enter the 'Java ME' arena. Please send your feedback to anoopengineer[AT]gmail[DOT]com. We will begin with the prerequisites.
Prerequisites
- Good knowledge on Core Java a.k.a Java SE.
- Sun Java Wireless Toolkit 2.5.1. See installation for details.
- A Little grey matter.
What we are going to learn
Java ME (earlier known as J2ME) is for creating java programs for mobile phones (I'm lying here as I explains later, but this will help you now). You use an ordinary Windows/Linux desktop computer to write your program, emulate its working using the toolkit, and then transfer it to a mobile phone for installing.
For this, you need to install "Sun Java Wireless Toolkit" in your desktop. The current version of the toolkit as of writing this is 2.5.1. How to get the toolkit and install it is specified in the installation section. After going through this tutorial, you will be able to create all kind of mobile applications, limited only by your creativity
| Table of Contents | Next: Installation |

