Your SlideShare is downloading. ×
Jeni slides j2 me-02-memulai pemrograman mobile
Jeni slides j2 me-02-memulai pemrograman mobile
Jeni slides j2 me-02-memulai pemrograman mobile
Jeni slides j2 me-02-memulai pemrograman mobile
Jeni slides j2 me-02-memulai pemrograman mobile
Jeni slides j2 me-02-memulai pemrograman mobile
Jeni slides j2 me-02-memulai pemrograman mobile
Jeni slides j2 me-02-memulai pemrograman mobile
Jeni slides j2 me-02-memulai pemrograman mobile
Jeni slides j2 me-02-memulai pemrograman mobile
Jeni slides j2 me-02-memulai pemrograman mobile
Jeni slides j2 me-02-memulai pemrograman mobile
Jeni slides j2 me-02-memulai pemrograman mobile
Jeni slides j2 me-02-memulai pemrograman mobile
Jeni slides j2 me-02-memulai pemrograman mobile
Jeni slides j2 me-02-memulai pemrograman mobile
Jeni slides j2 me-02-memulai pemrograman mobile
Jeni slides j2 me-02-memulai pemrograman mobile
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Jeni slides j2 me-02-memulai pemrograman mobile

827

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
827
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
45
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Memulai Pemrograman Mobile Versi 0.1 Pembangunan Aplikasi Mobile
  • 2. Tujuan
    • Menciptakan MIDlet sederhana
    • Menciptakan proyek di Netbeans
    • Menciptakan MIDlet di Netbeans
    • Menjalankan MIDlet di Emulator
  • 3. Memulai Pemrograman Mobile
    • Hello, World! MIDlet
    • Menggunakan Netbeans dan Netbeans Mobility Pack
  • 4. MIDlet Life Cycle
  • 5. 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;
  • 6. 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);
    • }
  • 7. Hello, World! MIDlet
    • public void startApp() {
    • if (display == null){
    • display = Display.getDisplay(this);
    • }
    • display.setCurrent(helloAlert);
    • }
  • 8. Hello, World! MIDlet
    • public void pauseApp() {
    • }
    • public void destroyApp(boolean unconditional) {
    • }
  • 9. Memulai Pemrograman Mobile
    • Hello, World! MIDlet
    • Menggunakan Netbeans dan Netbeans Mobility Pack
  • 10. Menggunakan Netbeans
    • Membuka Netbeans
    • Membuat project
    • Membuat sebuah MIDlet yang baru
    • Mengcompile dan menjalankan MIDlet
  • 11. Membuat Project
    • File -> New Project
    • Category: Mobile
    • Project: Mobile Application
    • Tentukan nama project
    • Pilih platform
  • 12. Membuat Project
  • 13. Membuat MIDlet
    • File -> New File...
    • Category: MIDP
    • File Type: MIDlet
    • Tentukan nama MIDlet
    • Tuliskan kode untuk MIDlet
  • 14. Membuat MIDlet
  • 15. Membuat MIDlet
  • 16. Menentukan nama MIDlet
  • 17. Menuliskan kode MIDlet
  • 18.
    • Compile
    • &
    • Jalankan
    • MIDlet

×