Download Sample Code and jarfiles.
| Articles |
You can download sample code related to the discussion, you need to have a J2ME development enviorenment to compile them (eg. Sun Wireless Took Kit 2.0 or higher). Even though the midlets can be executed on the Nokia 6600, Some of these samples may not work on KToolbar
6600.zip
The source code in this zip archives contains:
- BaseMidlet.java
The base class for all of the midlets used in this demo. It defines two utility methods for displaying application and error (exception) messages.
- HTTP.java
Retrieving a web page using the GET and POST methods.
- MickeyMouse.java
A class that captures audio input - which sounds like 'Mickey Mouse' when played back. Audio data is saved in the RMS.
- MickeyMouse.java
A class that captures audion input - which sounds like 'Mickey Mouse' when played back. Audio data is saved in the RMS.
- Record.java
Capture an audio clip in three different formats to determine what works best (turns out to be AMR).
- Play.java
Plays back audio data from the record store. This class is the counter part for the MickeyMouse.java and Record.java classes.
- VideoRecord.java
Will attempt to capture video data from the phones camera (and will fail in the attempt because RecordControl is not support for capture://video)
- File.java
Will try and (fail) to access the filesytem using the File Connection Optional Package of the GCF.
The zip file also contains the compiled binary (unsigned) jarfile and it's descriptor. You can deploy the demo directly on your mobile phone by pointing it at http://www.raditha.com/6600.jad
If you are interested in configuring your webserver to deploy midlets this way, add the following lines to your apache configuration:
addtype application/java-archive jar addtype text/vnd.sun.j2me.app-descriptor jadThese directives can either be placed in the .htaccess file or the httpd.conf file, if you place then httpd.conf, apache has to be restarted.
The 6600 | The MMAPI | The Connectors | The Verdict | Download




