<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Free Source Code &#187; J2ME</title>
	<atom:link href="http://freesrc.com/tag/j2me/feed/" rel="self" type="application/rss+xml" />
	<link>http://freesrc.com</link>
	<description>java, flex, javascript, c, c++, android, j2me</description>
	<lastBuildDate>Fri, 26 Jun 2009 06:46:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>J2ME e-mail validator</title>
		<link>http://freesrc.com/java/j2me/j2me-e-mail-validator/</link>
		<comments>http://freesrc.com/java/j2me/j2me-e-mail-validator/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 11:18:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[J2ME]]></category>
		<category><![CDATA[e-mail]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[validator]]></category>

		<guid isPermaLink="false">http://freesrc.com/?p=210</guid>
		<description><![CDATA[Simple email validator in j2me.

	public static boolean validate(String email) {
        if (email == null &#124;&#124; email.length() == 0 &#124;&#124; email.indexOf("@") == -1 &#124;&#124; email.indexOf(" ") != -1) {
            return false;
        [...]]]></description>
		<wfw:commentRss>http://freesrc.com/java/j2me/j2me-e-mail-validator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to create a Gauge Tracker</title>
		<link>http://freesrc.com/java/j2me/how-to-create-a-gauge-tracker/</link>
		<comments>http://freesrc.com/java/j2me/how-to-create-a-gauge-tracker/#comments</comments>
		<pubDate>Fri, 23 Jan 2009 13:51:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[J2ME]]></category>
		<category><![CDATA[gauge]]></category>

		<guid isPermaLink="false">http://freesrc.com/?p=207</guid>
		<description><![CDATA[This example shows how to create a Gauge tracker in MIDP.

import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;

public class GaugeTracker extends MIDlet
            implements ItemStateListener, CommandListener {

        private Gauge mGauge;
        private StringItem mStringItem;

    [...]]]></description>
		<wfw:commentRss>http://freesrc.com/java/j2me/how-to-create-a-gauge-tracker/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Send an HTTP POST and GET Requests</title>
		<link>http://freesrc.com/java/j2me/how-to-send-an-http-post-and-get-requests/</link>
		<comments>http://freesrc.com/java/j2me/how-to-send-an-http-post-and-get-requests/#comments</comments>
		<pubDate>Fri, 23 Jan 2009 13:35:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[J2ME]]></category>
		<category><![CDATA[get]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[post]]></category>

		<guid isPermaLink="false">http://freesrc.com/?p=195</guid>
		<description><![CDATA[As you might imagine, sending an HTTP POST request is a very similar process to sending a GET request. 
See example.


public void httpRequest(){
    Connect.getInstance().setParam("all", "getall"));
    Connect.getInstance().setParam("sessionid", "64654sdf465sadf4");
    Connect.getInstance().doPost("http://freesrc.com/");
    while (Connect.getInstance().isActive()) {
        Thread.sleep(20);
    }
 [...]]]></description>
		<wfw:commentRss>http://freesrc.com/java/j2me/how-to-send-an-http-post-and-get-requests/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>J2ME &#8211; How to write &#8211; read image in &#8211; from RMS</title>
		<link>http://freesrc.com/java/j2me/j2me-how-to-write-read-image-in-from-rms/</link>
		<comments>http://freesrc.com/java/j2me/j2me-how-to-write-read-image-in-from-rms/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 09:41:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[J2ME]]></category>
		<category><![CDATA[getRGB]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[rgb]]></category>
		<category><![CDATA[rms]]></category>

		<guid isPermaLink="false">http://freesrc.com/?p=181</guid>
		<description><![CDATA[The example below saves image file into RMS and shows it on mobile.
Data like image, image name, width, height can be stored in RMS.
The size of the image file do matters if phone capacity is small. 
Sample.java

package freesrc.com;

import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Image;
import javax.microedition.midlet.*;

/**
 * @author freesrc.com
 */
public class Sample extends MIDlet {

    private Display [...]]]></description>
		<wfw:commentRss>http://freesrc.com/java/j2me/j2me-how-to-write-read-image-in-from-rms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RecordStore(rms) write Java Object</title>
		<link>http://freesrc.com/java/j2me/recordstore/</link>
		<comments>http://freesrc.com/java/j2me/recordstore/#comments</comments>
		<pubDate>Thu, 18 Dec 2008 11:39:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[J2ME]]></category>
		<category><![CDATA[java ME]]></category>
		<category><![CDATA[Java Micro Edition]]></category>
		<category><![CDATA[netbeans]]></category>
		<category><![CDATA[RecordStore]]></category>
		<category><![CDATA[rms]]></category>

		<guid isPermaLink="false">http://freesrc.com/?p=163</guid>
		<description><![CDATA[A record store is an ordered collection of records. Records are not independent entities: each must belong to a record store, and all record access occurs through the record store. In fact, the record store guarantees that records are read and written atomically, with no possibility of data corruption.
When a record is created, the record store assigns it [...]]]></description>
		<wfw:commentRss>http://freesrc.com/java/j2me/recordstore/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finding multimedia content-type support of a mobile device</title>
		<link>http://freesrc.com/java/j2me/finding-multimedia-content-type-support-of-a-mobile-device/</link>
		<comments>http://freesrc.com/java/j2me/finding-multimedia-content-type-support-of-a-mobile-device/#comments</comments>
		<pubDate>Mon, 24 Nov 2008 12:27:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[J2ME]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[multimedia]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://freesrc.com/?p=161</guid>
		<description><![CDATA[MMAPI gives facility of playing audio/video on mobile phones. MMAPI&#8217;s content-type/protocol support depends upon the mobile device capabilities.
The example below displays the mulitmedia file formats that are supported on a mobile phone:

import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import javax.microedition.media.Manager;

public class Midlet extends MIDlet implements CommandListener {

private static final Command exit = new Command("Exit", Command.EXIT, 0);
private static final Command detail [...]]]></description>
		<wfw:commentRss>http://freesrc.com/java/j2me/finding-multimedia-content-type-support-of-a-mobile-device/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to use ChoiceGroup in J2ME</title>
		<link>http://freesrc.com/java/j2me/how-to-use-choicegroup-in-j2me/</link>
		<comments>http://freesrc.com/java/j2me/how-to-use-choicegroup-in-j2me/#comments</comments>
		<pubDate>Mon, 24 Nov 2008 12:10:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[J2ME]]></category>
		<category><![CDATA[ChoiceGroup]]></category>
		<category><![CDATA[form]]></category>

		<guid isPermaLink="false">http://freesrc.com/?p=159</guid>
		<description><![CDATA[This J2ME tips illustrates method of using a ChoiceGroup in mobile applications. 
ChoiceGroup is a group of selectable elements intended to be placed within a Form.

import javax.microedition.lcdui.Choice;
import javax.microedition.lcdui.ChoiceGroup;
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.Form;
import javax.microedition.midlet.*;

public class Midlet extends MIDlet implements CommandListener {

    private Display display;
    private Form form;
   [...]]]></description>
		<wfw:commentRss>http://freesrc.com/java/j2me/how-to-use-choicegroup-in-j2me/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Validate the size of a TextField</title>
		<link>http://freesrc.com/java/j2me/validates-the-size-of-a-textfield/</link>
		<comments>http://freesrc.com/java/j2me/validates-the-size-of-a-textfield/#comments</comments>
		<pubDate>Mon, 24 Nov 2008 09:19:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[J2ME]]></category>
		<category><![CDATA[message]]></category>
		<category><![CDATA[TextField]]></category>

		<guid isPermaLink="false">http://freesrc.com/?p=151</guid>
		<description><![CDATA[
import com.planstick.business.User;
import com.planstick.event.PlanStickEvent;
import com.planstick.event.PlanStickEventListener;
import com.planstick.main.OC;
import com.planstick.net.Session;
import com.planstick.utils.Record;
import javax.microedition.lcdui.*;

public class LoginSettings extends Form implements CommandListener{
private TextField pasw = null;
private TextField login = null;
private Command save = new Command("Save", Command.OK, 0);
private Command back = new Command("Back", Command.BACK, 1);
private Command ok = new Command("OK", Command.ITEM, 1);

public LoginSettings(User user) {
super("");
if(user == null){
login = new TextField("Login:", "", 30, TextField.ANY);
pasw = [...]]]></description>
		<wfw:commentRss>http://freesrc.com/java/j2me/validates-the-size-of-a-textfield/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Detect Bluetooth API optional package (JSR 82)</title>
		<link>http://freesrc.com/java/j2me/detect-bluetooth-api-optional-package-jsr-82/</link>
		<comments>http://freesrc.com/java/j2me/detect-bluetooth-api-optional-package-jsr-82/#comments</comments>
		<pubDate>Fri, 21 Nov 2008 13:34:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[J2ME]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[bluetooth]]></category>
		<category><![CDATA[jsr 82]]></category>

		<guid isPermaLink="false">http://freesrc.com/?p=101</guid>
		<description><![CDATA[import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;

public class MMain extends MIDlet implements CommandListener
{
private Form form;

// Check if Bluetooth API optional package (JSR 82) is present.
public static boolean hasBluetoothAPI ()
{
try
{
Class.forName ("javax.bluetooth.LocalDevice");
return true;
}
catch (Exception _ex)
{
return false;
}
}

// Return the Bluetooth API version of this device, null if API is not present...
public static String verBluetoothAPI ()
{
// Initialize return value...
String version = null;
// First [...]]]></description>
		<wfw:commentRss>http://freesrc.com/java/j2me/detect-bluetooth-api-optional-package-jsr-82/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>J2ME &#8211; Images, Tickers and Gauges</title>
		<link>http://freesrc.com/java/j2me/j2me-images-tickers-and-gauges/</link>
		<comments>http://freesrc.com/java/j2me/j2me-images-tickers-and-gauges/#comments</comments>
		<pubDate>Thu, 20 Nov 2008 15:02:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[J2ME]]></category>
		<category><![CDATA[createImage]]></category>
		<category><![CDATA[gauges]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[tickers]]></category>

		<guid isPermaLink="false">http://freesrc.com/?p=34</guid>
		<description><![CDATA[Using images, tickers, and gauges as UI elements in MIDlets is quite straightforward. A gauge, as you saw in the last section, is an item that can only be displayed on a form to indicate progress or to control a MIDlet feature (like volume). A ticker, on the other hand, can be attached to any [...]]]></description>
		<wfw:commentRss>http://freesrc.com/java/j2me/j2me-images-tickers-and-gauges/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		</channel></rss>