Professional Documents
Culture Documents
Abstract
Acknowledgement
Work Report
Project Details
o An Overview
o MODULE 1- Getting Started
o MODULE 2- Video Player & Listing Application
o MODULE 3- Export to Mobile Handset
References
Useful Links
Software Used
Hardware Used
ABSTRACT
My task was to develop a code for Video Player & Search application
for implementation in Java enabled handsets. Working in the Media Lab
Asia I too learnt about other on-going projects in Media lab such as one
in collaboration with IIT Bombay, e-Galla, a retail management software
enabling ICT for Livelihood Enhancement
ACKNOWLEDGEMENT
I take this this opportunity to thank Dr. T S Anurag and Mr. Anshul
Porwal for their valuable guidance, closely supervising my work on the
project “J2ME implementation in Mobile App development for Java
enabled CLDCs”.
DAY 1:
Introduction to the employees of the Media Lab Asia.
DAY 2:
I got to study about the Java platforms such as J2EE, J2SE, J2ME and got a look of
some earlier projects undertaken by the Media Lab. Downloaded and installed
Android SDKs, Java Eclipse.
DAY 3:
Got introduced to the Java Environment for programming, did some amateur
programs on Eclipse.
DAY 4:
Did some advanced programs brushing the java knowledge.
DAY 5:
Studied about MIDP programming in J2ME for Java App requirement in eKrishi
project for JRE enabled phones.
DAY 6:
Learnt about developing a basic mobile app, such as one to display "hello world".
How to run basic programs on Eclipse IDE, and Wireless Toolkit
DAY 7:
Still learning about compiling and running fundamental java programs.
DAY 8:
Assigned a task of developing an app for Java enabled phones to display a photo
album.
DAY 9:
The MIDlet program for the photo album runs successfully on the emulator, and the
the task is accomplished.
DAY 10:
Assigned a task of developing a searchbox based Database connection in J2ME.
DAY 11:
Learning how to retrieve information from a database in an application.
DAY 12:
Saw some basic programs on File import from Database System, and learnt the
login page development programming in J2ME.
DAY 13:
Learnt to define a user and database interface in J2ME java platform.
DAY 14:
Learnt how to install an operating system on office based systems such as Ubuntu,
Windows and the various drivers required for the functioning of applications.
DAY 15:
Learnt about an ongoing project at Media lab in collaboration with IIT Bombay, e-
Galla, a retail management software enabling ICT for Livelihood Enhancement.
The main features of the project are:
# Artisans can make embroidery designs using computers
# Designs can be stored, reused and combined in various ways to create new
designs.
e-Galla is basically for Small Shops and Enterprises
DAY 16:
Learnt to use NetBeans IDE for compiling and running simple Java Applications.
Version used Oracle NetBeans IDE 6.9
DAY 17:
Using NetBeans IDE for Mobile Applications development in J2ME platform.
Using the Drag and Drop features of the IDE to create VisualMIDlets for interactive
User Interface (UI).
DAY 18:
Learnt using visual MIDlets, and importing files.
DAY 19:
Learnt some basic features of DBMS, Content Management system( CMS )
Features of CMS, types of CMS, Content Management Framework, how CMS is
implied using Joomla, WordPress.
DAY 20:
Revised my HTML concepts and the use of JavaScript to manipulate existing HTML
elements.
learnt few basics of mySQL. And how a Client side and Server Side programming
works.
DAY 21:
Did testing of an on-going project "KRISHI PRASAAR SEVA -Integrated
Information Dissemination System " on its portal.
DAY 22:
Registered and approved the Expert Side User for the portal KRISHI PRASAAR
SEVA, tested the flow of information from farmer to expert, and solutions provided
by expert to farmer.
DAY 23:
Work on the J2ME coding still in progress.
DAY 24:
Completed the codings, the Video player app runs on the Emulator, prepared the
jar file to run the application on mobile
DAY 25:
The app is working on the NOKIA mobile. Also started coding for the "search
application".
DAY 26:
Search program runs successfully on the NetBeans Emulator
DAY 27:
Search Programme runs successfully on mobile phone too.
DAY 28:
Testing the prepared applications on different mobile handsets, the application runs
successfully.
DAY 29:
Started preparing the Project Report for submission in the Media Lab Asia.
DAY 30:
Project Report is ready, submitted the hard copy and soft copy to the Media Lab
Asia. Training Ends.
PROJECT DETAILS
An Overview :
Java Platform, Micro Edition, or Java ME, is a Java platform designed
for embedded systems (mobile devices are one kind of such systems).
Target devices range from industrial controls to mobile
phones (especially feature phones) and set-top boxes. Java ME was
formerly known as Java 2 Platform, Micro Edition (J2ME).
Java ME was designed by Sun Microsystems, acquired by Oracle
Corporation in 2010; the platform replaced a similar
technology, PersonalJava. Originally developed under the Java
Community Process as JSR 68, the different flavors of Java ME have
evolved in separate JSRs. Sun provides areference implementation of
the specification, but has tended not to provide free binary
implementations of its Java ME runtime environment for mobile
devices, rather relying on third parties to provide their own.
An application able to play video files was coded with the following
codes in J2ME :
public VideoTry2search()
{
list.addCommand(Play);
list.addCommand(exitCommand);
list.setCommandListener(this);
form.addCommand(pause);
form.addCommand(Resume);
form.addCommand(vol);
form.addCommand(back);
form.setCommandListener(this);
volume1.append(gauge);
volume1.addCommand(back);
volume1.setItemStateListener(this);
volume1.setCommandListener(this);
}
public void startApp() {
Display.getDisplay(this).setCurrent(list);
}
Display.getDisplay(this).setCurrent(form);
} else if(event.equals(PlayerListener.CLOSED)) {
form.deleteAll();
}
}
}
import java.io.*;
import java.util.*;
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
import javax.microedition.media.*;
import javax.microedition.media.control.*;
public searchplayMidlet() {
display = Display.getDisplay(this);
itemList = new List("Select an item to play",
List.IMPLICIT);
stop = new Command("Stop", Command.STOP, 1);
pause = new Command("Pause", Command.ITEM, 1);
start = new Command("Start", Command.ITEM, 1);
form = new Form("Playing video");
form.addCommand(stop);
form.addCommand(pause);
form.setCommandListener(this);
items = new Hashtable();
itemsInfo = new Hashtable();
items.put("SpringWaterFall...",
"file://SpringWaterFall.mpg");
itemsInfo.put("SpringWaterFall...", "video/mpeg");
items.put("helloboy...", "file://helloboy.mpg");
itemsInfo.put("helloboy...", "video/mpeg");
items.put("pilgrim...", "file://pilgrim.mpg");
itemsInfo.put("pilgrim...", "video/mpeg");
items.put("pirates...", "file://pirates.ogv");
itemsInfo.put("pirates...", "video/ogv");
items.put("pythag1...", "file://pythag1.mp4");
itemsInfo.put("pythag1...", "video/mp4");
items.put("CarelessEnglish...",
"file://CarelessEnglish.mpg");
itemsInfo.put("CarelessEnglish...", "video/mpeg");
}
The applications coded were converted into .jar format (Java Archive
file format) and were transferred to the handset via a data cable.
USEFUL LINKS
http://www.oracle.com/technetwork/java/archive-139210.html
http://uberthings.com/mobile/
http://ekrishinaip.in/
http://www.naip.icar.org.in/
http://www.oracle.com/technetwork/java/javame/javamobile/downl
oad/sdk/index.html to download J2ME SE SDK (Software
Development Kit)
SOFTWARES USED
HARDWARE USED