DAFTAR PUSTAKA Dennis,Alan,Barbara Haley Wixom dan David Tegarden. 2012.Systems Analysis & Design: An Object-Oriented Approach with UML, Version 2.0, 4th ed. New York: John Wiley & Sons. Fathansyah. 2012.Basis Data.Bandung:Informatika. Jumhara, Zamrony P. 2016. Panduan Lengkap Pemrograman Android. Yogyakarta: ANDI. Lee, Wei-Meng. 2012. Beginning Android™ 4 Application Development. Birmingham: Wrox Press Ltd. Pratama, I Putu Agus Eka. 2014. Komputer dan Masyarakat. Bandung: Informatika. Safaat, Nazruddin. 2015. ANDROID: Pemrograman Aplikasi Mobile Smartphone dan Tablet PC Berbasis Android Revisi Kedua. Bandung: Informatika. Redaksi Bmedia.2014. UUD 1945 & Perubahannya Reshuffle Kabinet Kerja (2014-2019) : B-Media Pengertian FasilitasU. from http:// sobatbaru. Blogspot.com, 4 April 2017. Minarni dan Yovi Febri Yusdi. 2015. Sistem Informasi Geografis Pariwisata Kota Padang Menggunakan Application Programming Interface (API) Google Maps Berbasis Web. Padang: Jurnal TEKNOIF. Vol. 3, No. 1. Septian Ebta. “KBBI Online”. from http://kbbi.web.id/, 23 Maret 2017. Safaat H, Nazruddin. 2015. Aplikasi Bebasis Android Berbagai Implementasi dan Pengembangan Aplikasi Mobile Berbasis Android. Bandung: Informatika. Safaat H, Nazruddin. 2012. Pemograman Aplikasi Mobile Smartphone dan Tablet PC
Bebasis
Android.
Bandung:
http://digilib.mercubuana.ac.id/
Informatika.
KUISONER
http://digilib.mercubuana.ac.id/
http://digilib.mercubuana.ac.id/
SOURCE CODE
SplashScreen.java package com.ahmadkhabir.fasilitasumumtange rang; import android.app.Activity; import android.content.Intent; import android.graphics.PixelFormat; import android.os.Bundle; import android.view.Window; import android.view.animation.Animation; import android.view.animation.AnimationUt ils; import android.widget.ImageView; import android.widget.LinearLayout; public class SplashScreen extends Activity { public void onAttachedToWindow() { super.onAttachedToWindow(); Window window = getWindow(); window.setFormat(PixelFormat.RGBA_ 8888); } /** Called when the activity is first created. */ Thread splashTread; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState) ; setContentView(R.layout.splahscree n); StartAnimations(); } private void StartAnimations() { Animation anim = AnimationUtils.loadAnimation(this, R.anim.alpha); anim.reset(); LinearLayout
l=(LinearLayout) findViewById(R.id.lin_lay); l.clearAnimation(); l.startAnimation(anim); anim = AnimationUtils.loadAnimation(this, R.anim.translate); anim.reset(); ImageView iv = (ImageView) findViewById(R.id.splash); iv.clearAnimation(); iv.startAnimation(anim); splashTread = new Thread() { @Override public void run() { try { int waited = 0; // Splash screen pause time while (waited < 3500) { sleep(100); waited += 100; } Intent intent = new Intent(SplashScreen.this, HomeActivity.class); intent.setFlags(Intent.FLAG_ACTIVI TY_NO_ANIMATION); startActivity(intent); SplashScreen.this.finish(); } catch (InterruptedException e) { // do nothing } finally { SplashScreen.this.finish(); } } }; splashTread.start(); } }
MapsActivity.java package com.ahmadkhabir.fasilitasumumtange
http://digilib.mercubuana.ac.id/
rang; import android.support.v4.app.FragmentAct ivity; import android.os.Bundle; import com.directions.route.Routing; import com.google.android.gms.maps.Camera UpdateFactory; import com.google.android.gms.maps.Google Map; import com.google.android.gms.maps.OnMapR eadyCallback; import com.google.android.gms.maps.Suppor tMapFragment; import com.google.android.gms.maps.model. LatLng; import com.google.android.gms.maps.model. MarkerOptions; import static com.directions.route.Routing.*; public class MapsActivity extends FragmentActivity implements OnMapReadyCallback { private GoogleMap mMap; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState) ; setContentView(R.layout.activity_m aps); // Obtain the SupportMapFragment and get notified when the map is ready to be used. SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager() .findFragmentById(R.id.map); mapFragment.getMapAsync(this); } /**
* Manipulates the map once available. * This callback is triggered when the map is ready to be used. * This is where we can add markers or lines, add listeners or move the camera. In this case, * we just add a marker near Sydney, Australia. * If Google Play services is not installed on the device, the user will be prompted to install * it inside the SupportMapFragment. This method will only be triggered once the user has * installed Google Play services and returned to the app. */ @Override public void onMapReady(GoogleMap googleMap) { mMap = googleMap; // Add a marker in Sydney and move the camera LatLng sydney = new LatLng(-6.131005999999999, 106.65609900000004); mMap.addMarker(new MarkerOptions().position(sydney).t itle("Indonesia Maps")); mMap.moveCamera(CameraUpdateFactor y.newLatLng(sydney)); } }
ListBidangKeamana.java package com.ahmadkhabir.fasilitasumumtange rang.ListBidang; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.Toast; import com.ahmadkhabir.fasilitasumumtange rang.BidangKeamanan.PolresMetroTan gerang; import com.ahmadkhabir.fasilitasumumtange
http://digilib.mercubuana.ac.id/
rang.BidangKeamanan.PolsekCiledug; import com.ahmadkhabir.fasilitasumumtange rang.BidangKeamanan.PolsekCipondoh ; import com.ahmadkhabir.fasilitasumumtange rang.BidangKeamanan.PolsekKarawaci ; import com.ahmadkhabir.fasilitasumumtange rang.BidangKeamanan.PolsekNeglasar i; import com.ahmadkhabir.fasilitasumumtange rang.BidangKeamanan.PolsekTangkot; import com.ahmadkhabir.fasilitasumumtange rang.CustomList.CustomListKeamanan ; import com.ahmadkhabir.fasilitasumumtange rang.R;
findViewById(R.id.keamananlist); adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_ 1, nama3); list3.setAdapter(adapter); CustomListKeamanan adapter = new CustomListKeamanan(ListBidangKeama nan.this, nama3, gambar3); list3.setAdapter(adapter); list3.setOnItemClickListener(new AdapterView.OnItemClickListener(){ public void onItemClick(AdapterView>arg0, View arg1, int position, long arg3){ String seleksi = (String) list3.getItemAtPosition(position);
import java.util.ArrayList; public class ListBidangKeamanan extends Activity { ListView list3; ArrayList<String> listitems; ArrayAdapter<String> adapter; Integer[] gambar3 = { R.drawable.tribrata, R.drawable.tribrata, R.drawable.tribrata, R.drawable.tribrata, R.drawable.tribrata, R.drawable.tribrata }; String[] nama3 = {"Polres Metro Tangerang", "Polsek Ciledug", "Polsek Cipondoh", "Polsek Karawaci", "Polsek Neglasari", "Polsek Tangerang Kota"}; protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState) ; setContentView(R.layout.listkeaman an); setTitle("Daftar Bidang Keamanan"); list3 = (ListView)
Toast.makeText(ListBidangKeamanan. this, seleksi, Toast.LENGTH_SHORT).show(); Intent i = null; if (position == 0) { i = new Intent(ListBidangKeamanan.this, PolresMetroTangerang.class); } else if (position==1) { i = new Intent(ListBidangKeamanan.this, PolsekCiledug.class); } else if (position==2) { i = new Intent(ListBidangKeamanan.this, PolsekCipondoh.class); } else if(position==3) { i = new Intent(ListBidangKeamanan.this, PolsekKarawaci.class); } else if (position==4) { i = new Intent(ListBidangKeamanan.this, PolsekNeglasari.class); } else if (position==5) {
http://digilib.mercubuana.ac.id/
i = new Intent(ListBidangKeamanan.this, PolsekTangkot.class); finish();} else {} startActivity(i);
import com.ahmadkhabir.fasilitasumumtange rang.R; import java.util.ArrayList; public class ListBidangKeamanan extends Activity {
} ListView list3; ArrayList<String> listitems; ArrayAdapter<String> adapter;
}); } public void onBackPressed(){ finish(); System.exit(0); } }
ListBidangKesehatan.java package com.ahmadkhabir.fasilitasumumtange rang.ListBidang; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.Toast; import com.ahmadkhabir.fasilitasumumtange rang.BidangKeamanan.PolresMetroTan gerang; import com.ahmadkhabir.fasilitasumumtange rang.BidangKeamanan.PolsekCiledug; import com.ahmadkhabir.fasilitasumumtange rang.BidangKeamanan.PolsekCipondoh ; import com.ahmadkhabir.fasilitasumumtange rang.BidangKeamanan.PolsekKarawaci ; import com.ahmadkhabir.fasilitasumumtange rang.BidangKeamanan.PolsekNeglasar i; import com.ahmadkhabir.fasilitasumumtange rang.BidangKeamanan.PolsekTangkot; import com.ahmadkhabir.fasilitasumumtange rang.CustomList.CustomListKeamanan ;
Integer[] gambar3 = { R.drawable.tribrata, R.drawable.tribrata, R.drawable.tribrata, R.drawable.tribrata, R.drawable.tribrata, R.drawable.tribrata }; String[] nama3 = {"Polres Metro Tangerang", "Polsek Ciledug", "Polsek Cipondoh", "Polsek Karawaci", "Polsek Neglasari", "Polsek Tangerang Kota"}; protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState) ; setContentView(R.layout.listkeaman an); setTitle("Daftar Bidang Keamanan"); list3 = (ListView) findViewById(R.id.keamananlist); adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_ 1, nama3); list3.setAdapter(adapter); CustomListKeamanan adapter = new CustomListKeamanan(ListBidangKeama nan.this, nama3, gambar3); list3.setAdapter(adapter); list3.setOnItemClickListener(new AdapterView.OnItemClickListener(){ public void onItemClick(AdapterView>arg0, View arg1, int position, long
http://digilib.mercubuana.ac.id/
arg3){ String seleksi = (String) list3.getItemAtPosition(position); Toast.makeText(ListBidangKeamanan. this, seleksi, Toast.LENGTH_SHORT).show(); Intent i = null; if (position == 0) { i = new Intent(ListBidangKeamanan.this, PolresMetroTangerang.class); } else if (position==1) { i = new Intent(ListBidangKeamanan.this, PolsekCiledug.class); } else if (position==2) { i = new Intent(ListBidangKeamanan.this, PolsekCipondoh.class); } else if(position==3) { i = new Intent(ListBidangKeamanan.this, PolsekKarawaci.class); } else if (position==4) { i = new Intent(ListBidangKeamanan.this, PolsekNeglasari.class); } else if (position==5) { i = new Intent(ListBidangKeamanan.this, PolsekTangkot.class); finish();} else {} startActivity(i); } }); } public void onBackPressed(){ finish(); System.exit(0); } }
ListBidangPendidikan.java
package com.ahmadkhabir.fasilitasumumtange rang.ListBidang; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.Toast; import com.ahmadkhabir.fasilitasumumtange rang.BidangPendidikan.SMA.SMAN12Ta ngerang; import com.ahmadkhabir.fasilitasumumtange rang.BidangPendidikan.SMA.SMAN15Ta ngerang; import com.ahmadkhabir.fasilitasumumtange rang.BidangPendidikan.SMA.SMAN1Tan gerang; import com.ahmadkhabir.fasilitasumumtange rang.BidangPendidikan.SMA.SMAN2Tan gerang; import com.ahmadkhabir.fasilitasumumtange rang.BidangPendidikan.SMA.SMAN4Tan gerang; import com.ahmadkhabir.fasilitasumumtange rang.BidangPendidikan.SMA.SMAN5Tan gerang; import com.ahmadkhabir.fasilitasumumtange rang.BidangPendidikan.SMA.SMAN6Tan gerang; import com.ahmadkhabir.fasilitasumumtange rang.BidangPendidikan.SMA.SMAN7Tan gerang; import com.ahmadkhabir.fasilitasumumtange rang.BidangPendidikan.SMKN3Tangera ng; import com.ahmadkhabir.fasilitasumumtange rang.BidangPendidikan.SMP.SMPN10Ta ngerang; import com.ahmadkhabir.fasilitasumumtange rang.BidangPendidikan.SMP.SMPN15Ta ngerang; import com.ahmadkhabir.fasilitasumumtange rang.BidangPendidikan.SMP.SMPN1Tan
http://digilib.mercubuana.ac.id/
gerang; import com.ahmadkhabir.fasilitasumumtange rang.BidangPendidikan.SMP.SMPN3Tan gerang; import com.ahmadkhabir.fasilitasumumtange rang.BidangPendidikan.SMP.SMPN4Tan gerang; import com.ahmadkhabir.fasilitasumumtange rang.BidangPendidikan.SMP.SMPN5Tan gerang; import com.ahmadkhabir.fasilitasumumtange rang.BidangPendidikan.SMP.SMPN8Tan gerang; import com.ahmadkhabir.fasilitasumumtange rang.BidangPendidikan.SMP.SMPN9Tan gerang; import com.ahmadkhabir.fasilitasumumtange rang.BidangPendidikan.SekolahAlamT angerang; import com.ahmadkhabir.fasilitasumumtange rang.CustomList.CustomListPendidik an; import com.ahmadkhabir.fasilitasumumtange rang.R; import java.util.ArrayList; public class ListBidangPendidikan extends Activity { ListView list2; ArrayList<String> listitems; ArrayAdapter<String> adapter; Integer[] gambar2 = { R.drawable.alamtang, R.drawable.smkn3, R.drawable.smpn1, R.drawable.smpn3, R.drawable.tutwuri, R.drawable.smpn5, R.drawable.smpn8, R.drawable.smpn9, R.drawable.smpn10, R.drawable.smpn15, R.drawable.sman1, R.drawable.sman2, R.drawable.sman4, R.drawable.sman5, R.drawable.sman6, R.drawable.sman7, R.drawable.sman12, R.drawable.sman15
}; String[] nama2 = {"Sekolah Alam Tangerang", "SMK Negeri 3 Tangerang", "SMP Negeri 1 Tangerang", "SMP Negeri 3 Tangerang", "SMP Negeri 4 Tangerang", "SMP Negeri 5 Tangerang", "SMP Negeri 8 Tangerang", "SMP Negeri 9 Tangerang", "SMP Negeri 10 Tangerang", "SMP Negeri 15 Tangerang", "SMA Negeri 1 Tangerang", "SMA Negeri 2 Tangerang", "SMA Negeri 4 Tangerang", "SMA Negeri 5 Tangerang", "SMA Negeri 6 Tangerang", "SMA Negeri 7 Tangerang", "SMA Negeri 12 Tangerang", "SMA Negeri 15 Tangerang"}; protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState) ; setContentView(R.layout.listpendid ikan); setTitle("Daftar Bidang Pendidikan"); list2 = (ListView) findViewById(R.id.pendidikanlist); adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_ 1, nama2); list2.setAdapter(adapter); CustomListPendidikan adapter = new CustomListPendidikan(ListBidangPen didikan.this, nama2, gambar2); list2.setAdapter(adapter); list2.setOnItemClickListener(new AdapterView.OnItemClickListener(){ public void onItemClick(AdapterView>arg0, View arg1, int position, long arg3){ String seleksi = (String) list2.getItemAtPosition(position);
http://digilib.mercubuana.ac.id/
Toast.makeText(ListBidangPendidika n.this, seleksi, Toast.LENGTH_SHORT).show(); Intent i = null; if (position==0) { i = new Intent(ListBidangPendidikan.this, SekolahAlamTangerang.class); } else if (position==1) { i = new Intent(ListBidangPendidikan.this, SMKN3Tangerang.class); } else if (position==2) { i = new Intent(ListBidangPendidikan.this, SMPN1Tangerang.class); } else if (position==3) { i = new Intent(ListBidangPendidikan.this, SMPN3Tangerang.class); } else if (position==4) { i = new Intent(ListBidangPendidikan.this, SMPN4Tangerang.class); } else if (position==5) { i = new Intent(ListBidangPendidikan.this, SMPN5Tangerang.class); } else if (position==6) { i = new Intent(ListBidangPendidikan.this, SMPN8Tangerang.class); } else if (position==7) { i = new Intent(ListBidangPendidikan.this, SMPN9Tangerang.class); } else if (position==8) { i = new Intent(ListBidangPendidikan.this, SMPN10Tangerang.class); } else if (position==9) { i = new Intent(ListBidangPendidikan.this,
SMPN15Tangerang.class); } else if (position==10) { i = new Intent(ListBidangPendidikan.this, SMAN1Tangerang.class); } else if (position==11) { i = new Intent(ListBidangPendidikan.this, SMAN2Tangerang.class); } else if (position==12) { i = new Intent(ListBidangPendidikan.this, SMAN4Tangerang.class); } else if (position==13) { i = new Intent(ListBidangPendidikan.this, SMAN5Tangerang.class); } else if (position==14) { i = new Intent(ListBidangPendidikan.this, SMAN6Tangerang.class); } else if (position==15) { i = new Intent(ListBidangPendidikan.this, SMAN7Tangerang.class); } else if (position==16) { i = new Intent(ListBidangPendidikan.this, SMAN12Tangerang.class); } else if (position==17) { i = new Intent(ListBidangPendidikan.this, SMAN15Tangerang.class); finish();} else {} startActivity(i); } }); } public void onBackPressed(){ finish(); System.exit(0);
http://digilib.mercubuana.ac.id/
} Integer[] gambar5 = { R.drawable.airport,
}
ListTansportasi.java
R.drawable.trainstation,
package com.ahmadkhabir.fasilitasumumtange rang.ListBidang;
R.drawable.trainstation,
import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.Toast;
R.drawable.trainstation, R.drawable.busstation };
import com.ahmadkhabir.fasilitasumumtange rang.BidangTransportasi.BandaraSoe Ta; import com.ahmadkhabir.fasilitasumumtange rang.BidangTransportasi.StasiunBat uCeper; import com.ahmadkhabir.fasilitasumumtange rang.BidangTransportasi.StasiunPor is; import com.ahmadkhabir.fasilitasumumtange rang.BidangTransportasi.StasiunTan ahTinggi; import com.ahmadkhabir.fasilitasumumtange rang.BidangTransportasi.StasiunTan gerang; import com.ahmadkhabir.fasilitasumumtange rang.BidangTransportasi.TerminalKe bonNanas; import com.ahmadkhabir.fasilitasumumtange rang.CustomList.CustomListTranspor tasi; import com.ahmadkhabir.fasilitasumumtange rang.R; import java.util.ArrayList; public class ListBidangTransportasi extends Activity { ListView list5; ArrayList<String> listitems; ArrayAdapter<String> adapter;
R.drawable.trainstation,
String[] nama5 = {"Bandara Soekarno Hatta", "Stasiun Batu Ceper", "Stasiun Poris", "Stasiun Tanah Tinggi", "Stasiun Tangerang", "Terminal Bus Kebon Nanas"}; protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState) ; setContentView(R.layout.listtransp ortasi); setTitle("Daftar Bidang Transportasi"); list5 = (ListView) findViewById(R.id.transportasilist ); adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_ 1, nama5); list5.setAdapter(adapter); CustomListTransportasi adapter = new CustomListTransportasi(ListBidangT ransportasi.this, nama5, gambar5); list5.setAdapter(adapter); list5.setOnItemClickListener(new AdapterView.OnItemClickListener(){ public void onItemClick(AdapterView>arg0, View arg1, int position, long arg3){ String seleksi = (String) list5.getItemAtPosition(position); Toast.makeText(ListBidangTransport asi.this, seleksi,
http://digilib.mercubuana.ac.id/
Toast.LENGTH_SHORT).show(); Intent i = null; if(position == 0){ i = new Intent(ListBidangTransportasi.this , BandaraSoeTa.class); } else if(position==1){ i = new Intent(ListBidangTransportasi.this , StasiunBatuCeper.class); } else if(position==2){ i = new Intent(ListBidangTransportasi.this , StasiunPoris.class); } else if(position==3){ i = new Intent(ListBidangTransportasi.this , StasiunTanahTinggi.class); }
else if(position==4){ i = new Intent(ListBidangTransportasi.this , StasiunTangerang.class); } else if(position==5){ i = new Intent(ListBidangTransportasi.this , TerminalKebonNanas.class); finish();} else {} startActivity(i); } }); } public void onBackPressed(){ finish(); System.exit(0); } }
http://digilib.mercubuana.ac.id/
KARTU ASISTENSI
http://digilib.mercubuana.ac.id/