Home | Русский

J2ME – Http Connection

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

public class httpconnection extends MIDlet implements CommandListener {
private Command exit, start;
private Display display;
private Form form;
public httpconnection ()
{
display = Display.getDisplay(this);
exit = new Command(”Exit”, Command.EXIT, 1);
start = new Command(”Start”, Command.EXIT, 1);
[...]

Posted in: J2ME by admin No Comments , ,

J2ME – SOCKET connection

This J2ME sample program shows how to how to make a SOCKET Connection from a J2ME Phone.
Many a times there is a need to connect theto a backend HTTP server from the J2ME application. This free J2ME sample program for example shows how to make a SOCKET connection from the phone to port 80 of [...]

Posted in: J2ME by admin 1 Comment , ,