You are on page 1of 15

th="wrap_content"

android:layout_height="200dp"

app:srcCompat="@drawable/back
" />

<ImageView

android:id="@+id/imageView2"

android:layout_width="wrap_co
ntent"

android:layout_height="wrap_c
ontent"

app:srcCompat="@drawable/logo
"

android:layout_marginTop="70d
p"

android:layout_marginLeft="10
dp"/>

<TextView
android:id="@+id/textView"
<?xml android:layout_width="wrap_content"
version="1.0" android:layout_height="wrap_content"
encoding="utf-8"?> android:layout_below="@id/textView2"
<RelativeLayout android:layout_centerHorizontal="true"
xmlns:android="htt android:layout_marginLeft="40dp"
p://schemas.androi android:layout_marginTop="10dp"
d.com/apk/res/andr android:gravity="center"
oid" android:text="PT. Garuda Maintenance Facility
Aero Asia Tbk (GMFI) bergerak di bidang jasa
xmlns:app="http:// perawatan pesawat terbang, perawatan komponen dan
schemas.android.co kalibrasi, perawatan mesin untuk pesawat dan
m/apk/res-auto" industri, pembuatan dan perawatan sarana pendukung,
jasa engineering, jasa layanan material, logistik,
xmlns:tools="http: pergudangan dan konsinyasi serta jasa konsultan,
//schemas.android. pelatihan dan penyediaan tenaga ahli di bidang
com/tools" perawatan pesawat, komponen dan mesin."
android:textSize="15dp" />
android:layout_wid
th="match_parent" <TextView
android:id="@+id/textView2"
android:layout_hei android:layout_width="match_parent"
ght="match_parent" android:layout_height="wrap_content"
android:layout_below="@id/imageView6"
tools:context=".Ma android:layout_marginLeft="25dp"
inActivity"> android:layout_marginTop="20dp"
android:layout_marginRight="25dp"
android:gravity="center"
<ImageView android:text="TENTANG"
android:textSize="16dp"
android:id="@+id/i android:textStyle="bold" />
mageView"
<TextView
android:layout_wid android:id="@+id/textView3"
android:layout_width="wrap_content"
android:layout_marginTop="-36dp"
android:layout_hei android:onClick="gambar"
ght="wrap_content" app:srcCompat="@drawable/background" />

android:layout_mar </RelativeLayout>
ginLeft="5dp"

android:layout_mar
ginTop="5dp"

android:text="Tent
ang"

android:textSize="
17dp"

android:textStyle=
"bold" />

<TextView

android:id="@+id/t
extView4"

android:layout_wid
th="wrap_content"

android:layout_hei
ght="wrap_content"
<?xml version="1.0" encoding="utf-8"?>
android:layout_mar <TableLayout
ginLeft="10dp" xmlns:android="http://schemas.android.com/apk/res/and
roid"
android:layout_mar xmlns:app="http://schemas.android.com/apk/res-
ginTop="5dp" auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_toR android:layout_width="match_parent"
ightOf="@id/textVi android:layout_height="match_parent"
ew3" tools:context=".MainActivity">

android:text="Sara <TableLayout>
n" <ImageView
android:id="@+id/imageView6"
android:textSize=" android:layout_width="match_parent"
17dp" android:layout_height="226dp"
android:layout_marginTop="-36dp"
android:textStyle= app:srcCompat="@drawable/background" />
"bold" /> </TableLayout>

<ImageView <TableLayout>
<TextView
android:id="@+id/i android:id="@+id/textView2"
mageView6" android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_wid android:layout_below="@id/imageView6"
th="match_parent" android:layout_marginLeft="25dp"
android:layout_marginTop="20dp"
android:layout_hei android:layout_marginRight="25dp"
ght="226dp" android:gravity="center"
android:text="TENTANG"
android:layout_bel android:textSize="16dp"
ow="@id/imageView"
mesin."
android:textStyle= android:textSize="15dp" />
"bold" /> </TableLayout>
</TableLayout>

<TableLayout> </TableLayout>
<TextView

android:id="@+id/t
extView"

android:layout_wid
th="wrap_content"

android:layout_hei
ght="wrap_content"

android:layout_bel
ow="@id/textView2"

android:layout_cen
terHorizontal="tru
e"

android:layout_mar
ginLeft="40dp"

android:layout_mar
ginRight="40dp"

android:layout_mar
ginTop="10dp"

android:gravity="c
enter"

android:text="PT.
Garuda Maintenance
Facility Aero Asia
Tbk (GMFI)
bergerak di bidang
jasa perawatan
pesawat terbang,
perawatan komponen
dan kalibrasi,
perawatan mesin
untuk pesawat dan
industri,
pembuatan dan
perawatan sarana
pendukung, jasa
engineering, jasa
layanan material, <?xml version="1.0" encoding="utf-8"?>
logistik, <RelativeLayout
pergudangan dan xmlns:android="http://schemas.android.com/apk/res/and
konsinyasi serta roid"
jasa konsultan, xmlns:app="http://schemas.android.com/apk/res-
pelatihan dan auto"
penyediaan tenaga xmlns:tools="http://schemas.android.com/tools"
ahli di bidang android:layout_width="match_parent"
perawatan pesawat, android:layout_height="match_parent"
komponen dan
<TextView
tools:context=".Ma android:id="@+id/textView10"
inActivity"> android:layout_width="wrap_content"
android:layout_height="wrap_content"
<ImageView android:layout_below="@id/imageView"
android:layout_centerHorizontal="true"
android:id="@+id/i android:text="Kuisioner"
mageView" android:layout_marginTop="-15dp"
android:textSize="20dp"
android:layout_wid android:textStyle="bold" />
th="wrap_content"
<RadioButton
android:layout_hei android:id="@+id/radioButton2"
ght="200dp" android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:srcCompat="@dr android:layout_below="@id/radioButton"
awable/back" /> android:layout_marginLeft="40dp"
android:text="Puas" />
<ImageView
<TextView
android:id="@+id/i android:id="@+id/textView11"
mageView2" android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_wid android:layout_below="@id/textView10"
th="wrap_content" android:layout_marginLeft="40dp"
android:layout_marginTop="20dp"
android:layout_hei android:text="Seberapa puas Anda dengan
ght="wrap_content" pesawat Garuda Indonesia?"
android:textSize="16dp"/>
app:srcCompat="@dr
awable/logo" <RadioButton
android:id="@+id/radioButton3"
android:layout_mar android:layout_width="wrap_content"
ginTop="70dp" android:layout_height="wrap_content"
android:layout_below="@id/radioButton2"
android:layout_mar android:layout_marginLeft="40dp"
ginLeft="10dp"/> android:text="Tidak Puas" />

<RadioButton <RadioButton
android:id="@+id/radioButton4"
android:id="@+id/r android:layout_width="wrap_content"
adioButton" android:layout_height="wrap_content"
android:layout_below="@id/radioButton3"
android:layout_wid android:layout_marginLeft="40dp"
th="wrap_content" android:text="Sangat Tidak Puas" />

android:layout_hei <Button
ght="wrap_content" android:id="@+id/button5"
android:layout_width="wrap_content"
android:layout_bel android:layout_height="wrap_content"
ow="@id/textView11 android:layout_below="@id/radioButton4"
" android:layout_marginLeft="50dp"
android:layout_marginTop="20dp"
android:layout_mar android:text="kirim" />
ginLeft="40dp"
</RelativeLayout>
android:layout_mar
ginTop="10dp"

android:text="Sang package com.example.eventhandling1;


at Puas" />
import androidx.appcompat.app.AppCompatActivity;
import
android.content.In kirim.setOnClickListener(new
tent; View.OnClickListener() {
import @Override
android.os.Bundle; public void onClick(View view) {
import if(p.isChecked()){
android.view.View; Toast.makeText(MainActivity.this,
import "Terima kasih atas pendapatnya, kami sangat senang
android.widget.But mendengarnya", Toast.LENGTH_SHORT).show();
ton; }else if(sp.isChecked()){
import Toast.makeText(MainActivity.this,
android.widget.Rad "Terima kasih atas pendapatnya, kami senang
ioButton; mendengarnya", Toast.LENGTH_SHORT).show();
import }else if(tp.isChecked()){
android.widget.Toa Toast.makeText(MainActivity.this,
st; "Terima kasih atas pendapatnya, kami akan memperbaiki
kesalahan kami", Toast.LENGTH_SHORT).show();
public class }else if(stp.isChecked()){
MainActivity Toast.makeText(MainActivity.this,
extends "Terima kasih atas pendapatnya, kami akan terus
AppCompatActivity memperbaikan kesalahan kami",
{ Toast.LENGTH_SHORT).show();
}else {
RadioButton Toast.makeText(MainActivity.this,
sp,p,tp,stp; "Anda belum memilih", Toast.LENGTH_SHORT).show();
Button kirim; }
}
});
@Override }
protected void }
onCreate(Bundle
savedInstanceState
) {

super.onCreate(sav
edInstanceState);

setContentView(R.l
ayout.activity_mai
n);

sp =
(RadioButton)
findViewById(R.id.
radioButton);
p =
(RadioButton)
findViewById(R.id.
radioButton2);
tp =
(RadioButton)
findViewById(R.id.
radioButton3);
stp =
(RadioButton)
findViewById(R.id.
radioButton4);
kirim =
(Button)
findViewById(R.id.
button5);
app:srcCompat="@drawable/logo"
android:layout_marginTop="70dp"
android:layout_marginLeft="10dp"/>

<RadioButton
android:id="@+id/radioButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/textView11"
android:layout_marginLeft="40dp"
<?xml android:layout_marginTop="10dp"
version="1.0" android:text="Ya" />
encoding="utf-8"?>
<RelativeLayout <TextView
xmlns:android="htt android:id="@+id/textView10"
p://schemas.androi android:layout_width="wrap_content"
d.com/apk/res/andr android:layout_height="wrap_content"
oid" android:layout_below="@id/imageView"
android:layout_centerHorizontal="true"
xmlns:app="http:// android:text="Kuisioner"
schemas.android.co android:layout_marginTop="-15dp"
m/apk/res-auto" android:textSize="20dp"
android:textStyle="bold" />
xmlns:tools="http:
//schemas.android. <RadioButton
com/tools" android:id="@+id/radioButton2"
android:layout_width="wrap_content"
android:layout_wid android:layout_height="wrap_content"
th="match_parent" android:layout_below="@id/radioButton"
android:layout_marginLeft="40dp"
android:layout_hei android:text="Tidak" />
ght="match_parent"
<TextView
tools:context=".Ma android:id="@+id/textView11"
inActivity"> android:layout_width="wrap_content"
android:layout_height="wrap_content"
<ImageView android:layout_below="@id/textView10"
android:layout_marginLeft="40dp"
android:id="@+id/i android:layout_marginTop="20dp"
mageView" android:layout_marginRight="40dp"
android:text="Apakah Anda mengenali
android:layout_wid GMFAeroAsia sebelumnya?"
th="wrap_content" android:textSize="20dp" />

android:layout_hei
ght="200dp" <Button
android:id="@+id/button5"
app:srcCompat="@dr android:layout_width="wrap_content"
awable/back" /> android:layout_height="wrap_content"
android:layout_below="@id/radioButton2"
<ImageView android:layout_marginLeft="50dp"
android:layout_marginTop="20dp"
android:id="@+id/i android:onClick="kirim"
mageView2" android:text="kirim" />

android:layout_wid </RelativeLayout>
th="wrap_content"

android:layout_hei package com.example.eventhandling2;


ght="wrap_content"
import androidx.appcompat.app.AppCompatActivity;
import nActivity.this, "Anda mengenali perusahaan kami,
android.content.In terima kasih", Toast.LENGTH_SHORT).show();
tent; }else if(tidak.isChecked()){
import Toast.makeText(MainActivity.this, "Anda
android.os.Bundle; belum mengenali perusahaan kami, terima kasih",
import Toast.LENGTH_SHORT).show();
android.view.View; }else {
import Toast.makeText(MainActivity.this, "Anda
android.widget.But belum memilih", Toast.LENGTH_SHORT).show();
ton; }
import }
android.widget.Rad }
ioButton;
import
android.widget.Toa
st;

public class
MainActivity
extends
AppCompatActivity
{

RadioButton
ya,tidak;
Button kirim;

@Override
protected void
onCreate(Bundle
savedInstanceState
) {

super.onCreate(sav
edInstanceState);

setContentView(R.l
ayout.activity_mai
n);

ya =
(RadioButton)
findViewById(R.id.
radioButton);
tidak =
(RadioButton)
findViewById(R.id.
radioButton2);
kirim =
(Button)
findViewById(R.id.
button5);
} <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
public void xmlns:android="http://schemas.android.com/apk/res/and
kirim(View view) { roid"
xmlns:app="http://schemas.android.com/apk/res-
if(ya.isChecked()) auto"
{ xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
Toast.makeText(Mai
android:layout_marginTop="10dp"
android:layout_hei android:gravity="center"
ght="match_parent" android:text="PT. Garuda Maintenance Facility
Aero Asia Tbk (GMFI) bergerak di bidang jasa
tools:context=".Ma perawatan pesawat terbang, perawatan komponen dan
inActivity"> kalibrasi, perawatan mesin untuk pesawat dan
industri, pembuatan dan perawatan sarana pendukung,
jasa engineering, jasa layanan material, logistik,
<ImageView pergudangan dan konsinyasi serta jasa konsultan,
pelatihan dan penyediaan tenaga ahli di bidang
android:id="@+id/i perawatan pesawat, komponen dan mesin."
mageView" android:textSize="15dp" />

android:layout_wid <TextView
th="wrap_content" android:id="@+id/textView2"
android:layout_width="match_parent"
android:layout_hei android:layout_height="wrap_content"
ght="200dp" android:layout_below="@id/imageView6"
android:layout_marginLeft="25dp"
app:srcCompat="@dr android:layout_marginTop="20dp"
awable/back" /> android:layout_marginRight="25dp"
android:gravity="center"
<ImageView android:text="TENTANG"
android:textSize="16dp"
android:id="@+id/i android:textStyle="bold" />
mageView2"
<TextView
android:layout_wid android:id="@+id/textView3"
th="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_hei android:layout_marginLeft="5dp"
ght="wrap_content" android:layout_marginTop="5dp"
android:text="Tentang"
android:layout_mar android:textSize="17dp"
ginLeft="10dp" android:textStyle="bold" />

android:layout_mar <TextView
ginTop="70dp" android:id="@+id/textView4"
android:layout_width="wrap_content"
app:srcCompat="@dr android:layout_height="wrap_content"
awable/logo" /> android:layout_marginLeft="10dp"
android:layout_marginTop="5dp"
<TextView android:layout_toRightOf="@id/textView3"
android:text="Saran"
android:id="@+id/t android:textSize="17dp"
extView" android:textStyle="bold" />

android:layout_wid <ImageView
th="wrap_content" android:id="@+id/imageView6"
android:layout_width="match_parent"
android:layout_hei android:layout_height="226dp"
ght="wrap_content" android:layout_below="@id/imageView"
android:layout_marginTop="-36dp"
android:layout_bel app:srcCompat="@drawable/background" />
ow="@id/textView2"
</RelativeLayout>
android:layout_cen
terHorizontal="tru package com.example.explicitintent;
e"
import androidx.appcompat.app.AppCompatActivity;
android:layout_mar
ginLeft="40dp" import android.content.Intent;
import
android.os.Bundle; }
import }
android.view.View;
import
android.widget.Ima <?xml version="1.0" encoding="utf-8"?>
geView; <RelativeLayout
import xmlns:android="http://schemas.android.com/apk/res/and
android.widget.Tex roid"
tView; xmlns:app="http://schemas.android.com/apk/res-
auto"
public class xmlns:tools="http://schemas.android.com/tools"
MainActivity android:layout_width="match_parent"
extends android:layout_height="match_parent"
AppCompatActivity tools:context=".MainActivity">
{

TextView <ImageView
saran; android:id="@+id/imageView"
android:layout_width="wrap_content"
@Override android:layout_height="200dp"
protected void app:srcCompat="@drawable/back" />
onCreate(Bundle
savedInstanceState <ImageView
) { android:id="@+id/imageView2"
android:layout_width="wrap_content"
super.onCreate(sav android:layout_height="wrap_content"
edInstanceState); app:srcCompat="@drawable/logo"
android:layout_marginTop="70dp"
setContentView(R.l android:layout_marginLeft="10dp"/>
ayout.activity_mai
n); <TextView
android:id="@+id/textView2"
saran = android:layout_width="wrap_content"
(TextView) android:layout_height="wrap_content"
findViewById(R.id. android:layout_below="@id/imageView"
textView4); android:layout_marginLeft="25dp"
android:text="Tulis Pesan Anda melalui E-Mail
ke Perusahaan"
saran.setOnClickLi android:textSize="16dp"
stener(new android:textStyle="bold" />
View.OnClickListen
er() { <TextView
android:id="@+id/textView3"
@Override android:layout_width="wrap_content"
public android:layout_height="wrap_content"
void onClick(View android:layout_marginLeft="5dp"
view) { android:layout_marginTop="5dp"
android:text="Tentang"
android:textSize="17dp"
Intent sarann = android:textStyle="bold" />
new
Intent(MainActivit <TextView
y.this, android:id="@+id/textView4"
MainActivity2.clas android:layout_width="wrap_content"
s); android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="5dp"
startActivity(sara android:layout_toRightOf="@id/textView3"
nn); android:text="Saran"
} android:textSize="17dp"
}); android:textStyle="bold" />
sahaan Anda"
<EditText android:inputType="textPersonName" />

android:id="@+id/e <EditText
ditTextTextPersonN android:id="@+id/editTextTextPersonName3"
ame" android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_wid android:layout_marginRight="30dp"
th="match_parent"
android:layout_below="@id/editTextTextPersonName2"
android:layout_hei android:layout_marginLeft="30dp"
ght="wrap_content" android:layout_marginTop="10dp"
android:ems="10"
android:layout_bel android:inputType="textPersonName"
ow="@id/textView2" android:hint="Email Anda" />

android:layout_mar <EditText
ginLeft="30dp" android:id="@+id/editTextTextPersonName4"
android:layout_width="match_parent"
android:layout_mar android:layout_height="match_parent"
ginTop="20dp"
android:layout_below="@id/editTextTextPersonName3"
android:layout_mar android:layout_marginLeft="30dp"
ginRight="30dp" android:layout_marginTop="10dp"
android:layout_marginRight="30dp"
android:ems="10" android:layout_marginBottom="70dp"
android:ems="10"
android:hint="Nama android:gravity="top"
Anda" android:hint="Pesan Anda (Max.500 Kata)"
android:inputType="textPersonName" />
android:inputType=
"textPersonName" /
> </RelativeLayout>

<EditText package com.example.explicitintent;

android:id="@+id/e import androidx.appcompat.app.AppCompatActivity;


ditTextTextPersonN
ame2" import android.content.Intent;
import android.os.Bundle;
android:layout_wid import android.view.View;
th="match_parent" import android.widget.TextView;

android:layout_hei public class MainActivity2 extends AppCompatActivity


ght="wrap_content" {

android:layout_bel TextView tentang;


ow="@id/editTextTe
xtPersonName" @Override
protected void onCreate(Bundle
android:layout_mar savedInstanceState) {
ginLeft="30dp" super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main2);
android:layout_mar
ginTop="10dp" tentang = (TextView)
findViewById(R.id.textView3);
android:layout_mar
ginRight="30dp" tentang.setOnClickListener(new
View.OnClickListener() {
android:ems="10" @Override
public void onClick(View view) {
android:hint="Peru
<?xml version="1.0" encoding="utf-8"?>
Intent tentangg = <RelativeLayout
new xmlns:android="http://schemas.android.com/apk/res/and
Intent(MainActivit roid"
y2.this, xmlns:app="http://schemas.android.com/apk/res-
MainActivity.class auto"
); xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
startActivity(tent tools:context=".MainActivity">
angg);
}
}); <ImageView
} android:id="@+id/imageView"
} android:layout_width="wrap_content"
android:layout_height="200dp"
app:srcCompat="@drawable/back" />

<ImageView
android:id="@+id/imageView2"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_marginLeft="10dp"

android:layout_marginTop="70dp"

app:srcCompat="@drawable/logo" />

<TextView
android:id="@+id/textView2"

android:layout_width="wrap_content"

android:layout_height="wrap_conten
t"

android:layout_below="@id/textView
3"

android:layout_marginLeft="30dp"

android:layout_marginTop="5dp"
android:text="CEO" />

<TextView
android:id="@+id/textView3"

android:layout_width="wrap_content
"

android:layout_height="wrap_conten
t"

android:layout_below="@id/textView
2"
android:layout_marginLeft="30dp"
android:layout_marginTop="20dp"
android:text="Telepon" />
android:textStyle="bold" />
<TextView
<ImageView
android:id="@+id/t android:id="@+id/imageView6"
extView7" android:layout_width="match_parent"
android:layout_height="226dp"
android:layout_wid android:layout_below="@id/imageView"
th="wrap_content" android:layout_marginTop="-36dp"
android:onClick="gambar"
android:layout_hei app:srcCompat="@drawable/background" />
ght="wrap_content"
<TextView
android:layout_bel android:id="@+id/textView"
ow="@id/textView2" android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_mar android:layout_below="@id/textView7"
ginLeft="107dp" android:layout_marginLeft="105dp"
android:layout_marginTop="5dp"
android:layout_mar android:text="www.gmf-aeroasia.co.id"
ginTop="20dp" android:textStyle="bold" />

android:layout_mar </RelativeLayout>
ginRight="150dp"
package com.example.impicitintent;
android:text="+62
215508717" import androidx.appcompat.app.AppCompatActivity;

android:textStyle= import android.content.Intent;


"bold" /> import android.net.Uri;
import android.os.Bundle;
<TextView import android.view.View;
import android.widget.TextView;
android:id="@+id/t
extView2" public class MainActivity extends AppCompatActivity {

android:layout_wid TextView tlp, web;


th="match_parent"
@Override
android:layout_hei protected void onCreate(Bundle
ght="wrap_content" savedInstanceState) {
super.onCreate(savedInstanceState);
android:layout_bel setContentView(R.layout.activity_main);
ow="@id/imageView6
" tlp = (TextView)
findViewById(R.id.textView7);
android:layout_mar web = (TextView) findViewById(R.id.textView);
ginLeft="25dp"
web.setOnClickListener(new
android:layout_mar View.OnClickListener() {
ginTop="20dp" @Override
public void onClick(View view) {
android:layout_mar Intent webs= new
ginRight="25dp" Intent(Intent.ACTION_VIEW,
Uri.parse(tlp.getText().toString()));
android:gravity="c startActivity(webs);
enter" }
});
android:text="Kont
ak" tlp.setOnClickListener(new
View.OnClickListener() {
android:textSize=" @Override
16dp" public void onClick(View view) {
Intent telepon =
new
Intent(Intent.ACTI
ON_DIAL);

telepon.setData(Ur
i.parse("tel:
+62215508717"));

startActivity(tele
pon);
}
});
}
}

4.1 BAB IV
PENUTUP
Android Studio merupakan software yang berfungsi untuk
mengembangkan aplikasi pada Android dengan menggunakan bahasa
campuran dari bahasa pemrograman Java dan Kotlin. Terdapat 5 macam
layout yang dapat digunakan pada aplikasi Android Studio yaitu Linear
Layout, Relative Layout, Table Layout, Frame Layout, dan Constraint
Layout.

Ada berbagai macam elemen yang dapat digunakan untuk membuat


suatu aplikasi, contoh: TextView, PlainText, Button, Spinner, ImageView,
dan lain-lain yang memiliki fungsi khusus berbeda-beda.

Penerapan Event Handling pada android studio bisa dilakukan dengan


dua cara. Cara pertama dilakukan dengan mendeklarasikan
“setOnClickListener” pada file java, maka event “onClick” akan
terdefinisi secara otomatis dibawahnya. Berbeda dengan cara pertama,
cara kedua harus mendefinisikan property “onClick” pada file xml,
kemudian dideklarasikan pada file java.

Intent terdiri atas dua jenis, yaitu Exsplisit dan Implisit. Explisit Intent
biasanya digunakan untuk melakukan tindakan berpindah dari activity satu
ke activity lainnya. Sedangkan Implisit Intent biasanya digunakan untuk
melakukan tindakan penggunaan aplikasi atau fitur bawaan pada android,
seperti kamera, browser, maps, dll.
Dengan menggunakan elemen-elemen, layout, dan fitur-fitur android
studio tersebut maka user dapat membuat dan mengembangkan sebuah
aplikasi yang sederhana hingga kompleks.

4.2 Saran
Praktikum Programa Komputer sudah baik, terlebih terdapat pedoman
dan pendampingan yang baik. Akan tetapi, ada yang perlu sedikit lebih
ditingkatkan lagi, seperti :

1. Mengajarkan lebih dalam lagi kepada praktikan tentang bahasa


pemrograman yang baik dan benar sesuai aturan.
2. Tidak terburu-buru dalam menyampaikan materi kepada praktikan.

You might also like