• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Jeni slides j2 me-02-memulai pemrograman mobile
 

Jeni slides j2 me-02-memulai pemrograman mobile

on

  • 971 views

 

Statistics

Views

Total Views
971
Views on SlideShare
971
Embed Views
0

Actions

Likes
0
Downloads
21
Comments
0

0 Embeds 0

No embeds

Accessibility

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Jeni slides j2 me-02-memulai pemrograman mobile Jeni slides j2 me-02-memulai pemrograman mobile Presentation Transcript

    • Memulai Pemrograman Mobile Versi 0.1 Pembangunan Aplikasi Mobile
    • Tujuan
      • Menciptakan MIDlet sederhana
      • Menciptakan proyek di Netbeans
      • Menciptakan MIDlet di Netbeans
      • Menjalankan MIDlet di Emulator
    • Memulai Pemrograman Mobile
      • Hello, World! MIDlet
      • Menggunakan Netbeans dan Netbeans Mobility Pack
    • MIDlet Life Cycle
    • Hello, World! MIDlet
      • import javax.microedition.midlet.*;
      • import javax.microedition.lcdui.*;
      • public class HelloMidlet extends MIDlet
      • implements CommandListener {
      • Display display;
      • Command exitCommand =
      • new Command("Exit", Command.EXIT, 1);
      • Alert helloAlert;
    • Hello, World! MIDlet
      • public HelloMidlet(){
      • helloAlert = new Alert(
      • "Hello MIDlet", "Hello, world!",
      • null, AlertType.INFO
      • );
      • helloAlert.setTimeout(Alert.FOREVER);
      • helloAlert.addCommand(exitCommand);
      • helloAlert.setCommandListener(this);
      • }
    • Hello, World! MIDlet
      • public void startApp() {
      • if (display == null){
      • display = Display.getDisplay(this);
      • }
      • display.setCurrent(helloAlert);
      • }
    • Hello, World! MIDlet
      • public void pauseApp() {
      • }
      • public void destroyApp(boolean unconditional) {
      • }
    • Memulai Pemrograman Mobile
      • Hello, World! MIDlet
      • Menggunakan Netbeans dan Netbeans Mobility Pack
    • Menggunakan Netbeans
      • Membuka Netbeans
      • Membuat project
      • Membuat sebuah MIDlet yang baru
      • Mengcompile dan menjalankan MIDlet
    • Membuat Project
      • File -> New Project
      • Category: Mobile
      • Project: Mobile Application
      • Tentukan nama project
      • Pilih platform
    • Membuat Project
    • Membuat MIDlet
      • File -> New File...
      • Category: MIDP
      • File Type: MIDlet
      • Tentukan nama MIDlet
      • Tuliskan kode untuk MIDlet
    • Membuat MIDlet
    • Membuat MIDlet
    • Menentukan nama MIDlet
    • Menuliskan kode MIDlet
      • Compile
      • &
      • Jalankan
      • MIDlet