Jeni Slides-j2me-02-memulai Pemrograman Mobile

  • Uploaded by: Eli Priyatna
  • 0
  • 0
  • December 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Jeni Slides-j2me-02-memulai Pemrograman Mobile as PDF for free.

More details

  • Words: 201
  • Pages: 18
Memulai Pemrograman Mobile Pembangunan Aplikasi Mobile

Versi 0.1

Tujuan Menciptakan

MIDlet sederhana

Menciptakan

proyek di Netbeans

Menciptakan

MIDlet di Netbeans

Menjalankan

MIDlet di Emulator

Memulai Pemrograman Mobile

Hello,

World! MIDlet

Menggunakan

Mobility Pack

Netbeans dan Netbeans

MIDlet Life Cycle new destroyApp()

startApp()

Paused Destroyed Active

pauseApp()

destroyApp()

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: Project:

Mobile Application

Tentukan Pilih

Mobile

nama project

platform

Membuat Project

Membuat MIDlet File

-> New File...

Category: File

MIDP

Type: MIDlet

Tentukan Tuliskan

nama MIDlet

kode untuk MIDlet

Membuat MIDlet

Membuat MIDlet

Menentukan nama MIDlet

Menuliskan kode MIDlet

Compile & Jalankan MIDlet

Related Documents


More Documents from "Eko Kurniawan Khannedy"

Rpp Cikembar Bab 5
December 2019 40
Chapter_6_id
April 2020 20
Sejarah 2000
December 2019 29
Soal Pai Smt 1 Kls X
December 2019 51
Seni Musik
December 2019 46