1. Pemrograman Mobile
3 SKS | Semester 7 | S1 Sistem Informasi
Nizar Rabbi Radliya
nizar.radliya@yahoo.com
Pertemuan 2
Universitas Komputer Indonesia | 2016
5. nizar.radliya@yahoo.com | Mobile Programming | 3 SKS | Semester 7 | S1 Sistem Informasi | UNIKOM | 2016
Persiapan Perangkat Pemrograman Android
Java JDK
Android SDK
IDE Eclipse
Android ADT
6. nizar.radliya@yahoo.com | Mobile Programming | 3 SKS | Semester 7 | S1 Sistem Informasi | UNIKOM | 2016
Instalasi Paket Java JDK
Link download:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-
downloads-2133151.html
7. nizar.radliya@yahoo.com | Mobile Programming | 3 SKS | Semester 7 | S1 Sistem Informasi | UNIKOM | 2016
Instalasi Paket Java JDK
Deskripsi fitur, pemilihan fitur, dan penentuan lokasi instalasi
8. nizar.radliya@yahoo.com | Mobile Programming | 3 SKS | Semester 7 | S1 Sistem Informasi | UNIKOM | 2016
Instalasi Paket Java JDK
Termasuk instalasi pake java JRE
9. nizar.radliya@yahoo.com | Mobile Programming | 3 SKS | Semester 7 | S1 Sistem Informasi | UNIKOM | 2016
Instalasi Paket Java SDK
Link Download:
https://developer.android.com/sdk/index.html
Tersedia untuk sistem operasi Windows, Linux, Mac OS.
10. nizar.radliya@yahoo.com | Mobile Programming | 3 SKS | Semester 7 | S1 Sistem Informasi | UNIKOM | 2016
Level API setiap Versi Android
11. nizar.radliya@yahoo.com | Mobile Programming | 3 SKS | Semester 7 | S1 Sistem Informasi | UNIKOM | 2016
Penggunan versi android di Pasaran
https://developer.android.com/about/dashboards/index.html
12. nizar.radliya@yahoo.com | Mobile Programming | 3 SKS | Semester 7 | S1 Sistem Informasi | UNIKOM | 2016
Membuat AVD pada SDK sebagai emulator
13. nizar.radliya@yahoo.com | Mobile Programming | 3 SKS | Semester 7 | S1 Sistem Informasi | UNIKOM | 2016
Membuat AVD pada SDK sebagai emulator
14. nizar.radliya@yahoo.com | Mobile Programming | 3 SKS | Semester 7 | S1 Sistem Informasi | UNIKOM | 2016
Membuat AVD pada SDK sebagai emulator
15. nizar.radliya@yahoo.com | Mobile Programming | 3 SKS | Semester 7 | S1 Sistem Informasi | UNIKOM | 2016
Instalasi IDE Eclipse
Link download:
https://eclipse.org/downloads/index-developer.php
Setelah selesai diunduh lalu ekstrak dan sudah siap untuk
digunakan.
16. nizar.radliya@yahoo.com | Mobile Programming | 3 SKS | Semester 7 | S1 Sistem Informasi | UNIKOM | 2016
Instalasi ADT pada IDE Eclipse
Link download:
http://developer.android.com/sdk/installing/installing-adt.html
Download ADT plugin dari eclipse menu Help>Install new software.
17. nizar.radliya@yahoo.com | Mobile Programming | 3 SKS | Semester 7 | S1 Sistem Informasi | UNIKOM | 2016
Instalasi ADT pada IDE Eclipse
https://dl-ssl.google.com/android/eclipse/
18. nizar.radliya@yahoo.com | Mobile Programming | 3 SKS | Semester 7 | S1 Sistem Informasi | UNIKOM | 2016
Mereferensikan Java SDK pada IDE Eclipse
19. nizar.radliya@yahoo.com | Mobile Programming | 3 SKS | Semester 7 | S1 Sistem Informasi | UNIKOM | 2016
Hello World pada Android
20. nizar.radliya@yahoo.com | Mobile Programming | 3 SKS | Semester 7 | S1 Sistem Informasi | UNIKOM | 2016
Hello World pada Android
21. nizar.radliya@yahoo.com | Mobile Programming | 3 SKS | Semester 7 | S1 Sistem Informasi | UNIKOM | 2016
Hello World pada Android
22. nizar.radliya@yahoo.com | Mobile Programming | 3 SKS | Semester 7 | S1 Sistem Informasi | UNIKOM | 2016
Hello World pada Android
23. nizar.radliya@yahoo.com | Mobile Programming | 3 SKS | Semester 7 | S1 Sistem Informasi | UNIKOM | 2016
MainActivity.java
package com.is.helloworld;
import android.app.Activity;
import android.os.Bundle;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle
savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
24. nizar.radliya@yahoo.com | Mobile Programming | 3 SKS | Semester 7 | S1 Sistem Informasi | UNIKOM | 2016
activity_main.xml
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.is.helloworld.MainActivity" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world" />
</RelativeLayout>
25. nizar.radliya@yahoo.com | Mobile Programming | 3 SKS | Semester 7 | S1 Sistem Informasi | UNIKOM | 2016
string.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">HelloWorld</string>
<string name="hello_world">Hello world! Hai, ini
program Android pertama saya</string>
<string name="action_settings">Settings</string>
</resources>
26. nizar.radliya@yahoo.com | Mobile Programming | 3 SKS | Semester 7 | S1 Sistem Informasi | UNIKOM | 2016
Hasil Run menggunakan AVD
27. nizar.radliya@yahoo.com | Mobile Programming | 3 SKS | Semester 7 | S1 Sistem Informasi | UNIKOM | 2016
Struktur Project Aplikasi Android
src/
gen/
Android 4.4.2/
assets/
bin/
libs/
res/
drawable-hdpi
drawable-ldpi
drawable-mdpi
drawable-xhdpi
drawable-xxhdpi
layout
values
style.xml
string.xml
---------------------------
Android Manifest dan Project
Properties
28. Pemrograman Mobile
3 SKS | Semester 7 | S1 Sistem Informasi
Nizar Rabbi Radliya
nizar.radliya@yahoo.com Materi Pertemuan 3
Universitas Komputer Indonesia | 2016
Activity dan Intent:
1. Pengenalan activity
2. Activity life cycle
3. Pengenalan intent
4. Penggabungan activity dengan intent