By Moh. Machfudh
Pengenalan JME
o
o
o
o
o
Mobile Device
Java 2 Micro Edition
CLDC
CDC
MIDP
MIDlets
www.themeart.com
By Moh. Machfudh
Mobile Device
o Berukuran kecil
o Terbatasnya display
o Input terbatas
o Terbatasnya dukungan multimedia
o Keterbatasan memori
o Keterbatasan sumber energi
o Rendahnya konsumsi energi
o Terbatasnya koneksi jaringan
o Terbatasnya waktu hidup
www.themeart.com
By Moh. Machfudh
Java Paltfom
Servers
Servers
Desktop
machines
High-end
consumer
devices
Optional
Packages
Optional
Packages
Low-end
consumer
devices
Smart
Cards
J2EE
Personal Profile
J2SE
Foundation Profile
MIDP
CDC
CLDC
Java
Card
KVM
Card VM
By Moh. Machfudh
Configuration
o Merupakan java Library Minimun
o Hanya mengatur hal hal tentang kesamaan sehingga
dapat di jadikan ukuran kesesuaian antar device.
Ada 2 Konfigurasi dalam J2ME
1. CLDC ( Connected Limited Device Configuration)
2. CDC ( Connected Device Configuration )
JME
www.themeart.com
CDC
CLDC
By Moh. Machfudh
Profile
Profile membahas sesuatu yang lebih spesifik
Dalam J2ME Profile di bagi 2
1. MIDP
2. Foundation Profile
Aplikasi J2ME
MIDlet
KVM
Aplikasi J2ME
Aplikasi J2SE
CVM
JVM
MIDP
Foundation
Profile
J2SE
CLDC
www.themeart.com
CDC
By Moh. Machfudh
CDC
Mengimplemetasikan sebagian
dari J2ME
JVMyang di gunakan Adalah KVM
Di gunakan pada prangkat
genggam ( HP, PDA, Pager )
Dengan Memory terbatas
160 512 KB
Prosecor : 16 / 32 bit
Mengimplemetasikan seluruh
fitur dari J2ME
JVMyang di gunakan Adalah CVM
Di gunakan pada prangkat
genggam ( internet TV, car TV )
Dengan Memory minimal
2 MB
Prosecor : 32 bit
www.themeart.com
By Moh. Machfudh
By Moh. Machfudh
www.themeart.com
By Moh. Machfudh
startApp()
Paused
Destroyed
Active
pauseApp()
destroyApp()
www.themeart.com
By Moh. Machfudh
10
www.themeart.com
By Moh. Machfudh
11
www.themeart.com
By Moh. Machfudh
12
By Moh. Machfudh
13
Form
Form dapat di anggap sebagai halaman untuk memasukan data.
Form dapat terdiri dari komponen komponen yang biasa di sebut
dengan item
www.themeart.com
By Moh. Machfudh
14
By Moh. Machfudh
15
By Moh. Machfudh
16
www.themeart.com
By Moh. Machfudh
17
www.themeart.com
By Moh. Machfudh
18
www.themeart.com
By Moh. Machfudh
19
www.themeart.com
By Moh. Machfudh
20
MIDlet
Record
Store
RMS API
www.themeart.com
By Moh. Machfudh
21
RecordStore rs = RecordStore.openRecordStore("MyAppointments",true);
Close RecordStore
Rs.closeRecordStore();
Delete RecordStore
Rs.deleteRecordStore();
Update Record
www.themeart.com
By Moh. Machfudh
22
rs.deleteRecord(id);
Enumerating Records
RecordEnumeration re = rs.enumerateRecords(null, null, false);
If (re.hasNextElement())
Byte nextRec[] = re.nextRecord();
Filtering Records
www.themeart.com
By Moh. Machfudh
23
Parsing XML
Xml adalah kumpulan aturan untuk mendisain format text sehingga
format text menjadi terstruktur. Pada Teknologi J2ME belum ada library
standard yang dapat melayani fungsi parsing xml. Untuk itu kita harus
membuat sendiri kelas untuk melakukan proses parsing xml.
Contoh file.xml
<contoh>
<record>
</record>
<record>
</record>
</record>
</contoh>
<buku>Java By Example</buku>
<tahun>1996</tahun>
<kode>1</kode>
<buku>Java Handbook</buku>
<tahun>1997</tahun>
<kode>2</kode>
<record>
<buku>Visual Foxpro</buku>
<tahun>2000</tahun>
<kode>3</kode>
www.themeart.com
By Moh. Machfudh
24
Koneksi HTTP
HTTP adalah suatu aturan yang perlu diikuti oleh web browser untuk
meminta dan mengambil ( request response ) suatu dokumen yang di
sediakan oleh web server. Pengembalian dari web server biasa nya ber
upa kode respon atau response code beserta dokumen yang diminta ol
eh klien. Pada ponsel koneksi HTTP ini menggunakan GPRS.
Internet
Server
Data
www.themeart.com
HP
By Moh. Machfudh
25
Akses Kamera
Tentu nya hanya didikung oleh ponsel yang memiliki kamera . Fungsi in
tidak bisa di tes pada emulator
www.themeart.com
By Moh. Machfudh
26