Adisasmita Adji Sakti. 2011. Transportasi dan Pengembangan Wilayah. Graha Ilmu
Agarwal, B. B. Tayal S. P. M. Gupta. 2010. SOFTWARE ENGIEENERING & TESTING.
A.S. Rossa, Shalahuddin. M. 2013. Rekayasa Perangkat Lunak Terstruktur dan Berorientasi
Objek. Informatika Bandung.
Hariyanto, Bambang. 2014. Esensi-esensi Bahasa Pemrograman Java. Bandung: Informatika
Bandung.
http://www.transportumum.com/jakarta
http://www.jakarta.go.id/web/index.php/bus/index/0/--/1/95
Kadir, Abdul. 2013. From Zero to A Pro – Pemrograman Aplikasi Android . Yogyakarta:
Penerbit Andi Offset.
London. Jones bartlett Publisher Internasional.
Rizky, Soetam. 2011. KONSEP DASAR REKAYASA PERANGKAT LUNAK {Software
Reeingeenering}. Jakarta. PT.Prestasi Pustakarya.
Safaat H, Nazruddin. 2012. Pemrograman Aplikasi Mobile Smartphone dan Tablet PC
berbasis Android. Bandung: Informatika Bandung.
Safaat H, Nazruddin. 2014. Pemrograman Aplikasi Mobile Smartphone dan Tablet PC
berbasis Android. Bandung: Informatika Bandung.
Salim. Abbas, S.E., M.A. Drs. H.A. 2012. Manajemen Transportasi. PT Raja Grafinfo
Persada, Jakarta.
Sulindawati dan Fathoni, Muhammad. 2010. Pengantar Analisa Perancangan “Sistem”.
Journal SAINTIKOM. Vol. 9, No 2 Agustus
Yasin, Verdi. 2012. Rekayasa Perangkat Lunak Berorientasi Objek Pemodelan,
Arsitektur dan Perancangan (Modeling, Architecture and Design)
public class DataBaseManager extends SQLiteOpenHelper {
@SuppressLint("SdCardPath")
private static String DB_PATH =
"/data/data/com.kurniawan.akjb/dat abases/";
private static String DB_NAME = "database.sqlite";
private static SQLiteDatabase
mDataBase;
private static DataBaseManager
sInstance = null;
private static final int
DATABASE_VERSION = 1;
private DataBaseManager(){
super(ApplicationContextProvider.g etContext(), DB_NAME, null, DATABASE_VERSION);
try{
createDataBase(); openDataBase(); }catch (IOException e){ e.printStackTrace(); }
}
public static DataBaseManager instance() { if (sInstance == null) { sInstance = new DataBaseManager(); } return sInstance; }
private void createDataBase()
throws IOException{ boolean dbExist = checkDataBase(); if (dbExist) { }else{ this.getReadableDatabase(); try{ copyDataBase(); } catch (IOException e){ throw new
Error("Error copying database"); } } } private boolean checkDataBase() { SQLiteDatabase checkDB = null; try { String myPath = DB_PATH + DB_NAME; checkDB = SQLiteDatabase.openDatabase(myPath , null, SQLiteDatabase.OPEN_READONLY); }catch (SQLiteException e){ } if (checkDB != null){ checkDB.close(); }
return checkDB != null; }
public void copyDataBase()
throws IOException{ InputStream myInput = ApplicationContextProvider.getCont ext().getAssets().open(DB_NAME); String outFileName = DB_PATH + DB_NAME; OutputStream myOutput = new FileOutputStream(outFileName);
byte[] buffer = new
byte[1024]; int length; while ((length = myInput.read(buffer)) > 0) { myOutput.write(buffer, 0, length); } myOutput.flush(); myOutput.close(); myInput.close(); }
private void openDataBase()
throws SQLException{
String myPath = DB_PATH +
DB_NAME; mDataBase = SQLiteDatabase.openDatabase(myPath , null, SQLiteDatabase.OPEN_READWRITE); }
public Cursor select(String query) throws SQLException{ return mDataBase.rawQuery(query, null); } @Override public void onCreate(SQLiteDatabase arg0){ } @Override public void
onUpgrade(SQLiteDatabase arg0, int arg1, int arg2){
}
public void insert(String
table, ContentValues values)
throws SQLException{ mDataBase.insert(table, null, values); } public Cursor selectProfile() throws SQLException{ String command = "SELECT tentang, petunjuk FROM profile"; return mDataBase.rawQuery(command, null); } public Cursor selectKategori() throws SQLException{ String command = "SELECT id, nama FROM kategori";
return mDataBase.rawQuery(command, null); } public Cursor selectAngkutanDetail(String id) throws SQLException{ String command = "SELECT nama, deskripsi, gambar, tarif FROM angkutan WHERE id = '"+id+"'"; return mDataBase.rawQuery(command, null); } public Cursor selectAngkutanList(String phrase1, String phrase2, int phraseCount)
throws SQLException{
String command =
null;
if(phraseCount==1){
command = "SELECT id, nama FROM angkutan WHERE id IN (SELECT id_angkutan FROM lokasi_angkutan" +
" WHERE id_lokasi = (SELECT id FROM lokasi WHERE nama LIKE
'%"+phrase1+"%'))"; }else{
command = "SELECT id, nama FROM angkutan WHERE id IN (SELECT id_angkutan FROM lokasi_angkutan" +
" WHERE id_lokasi = (SELECT id FROM lokasi WHERE nama LIKE
'%"+phrase1+"%')) INTERSECT SELECT id, nama FROM angkutan WHERE id IN (SELECT id_angkutan FROM
lokasi_angkutan" +
" WHERE id_lokasi = (SELECT id FROM lokasi WHERE nama LIKE
'%"+phrase2+"%'))"; } return mDataBase.rawQuery(command, null); } public Cursor
selectListLokasi(String id) throws SQLException{
String command = "SELECT nama FROM lokasi WHERE id IN (SELECT id_lokasi FROM
lokasi_angkutan" + " WHERE id_angkutan = '"+id+"')"; return mDataBase.rawQuery(command, null); } public Cursor selectAngkutanByKategori(String id) throws SQLException{
String command = "SELECT id, nama FROM angkutan WHERE id_kategori = '"+id+"'";
return mDataBase.rawQuery(command, null); } public Cursor selectKategorinDetail(String id) throws SQLException{
String command = "SELECT nama, deskripsi, gambar FROM kategori WHERE id =
'"+id+"'"; return mDataBase.rawQuery(command, null); } }
Activity_Main.xml
<LinearLayout xmlns:android="http://schemas.andr oid.com/apk/res/android" xmlns:tools="http://schemas.androi d.com/tools" android:layout_width="match_parent " android:layout_height="match_paren t" android:background="@drawable/peta " android:orientation="vertical" tools:context="${packageName}.${ac tivityClass}" > <RelativeLayout android:layout_width="match_parent " android:layout_height="@dimen/head er_height" android:background="@drawable/head er" > <LinearLayout android:id="@+id/tentangLL" android:layout_width="@dimen/heade r_height" android:layout_height="@dimen/head er_height" android:layout_alignParentRight="t rue" android:layout_centerVertical="tru e" android:gravity="center" android:background="@drawable/butt on_second_selector" android:orientation="vertical" > <ImageView android:id="@+id/imageView1" android:layout_width="@dimen/heade r_icon_size" android:layout_height="@dimen/head er_icon_size" android:src="@drawable/tentang" /> </LinearLayout> <LinearLayout android:id="@+id/petunjukLL" android:layout_width="@dimen/heade r_height" android:layout_height="@dimen/head er_height" android:layout_toLeftOf="@+id/tent angLL" android:layout_centerVertical="tru e" android:gravity="center" android:background="@drawable/butt on_second_selector"android:orientation="vertical" > <ImageView android:id="@+id/imageView1" android:layout_width="@dimen/heade r_icon_size" android:layout_height="@dimen/head er_icon_size" android:src="@drawable/petunjuk" /> </LinearLayout> <TextView android:id="@+id/textView1" android:layout_width="wrap_content " android:layout_height="wrap_conten t" android:layout_alignParentLeft="tr ue" android:layout_centerVertical="tru e" android:layout_marginLeft="15dp" android:textSize="@dimen/header_te xt_size" android:textStyle="bold" android:textColor="@color/text_whi te" android:text="@string/app_name" /> </RelativeLayout> <LinearLayout android:layout_width="match_parent " android:layout_height="53dp" android:layout_weight="0.53" android:gravity="center" android:orientation="vertical" > <LinearLayout android:id="@+id/jenisLL" android:layout_width="match_parent " android:layout_height="wrap_conten t" android:layout_marginBottom="30dp" android:layout_marginLeft="30dp" android:layout_marginRight="30dp" android:background="@drawable/butt on_selector" android:gravity="center" android:orientation="vertical" android:paddingBottom="15dp" android:paddingTop="15dp" > <ImageView android:id="@+id/imageView2" android:layout_width="40dp" android:layout_height="40dp" android:src="@drawable/menu" /> <TextView android:layout_width="match_parent " android:layout_height="wrap_conten t" android:layout_marginTop="3dp"
android:gravity="center_vertical|c
enter_horizontal"
android:text="Jenis Angkutan Umum" android:textColor="@color/text_whi te" android:textSize="@dimen/header_te xt_size" android:textStyle="bold" /> </LinearLayout> <LinearLayout android:id="@+id/startLL" android:layout_width="match_parent " android:layout_height="wrap_conten t" android:layout_marginBottom="30dp" android:layout_marginLeft="30dp" android:layout_marginRight="30dp" android:background="@drawable/butt on_selector" android:gravity="center" android:orientation="vertical" android:paddingBottom="15dp" android:paddingTop="15dp" > <ImageView android:id="@+id/imageView2" android:layout_width="60dp" android:layout_height="40dp" android:src="@drawable/search" /> <TextView android:layout_width="match_parent " android:layout_height="wrap_conten t" android:layout_marginTop="5dp" android:gravity="center_vertical|c enter_horizontal" android:text="Pencarian Angkutan Umum" android:textColor="@color/text_whi te" android:textSize="@dimen/header_te xt_size" android:textStyle="bold" /> </LinearLayout> </LinearLayout> </LinearLayout>
Colour.xml
<?xml version="1.0" encoding="utf-8"?> <resources> <color name="background_red">#a61300</col or> <color name="header">#a61300</color> <color name="background_white">#ffffff</c olor> <color name="text_white">#FFFFFF</color> <color name="text_gray">#515151</color> <color name="text_black">#515151</color> </resources>Activity_splash.xml
<RelativeLayout xmlns:android="http://schemas.andr oid.com/apk/res/android" xmlns:tools="http://schemas.androi d.com/tools" android:layout_width="match_parent " android:layout_height="match_paren t" android:background="@color/backgro und_red" tools:context="${packageName}.${ac tivityClass}" > <ImageView android:id="@+id/imageView1" android:layout_width="@dimen/splas h_logo_size" android:layout_height="@dimen/spla sh_logo_size" android:layout_centerHorizontal="t rue" android:layout_centerVertical="tru e" android:src="@drawable/logo" /> <TextView android:id="@+id/textView1" android:layout_width="wrap_content " android:layout_height="wrap_conten t" android:layout_below="@+id/imageVi ew1" android:layout_centerHorizontal="t rue" android:layout_marginTop="30dp" android:textSize="@dimen/splash_te xt_size" android:textColor="@color/text_whi te" android:text="Angkutan Jakarta Barat" /> </RelativeLayout>
Activity_Detail.xml
<LinearLayout xmlns:android="http://schemas.andr oid.com/apk/res/android" xmlns:tools="http://schemas.androi d.com/tools" android:layout_width="match_parent " android:layout_height="match_paren t" android:background="@color/backgro und_white" android:orientation="vertical" tools:context="${packageName}.${ac tivityClass}" > <RelativeLayout android:layout_width="match_parent " android:layout_height="@dimen/head er_height" android:background="@drawable/head er" > <TextView android:id="@+id/textView1"android:layout_width="wrap_content " android:layout_height="wrap_conten t" android:layout_alignParentLeft="tr ue" android:layout_centerVertical="tru e" android:layout_marginLeft="15dp" android:textSize="@dimen/header_te xt_size" android:textStyle="bold" android:textColor="@color/text_whi te" android:text="@string/app_name" /> </RelativeLayout> <ScrollView android:id="@+id/scrollView1" android:layout_width="match_parent " android:layout_height="match_paren t" > <LinearLayout android:layout_width="match_parent " android:layout_height="match_paren t" android:orientation="vertical" android:padding="20dp" > <TextView android:id="@+id/namaTV" android:layout_width="match_parent " android:layout_height="wrap_conten t" android:textColor="@color/text_bla ck" android:textSize="20sp" android:textStyle="bold" android:gravity="center_vertical|c enter_horizontal" android:text="TextView" /> <ImageView android:id="@+id/imageIV" android:layout_width="130dp" android:layout_height="130dp" android:layout_gravity="center_hor izontal" android:layout_marginTop="10dp" /> <TextView android:id="@+id/tarifTV" android:layout_width="match_parent " android:layout_height="wrap_conten t" android:textColor="@color/text_bla ck" android:textStyle="bold" android:gravity="center_vertical|c enter_horizontal" android:textSize="17sp" android:layout_marginTop="10dp"
android:text="TextView" /> <TextView android:id="@+id/deskripsiTV" android:layout_width="match_parent " android:layout_height="wrap_conten t" android:textColor="@color/text_gra y" android:textSize="17sp" android:layout_marginTop="10dp" android:text="TextView" /> <TextView android:id="@+id/rutesssTV" android:layout_width="match_parent " android:layout_height="wrap_conten t" android:textColor="@color/text_bla ck" android:textSize="17sp" android:textStyle="bold" android:layout_marginTop="20dp" android:text="Rute : " /> <TextView android:id="@+id/ruteTV" android:layout_width="match_parent " android:layout_height="wrap_conten t" android:textColor="@color/text_bla ck" android:textSize="17sp" android:layout_marginTop="5dp" android:text="TextView" /> </LinearLayout> </ScrollView> </LinearLayout>
Activity_jenis.xml
<LinearLayout xmlns:android="http://schemas.andr oid.com/apk/res/android" xmlns:tools="http://schemas.androi d.com/tools" android:layout_width="match_parent " android:layout_height="match_paren t" android:background="@color/backgro und_white" android:orientation="vertical" tools:context="${packageName}.${ac tivityClass}" > <RelativeLayout android:layout_width="match_parent " android:layout_height="@dimen/head er_height" android:background="@drawable/head er" > <TextView android:id="@+id/textView1" android:layout_width="wrap_content "DAFTAR RIWAYAT HIDUP
Kurniawan Pria , 23 th KapukPoglar, No 32 RT.03/005 Kel.Kapuk Kec.Cengkareng Jakarta 082210111992IDENTIFIKASI DIRI
NAMA
:
Kurniawan
UMUR
:
23 th (Jakarta, 06 November 1992)
KELAMIN
:
Pria
STATUS
:
Belum Kawin
AGAMA
:
Islam
KEWARGANEGARAAN
:
Indonesia
ALAMAT
:
Jl. Kapuk Poglar No 32 RT.03/004
Kel.
Kapuk Kec. Cengkareng
HOBI
:
Travelling, Adventure, Basketball
TELEPON
:
082210111992
RIWAYAT PENDIDIKAN
2011 - 2015
Universitas Mercu Buana Jurusan Sistem Informasi Fakultas Ilmu Komputer
2008 - 2011
SMAN 111 JAKARTA
2005 - 2008
MTS 10 JAKARTTA