BIT4107
BIT4107
• Write a simple MIDlet application to display your name and Registration number
on the screen (3 marks)
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public MyMIDlet() {
display = Display.getDisplay(this);
form.addCommand(exitCommand);
form.setCommandListener(this);
form.append(nameItem);
form.append(regNumItem);
}
display.setCurrent(form);
if (c == exitCommand) {
notifyDestroyed();
• 2Gnetworks
- Second generation (2g) telephone technology is based on GSM or in other words global
system that has enabled the various mobile phone networks to provide the services such as
text messages, picture messages and MMS (multimedia messages) for mobile communication.
- 2Gnetworka are either time division multiple access (TDMA) or code division multiple
access (CDMA). TDMA allows for the division of signal into time slots.
• 3G networks
- The basic feature of 3G Technology (Thrid Generation Technology) is fast data transfer
rates.dw
• 4G networks
- 4Gnetwork technology uses WiMAX and LTE . LTE technology, are based on a packet-
switching system, which is more efficient than the circuit-switching used in 2G. This allows
for better handling of data traffic.
- It provides high data transmission speed and is suitable for HD video calling, fast download
and upload, live streaming, online gaming, etc. A 4G system must adhere to the capabilities
and features specified by the ITU(International Telecommunication Union) in IMT advanced,
including transmission technology and data speed. 4G network provides up to 100 Mbps
speed to users, far higher than a 3G network.
• Write a simple syntax for read record method of MIDlet Application.(3 marks)
import javax.microedition.midlet.*;
import java.io.*;
public MyMIDlet() {
import javax.microedition.midlet.*;
import javax.microedition.io.*;
import java.io.*;
public class MyMIDlet extends MIDlet {
httpConnection.setRequestMethod(HttpConnection.GET);
if (responseCode == HttpConnection.HTTP_OK) {
inputStream = httpConnection.openInputStream();
} else {