LISTING PROGRAM. com.example.jessicatamara.myapplication4;

Size: px
Start display at page:

Download "LISTING PROGRAM. com.example.jessicatamara.myapplication4;"

Transcription

1 A-1 LISTING PROGRAM MainActivity.java package import import import import import import com.example.jessicatamara.myapplication4; android.content.intent; android.support.v7.app.appcompatactivity; android.os.bundle; android.view.view; android.widget.button; android.widget.textview; public class MainActivity extends AppCompatActivity View.OnClickListener{ implements TextView txt_home; Button btn_enkripsi, btn_dekripsi, btn_tentang, btn_bantuan, btn_keluar; protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); txt_home = (TextView) findviewbyid(r.id.textviewhome); btn_enkripsi = (Button) findviewbyid(r.id.buttonenkripsi); btn_enkripsi.setonclicklistener(this); btn_dekripsi = (Button) findviewbyid(r.id.buttondekripsi); btn_dekripsi.setonclicklistener(this); btn_tentang = (Button) findviewbyid(r.id.buttontentang); btn_tentang.setonclicklistener(this); btn_bantuan = (Button) findviewbyid(r.id.buttonbantuan); btn_bantuan.setonclicklistener(this); public void onclick(view v) { int klik = v.getid(); if (klik == R.id.buttonEnkripsi) { Intent i = new Intent (MainActivity.this, Enkripsi_File.class); startactivity(i); else if (klik==r.id.buttondekripsi) { Intent i = new Intent (MainActivity.this, dekripsi_file.class); startactivity(i); else if (klik==r.id.buttontentang) {

2 A-2 Intent i = new Intent (MainActivity.this, tentang.class); startactivity(i); else if (klik==r.id.buttonbantuan) { Intent i = new Intent (MainActivity.this, bantuan.class); startactivity(i); Enkripsi_File.java package com.example.jessicatamara.myapplication4; /** * Created by JessicaTamara on 19/04/2017. import android.app.activity; import android.content.dialoginterface; import android.content.intent; import android.net.uri; import android.os.bundle; import android.support.v7.app.alertdialog; import android.support.v7.app.appcompatactivity; import android.util.log; import android.view.view; import android.widget.button; import android.widget.edittext; import android.widget.textview; import android.widget.toast; import com.itextpdf.text.document; import com.itextpdf.text.documentexception; import com.itextpdf.text.font; import com.itextpdf.text.paragraph; import com.itextpdf.text.pdf.pdfreader; import com.itextpdf.text.pdf.pdfwriter; import com.itextpdf.text.pdf.parser.pdftextextractor; import java.io.file; import java.io.filenotfoundexception; import java.io.fileoutputstream; import java.io.ioexception; import java.io.outputstreamwriter; public class Enkripsi_File extends AppCompatActivity implements View.OnClickListener { Button choose, proses_double, proses_ttm, simpan; TextView lokasi_file; EditText kunci1, kunci2, kuncittm; String awal, hsl_ttm, hsl_double, namafile; protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.enkripsi_file); lokasi_file = (TextView) findviewbyid(r.id.textviewisifile);

3 A-3 kuncittm = (EditText) findviewbyid(r.id.edittextinputkunci); kunci1 = (EditText) findviewbyid(r.id.edittextkunci1dtc); kunci2 = (EditText) findviewbyid(r.id.edittextkunci2dtc); choose = (Button) findviewbyid(r.id.buttonbrowseenk); choose.setonclicklistener(this); proses_double = (Button) findviewbyid(r.id.buttonenkdtc); proses_double.setonclicklistener(this); proses_ttm = (Button) findviewbyid(r.id.buttonenkttm); proses_ttm.setonclicklistener(this); simpan = (Button) findviewbyid(r.id.buttonsimpan); simpan.setonclicklistener(this); public void onclick(view v) { switch (v.getid()) { case R.id.buttonBrowseEnk: Intent intent = new Intent(Intent.ACTION_GET_CONTENT); intent.settype("*"); //all files intent.addcategory(intent.category_openable); startactivityforresult(intent.createchooser(intent, "Select a File to Upload"), 0); catch (android.content.activitynotfoundexception ex) { Toast.makeText(Enkripsi_File.this, "Please install a File Manager.", Toast.LENGTH_SHORT).show(); break; case R.id.buttonEnkTtm: Long starttime = System.currentTimeMillis(); trithemius ttm = new trithemius(); hsl_ttm = ttm.enkripsi_ttm(awal, kuncittm.gettext().tostring()); Long endtime = System.currentTimeMillis(); Long totaltime = endtime - starttime; Toast.makeText(Enkripsi_File.this, hsl_ttm, Toast.LENGTH_LONG).show(); Toast.makeText(Enkripsi_File.this, "Enkripsi dengan Algoritma Trithemius Berhasil \nrunning Time:" + totaltime.tostring() + "ms", Toast.LENGTH_LONG).show(); break; case R.id.buttonEnkDTC: starttime = System.currentTimeMillis(); doublet db = new doublet(); hsl_double = db.enkripsi_double(hsl_ttm, kunci1.gettext().tostring(), kunci2.gettext().tostring()); endtime = System.currentTimeMillis(); totaltime = endtime - starttime; Toast.makeText(Enkripsi_File.this, hsl_double, Toast.LENGTH_LONG).show(); Toast.makeText(Enkripsi_File.this, "Enkripsi dengan Double Transposition Cipher Berhasil \nrunning Time:" + totaltime.tostring() + "ms", Toast.LENGTH_LONG).show(); break;

4 A-4 case R.id.buttonSimpan: AlertDialog.Builder builder = new AlertDialog.Builder(Enkripsi_File.this); builder.settitle("save"); builder.setmessage("masukkan Nama File"); // Use an EditText view to get user input. final EditText input = new EditText(Enkripsi_File.this); input.setid(0); builder.setview(input); builder.setpositivebutton("ok", new DialogInterface.OnClickListener() { whichbutton) { public void onclick(dialoginterface dialog, int namafile = input.gettext().tostring(); //Document doc = new Document(); namafile = "/mnt/sdcard/" + namafile+".pdf"; FileOutputStream(myFile); OutputStreamWriter(fOut); /* File myfile = new File(namafile); myfile.createnewfile(); FileOutputStream fout = new OutputStreamWriter myoutwriter = new myoutwriter.append(hsl_double); myoutwriter.close(); fout.close(); String print=""; Document document = new Document(); PdfWriter.getInstance(document, new FileOutputStream(namafile)); document.open(); for(int i=0; i<hsl_double.length()-1; i++) print += (int)hsl_double.charat(i) + " "; print += (int)hsl_double.charat(hsl_double.length()-1); document.add(new Paragraph(print)); document.close(); Toast.makeText(Enkripsi_File.this, "File Berhasil Disimpan", Toast.LENGTH_LONG).show(); /* FileOutputStream(file); File file = new File(namafile); FileOutputStream fout = new PdfWriter.getInstance(doc, fout);

5 A-5 //open the document doc.open(); Paragraph p1 = new Paragraph(hsl_double); Font parafont= new Font(Font.FontFamily.COURIER); p1.setalignment(paragraph.align_center); p1.setfont(parafont); //add paragraph to document doc.add(p1); e.getmessage()); e.getmessage()); ); catch (DocumentException de) { Log.e("PDFCreator", "DocumentException:" + de); catch (FileNotFoundException e) { Log.d("ooo", "File not found: " + catch (IOException e) { Log.d("ooo", "Error accessing file: " + catch (DocumentException e) { e.printstacktrace(); return; builder.setnegativebutton("cancel", new DialogInterface.OnClickListener() { { ); public void onclick(dialoginterface dialog, int which) return; builder.show(); break; String fileuri; public void onactivityresult(int requestcode, int resultcode, Intent resultdata) { if (requestcode == 0 && resultcode == Activity.RESULT_OK) { Uri uri = null; uri = resultdata.getdata(); fileuri = uri.getpath(); String parsedtext = ""; File ukuranfile = new File(fileuri); if ((ukuranfile.length() / 1024) <= 1024) {

6 A-6 parsedtext = ""; PdfReader reader = new PdfReader(fileuri); Integer n = reader.getnumberofpages(); for (int i = 0; i < n; i++) { parsedtext = parsedtext + PdfTextExtractor.getTextFromPage(reader, i + 1).trim() + "\n"; reader.close(); awal = parsedtext; lokasi_file.settext(fileuri); catch (Exception e) { Toast.makeText(getBaseContext(), "Harap Input file PDF", Toast.LENGTH_LONG).show(); lokasi_file.settext(""); else { Toast.makeText(getBaseContext(), "Ukuran Maksimal File 1MB", Toast.LENGTH_LONG).show(); lokasi_file.settext(""); catch (Exception e) { Toast.makeText(getBaseContext(), "Keterangan Error:" + e.getmessage(), Toast.LENGTH_LONG).show(); else { Toast.makeText(this, "Tidak ada file yang dipilih", Toast.LENGTH_LONG).show(); dekripsi_file.java package com.example.jessicatamara.myapplication4; /** * Created by JessicaTamara on 18/04/2017. import android.app.activity; import android.content.dialoginterface; import android.content.intent; import android.net.uri; import android.os.bundle; import android.os.environment; import android.support.v7.app.alertdialog; import android.support.v7.app.appcompatactivity; import android.util.log; import android.view.view; import android.widget.button; import android.widget.edittext; import android.widget.textview; import android.widget.toast; import com.itextpdf.text.document; import com.itextpdf.text.documentexception; import com.itextpdf.text.paragraph; import com.itextpdf.text.pdf.pdfreader; import com.itextpdf.text.pdf.pdfwriter;

7 A-7 import com.itextpdf.text.pdf.parser.pdftextextractor; import java.io.bufferedreader; import java.io.file; import java.io.filenotfoundexception; import java.io.fileoutputstream; import java.io.filereader; import java.io.ioexception; import java.io.outputstreamwriter; import java.io.printwriter; public class dekripsi_file extends AppCompatActivity implements View.OnClickListener { Button choose, proses_double, proses_ttm, simpan; TextView lokasi_file; EditText kunci1, kunci2, kuncittm; String awal = "", hsl_dt, hsl_ttm, namafile; protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.dekripsi_file); lokasi_file = (TextView) findviewbyid(r.id.textviewisifiledek); kuncittm = (EditText) findviewbyid(r.id.edittextinputkuncidek); kunci1 = (EditText) findviewbyid(r.id.edittextkunci1dtcdek); kunci2 = (EditText) findviewbyid(r.id.edittextkunci2dtcdek); choose = (Button) findviewbyid(r.id.buttonbrowsedek); choose.setonclicklistener(this); proses_double = (Button) findviewbyid(r.id.buttondekdtc); proses_double.setonclicklistener(this); proses_ttm = (Button) findviewbyid(r.id.buttondekttm); proses_ttm.setonclicklistener(this); simpan = (Button) findviewbyid(r.id.buttonsimpanfile); simpan.setonclicklistener(this); public void onclick(view v) { switch (v.getid()) { case R.id.buttonBrowseDek: Intent intent = new Intent(Intent.ACTION_GET_CONTENT); intent.settype("*"); //all files intent.addcategory(intent.category_openable); startactivityforresult(intent.createchooser(intent, "Select a File to Upload"), 0); catch (android.content.activitynotfoundexception ex) { Toast.makeText(dekripsi_file.this, "Please install a File Manager.", Toast.LENGTH_SHORT).show(); break; case R.id.buttonDekDTC: Long starttime = System.currentTimeMillis(); doublet db = new doublet();

8 A-8 hsl_dt = db.dekripsi_double(awal, kunci1.gettext().tostring(), kunci2.gettext().tostring()); Long endtime = System.currentTimeMillis(); Long totaltime = endtime - starttime; Toast.makeText(dekripsi_file.this, hsl_dt, Toast.LENGTH_LONG).show(); Toast.makeText(dekripsi_file.this, "Dekripsi dengan Double TRansposition Cipher Berhasil \nrunning Time:" + totaltime.tostring() + "ms", Toast.LENGTH_LONG).show(); break; case R.id.buttonDekTtm: starttime = System.currentTimeMillis(); trithemius ttm = new trithemius(); hsl_ttm = ttm.dekripsi_ttm(hsl_dt, kuncittm.gettext().tostring()); endtime = System.currentTimeMillis(); totaltime = endtime - starttime; Toast.makeText(dekripsi_file.this, hsl_ttm, Toast.LENGTH_LONG).show(); Toast.makeText(dekripsi_file.this, "Dekripsi dengan Algoritma Trithemius Berhasil \nrunning Time:" + totaltime.tostring() + "ms", Toast.LENGTH_LONG).show(); break; case R.id.buttonSimpanFile: AlertDialog.Builder builder = new AlertDialog.Builder(dekripsi_file.this); builder.settitle("save"); builder.setmessage("masukkan Nama File"); // Use an EditText view to get user input. final EditText input = new EditText(dekripsi_file.this); input.setid(0); builder.setview(input); builder.setpositivebutton("ok", new DialogInterface.OnClickListener() { whichbutton) { /* FileOutputStream(myFile); OutputStreamWriter(fOut); public void onclick(dialoginterface dialog, int namafile = input.gettext().tostring(); //Document doc = new Document(); namafile = "/mnt/sdcard/"+namafile+".pdf"; File myfile = new File(namafile); myfile.createnewfile(); FileOutputStream fout = new OutputStreamWriter myoutwriter = new myoutwriter.append(hsl_ttm); myoutwriter.close(); fout.close(); Document document = new Document(); PdfWriter.getInstance(document, new

9 A-9 FileOutputStream(namafile)); document.open(); document.add(new Paragraph(hsl_ttm)); document.close(); Toast.makeText(dekripsi_file.this, "File Berhasil Disimpan", Toast.LENGTH_LONG).show(); FileOutputStream(file); /* File file = new File(namafile); FileOutputStream fout = new PdfWriter.getInstance(doc, fout); //open the document doc.open(); Paragraph p1 = new Paragraph(hsl_double); Font parafont= new Font(Font.FontFamily.COURIER); p1.setalignment(paragraph.align_center); p1.setfont(parafont); //add paragraph to document doc.add(p1); catch (DocumentException de) { Log.e("PDFCreator", "DocumentException:" + de); Toast.makeText(dekripsi_file.this, "File Berhasil Disimpan", Toast.LENGTH_LONG).show(); e.getmessage()); e.getmessage()); ); catch (FileNotFoundException e) { Log.d("ooo", "File not found: " + catch (IOException e) { Log.d("ooo", "Error accessing file: " + catch (DocumentException e) { e.printstacktrace(); return; builder.setnegativebutton("cancel", new DialogInterface.OnClickListener() { { ); public void onclick(dialoginterface dialog, int which) return; builder.show();

10 A-10 break; String fileuri; public void onactivityresult(int requestcode, int resultcode, Intent resultdata) { if (requestcode == 0 && resultcode == Activity.RESULT_OK) { Uri uri = null; uri = resultdata.getdata(); fileuri = uri.getpath(); String parsedtext = ""; parsedtext = ""; PdfReader reader = new PdfReader(fileuri); Integer n = reader.getnumberofpages(); for (int i = 0; i < n; i++) { parsedtext = parsedtext + PdfTextExtractor.getTextFromPage(reader, i + 1).trim() + "\n"; reader.close(); String[] temp = parsedtext.split("\\s+"); awal=""; for(int i=0; i<temp.length; i++) awal+=(char)integer.parseint(temp[i]); Toast.makeText(this, "File Dibuka", Toast.LENGTH_LONG).show(); Toast.makeText(this, parsedtext, Toast.LENGTH_LONG).show(); catch (IOException e) { e.printstacktrace(); lokasi_file.settext(fileuri); /* String parsedtext=""; PdfReader reader = new PdfReader(fileuri); Integer n = reader.getnumberofpages(); Toast.makeText(dekripsi_file.this, fileuri + " " + n.tostring(), Toast.LENGTH_SHORT).show(); for (int i = 0; i <n ; i++) { parsedtext = parsedtext+ PdfTextExtractor.getTextFromPage(reader, i + 1).trim()+"\n"; reader.close(); awal = parsedtext; catch (Exception e) { System.out.println(e);

11 A-11 void methodwritestorage(string data) { String namafileoutput = Environment.getExternalStorageDirectory() + "/Hasil Dekrisi Jeje.txt"; PrintWriter pw = new PrintWriter(namaFileOutput); pw.println(data); pw.close(); //AlertDialog dialog=new AlertDialog.Builder(this).create(); //dialog.setmessage("hasil Enkripsi : " + data); //dialog.show(); catch (FileNotFoundException e) { AlertDialog dialog = new AlertDialog.Builder(this).create(); dialog.setmessage("error menulis data!\nketerangan error:\n" + e.tostring()); dialog.show(); trithemius.java package com.example.jessicatamara.myapplication4; /** * Created by JessicaTamara on 18/05/2017. public class trithemius { String index = "abcdefghiklmnopqrstuwxyzjvabcdefghijklmnopqrstuvwxyz "+' '+".,!"; char[] arrayindex= index.tochararray(); private char[] createkey(string key, String plaintext){ char[] arrayplaintext = plaintext.tochararray(); char[] arraykey = new char[arrayplaintext.length]; char[] filler = key.tochararray(); int flag=0; for (int i=0,j=0; i<arraykey.length; i++){ arraykey[i]=filler[j]; j++; if (j==filler.length){ flag=1; if (flag==1){ j=0; flag=0; return arraykey; private int getindex(char character){ for(int i=0; i<index.length(); i++){ if (character==arrayindex[i]){ return i; return -1;

12 A-12 private char getcharacter(int indext){ for(int i=0; i<index.length(); i++){ if (i==indext){ return arrayindex[i]; return '0'; public String enkripsi_ttm(string plaintext, String key){ char[]arraykey = createkey(key, plaintext); char[]arrayplaintext = plaintext.tochararray(); char[]arrayciphertext = new char[arrayplaintext.length]; int p,k,c; for (int i=0; i<arrayplaintext.length;i++){ if(getindex(arrayplaintext[i])==-1){ arrayciphertext[i]=arrayplaintext[i]; continue; p= getindex(arrayplaintext[i]); k= getindex(arraykey[i]); c= (p+k)%index.length(); arrayciphertext[i]=getcharacter(c); String hasil = new String(arrayciphertext); return hasil; public String dekripsi_ttm(string ciphertext, String key){ char[]arraykey = createkey(key, ciphertext); char[]arrayciphertext = ciphertext.tochararray(); char[]arrayplaintext = new char[arrayciphertext.length]; int p,k,c; for (int i=0; i<arrayciphertext.length;i++){ if(getindex(arrayciphertext[i])==-1){ arrayplaintext[i]=arrayciphertext[i]; continue; c= getindex(arrayciphertext[i]); k= getindex(arraykey[i]); p= (c-k); if(p<0) { p=p+index.length(); else{ p=p%index.length(); arrayplaintext[i]=getcharacter(p); String hasil = new String(arrayplaintext); return hasil;

13 A-13 doublet.java package com.example.jessicatamara.myapplication4; /** * Created by JessicaTamara on 18/05/2017. public class doublet { public Integer[] urutan(string key) { char[] kk1 = key.tochararray(); Integer[] kk2 = new Integer[kk1.length]; for (int i = 0; i < kk2.length; i++) { kk2[i] = i; for (int i = 0; i < kk1.length; i++) for (int j = 0; j < kk1.length; j++) if (kk1[i] < kk1[j]) { char ctemp = kk1[i]; kk1[i] = kk1[j]; kk1[j] = ctemp; int itemp = kk2[i]; kk2[i] = kk2[j]; kk2[j] = itemp; return kk2; public String enkripsi_double(string plain, String key1, String key2) { String k1 = key1, k2 = key2, cipher1 = "", cipher2 = ""; Integer i1 = (int) Math.ceil(plain.length() * 1.0 / k1.length()); Integer j1 = k1.length(); char[][] tabel1 = new char[i1][j1]; int k = 0; for (int i = 0; i < i1; i++) for (int j = 0; j < j1; j++) { if (k < plain.length()) tabel1[i][j] = plain.charat(k); else tabel1[i][j] = 'Ā'; k++; Integer[] runtutan = urutan(k1); for (int i = 0; i < runtutan.length; i++) for (int j = 0; j < i1; j++) cipher1 += tabel1[j][runtutan[i]]; Integer i2 = (int) Math.ceil(cipher1.length() * 1.0 / k2.length()); Integer j2 = k2.length(); char[][] tabel2 = new char[i2][j2]; k = 0; for (int i = 0; i < i2; i++) for (int j = 0; j < j2; j++) { if (k < cipher1.length()) tabel2[i][j] = cipher1.charat(k);

14 A-14 else tabel2[i][j] = 'Ī'; k++; runtutan = urutan(k2); for (int i = 0; i < runtutan.length; i++) for (int j = 0; j < i2; j++) cipher2 += tabel2[j][runtutan[i]]; return cipher2; { public String dekripsi_double(string cipher, String key1, String key2) String k1 = key1, k2 = key2, plain1 = "", plain2 = ""; Integer i1 = (cipher.length() / k2.length()); Integer j1 = k2.length(); char[][] tabel1 = new char[i1][j1]; int k = 0; Integer[] runtutan = urutan(k2); for (int i = 0; i < runtutan.length; i++) for (int j = 0; j < i1; j++) { tabel1[j][runtutan[i]] = cipher.charat(k); k++; for (int i = 0; i < i1; i++) for (int j = 0; j < j1; j++) plain1 += tabel1[i][j]; String temp = ""; for (int i = 0; i < plain1.length(); i++) if (plain1.charat(i)!= 'İ') temp += plain1.charat(i); plain1 = temp; Integer i2 = (plain1.length() / k1.length()); Integer j2 = k1.length(); char[][] tabel2 = new char[i2][j2]; k = 0; runtutan = urutan(k1); for (int i = 0; i < runtutan.length; i++) for (int j = 0; j < i2; j++) { tabel2[j][runtutan[i]] = plain1.charat(k); k++; for (int i = 0; i < i2; i++) for (int j = 0; j < j2; j++) plain2 += tabel2[i][j]; temp = ""; for (int i = 0; i < plain2.length(); i++) if (plain2.charat(i)!= 'Ā')

15 A-15 temp += plain2.charat(i); plain2 = temp; return plain2; tentang.java package com.example.jessicatamara.myapplication4; /** * Created by JessicaTamara on 06/04/2017. import android.os.bundle; import android.support.v7.app.appcompatactivity; import android.webkit.webview; public class tentang extends AppCompatActivity { protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.tentang); String text1 = "Nama : Jessica"; String text2 = "Nim : "; String text3 = "Stambuk : 2013"; String text4 = "Judul : Implementasi Super Enkripsi dengan Algoritma Trithemius dan Double Transposition Cipher dalam Pengamanan File PDF Berbasis Android"; String text5 = "Program Studi S1 Ilmu Kompuer Fakultas Ilmu Komputer dan Teknologi Informasi "; String text6 = "2017"; WebView webview = (WebView) findviewbyid(r.id.webview2); webview.loaddata("<p style=\"text-align: justify\">" + text1 + "</p>" + "<p style=\"text-align: justify\">" + text2 + "</p>" + "<p style=\"text-align: justify\">" + text3 + "</p>" + "<p style=\"text-align: justify\">" + text4 + "</p>" + "<p style=\"text-align: justify\">" + text5 + "</p>" + "<p style=\"text-align: justify\">" + text6 + "</p>", "text/html", "UTF-8"); bantuan.java package com.example.jessicatamara.myapplication4; /**

16 A-16 * Created by JessicaTamara on 18/05/2017. import android.os.bundle; import android.support.v7.app.appcompatactivity; import android.webkit.webview; public class bantuan extends AppCompatActivity { protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.bantuan); String text1 = "1.Ukuran maksimal file adalah 1MB"; String text2 = "2.Disarankan menginputkan tiga buat password yang berbeda guna meningkatkan keamanan file"; String text3 = "3.Password yang diinputkan pada saat proses enkripsi harus sama dengan password yang diinputkan pada saat proses dekripsi."; "</p>"+ "</p>"+ "</p>", WebView webview = (WebView)findViewById(R.id.webview); webview.loaddata("<p style=\"text-align: justify\">" + text1 + "<p style=\"text-align: justify\">" + text2 + "<p style=\"text-align: justify\">" + text3 + "text/html", "UTF-8");

17 B-1 CURRICULUM VITAE DATA PRIBADI Nama Lengkap : Jessica Jenis Kelamin : Perempuan Tempat, Tanggal Lahir : Medan, 18 April 1995 Alamat : Jl. Cengkeh 3 No. 3 Perumnas Simalingkar Alamat Orangtua : Jl. Cengkeh 3 No. 3 Perumnas Simalingkar Agama : Kristen No. Hp : jessicasinaga5@gmail.com Pendidikan Terakhir : Medan, Fakultas Ilmu Komputer dan Teknologi Informasi Jurusan S1 Ilmu Komputer PENDIDIKAN FORMAL : S1 Ilmu Komputer, Medan : SMA Santo Thomas 1 Medan : SMP Budi Murni 2 Medan : SD Budi Murni 2 Medan PENGALAMAN ORGANISASI DAN KEGIATAN ILMIAH Anggota Departemen Dana dan Usaha Ikatan Mahasiswa S1 Ilmu Komputer (IMILKOM), Bendahara Umum Ikatan Mahasiswa S1 Ilmu Komputer (IMILKOM),

Universitas Sumatera Utara A-1 LISTING PROGRAM. Menu Enkripsi. package com.example.program;

Universitas Sumatera Utara A-1 LISTING PROGRAM. Menu Enkripsi. package com.example.program; A-1 LISTING PROGRAM Menu Enkripsi package com.example.program; import java.io.file; import java.io.fileinputstream; import java.io.filenotfoundexception; import java.io.fileoutputstream; import java.io.ioexception;

More information

@Bind(R.id.input_ ) EditText EditText Button _loginbutton;

@Bind(R.id.input_ ) EditText EditText Button _loginbutton; package cyborg.pantaucctv; import android.app.progressdialog; import android.content.intent; import android.os.bundle; import android.support.v7.app.appcompatactivity; import android.util.log; import android.view.view;

More information

... 1... 2... 2... 3... 3... 4... 4... 5... 5... 6... 6... 7... 8... 9... 10... 13... 14... 17 1 2 3 4 file.txt.exe file.txt file.jpg.exe file.mp3.exe 5 6 0x00 0xFF try { in.skip(9058); catch (IOException

More information

package itexttutorial; import com.itextpdf.text.document; import com.itextpdf.text.documentexception; import com.itextpdf.text.

package itexttutorial; import com.itextpdf.text.document; import com.itextpdf.text.documentexception; import com.itextpdf.text. import com.itextpdf.text.document; import com.itextpdf.text.documentexception; import com.itextpdf.text.paragraph; public class DocumentExample1 { document.add(new Paragraph("A Hello World PDF document."));

More information

MAD ASSIGNMENT NO 3. Submitted by: Rehan Asghar BSSE AUGUST 25, SUBMITTED TO: SIR WAQAS ASGHAR Superior CS&IT Dept.

MAD ASSIGNMENT NO 3. Submitted by: Rehan Asghar BSSE AUGUST 25, SUBMITTED TO: SIR WAQAS ASGHAR Superior CS&IT Dept. MAD ASSIGNMENT NO 3 Submitted by: Rehan Asghar BSSE 7 15126 AUGUST 25, 2017 SUBMITTED TO: SIR WAQAS ASGHAR Superior CS&IT Dept. MainActivity.java File package com.example.tutorialspoint; import android.manifest;

More information

LISTING CODE A-1. Indo_to_jawa_Fragments.java. package studio.arti.kamusjawaindonesia;

LISTING CODE A-1. Indo_to_jawa_Fragments.java. package studio.arti.kamusjawaindonesia; LISTING CODE A-1 Indo_to_jawa_Fragments.java package studio.arti.kamusjawaindonesia; import android.content.dialoginterface; import android.database.cursor; import android.database.sqlite.sqlitedatabase;

More information

MyDatabaseHelper. public static final String TABLE_NAME = "tbl_bio";

MyDatabaseHelper. public static final String TABLE_NAME = tbl_bio; Page 1 of 5 MyDatabaseHelper import android.content.context; import android.database.sqlite.sqliteopenhelper; class MyDatabaseHelper extends SQLiteOpenHelper { private static final String DB_NAME = "friend_db";

More information

Mobile Application Development Lab [] Simple Android Application for Native Calculator. To develop a Simple Android Application for Native Calculator.

Mobile Application Development Lab [] Simple Android Application for Native Calculator. To develop a Simple Android Application for Native Calculator. Simple Android Application for Native Calculator Aim: To develop a Simple Android Application for Native Calculator. Procedure: Creating a New project: Open Android Stdio and then click on File -> New

More information

Basic GUI elements - exercises

Basic GUI elements - exercises Basic GUI elements - exercises https://developer.android.com/studio/index.html LIVE DEMO Please create a simple application, which will be used to calculate the area of basic geometric figures. To add

More information

LAMPIRAN A LISTING PROGRAM

LAMPIRAN A LISTING PROGRAM A-1 LAMPIRAN A LISTING PROGRAM FUNGSI public void StopWatchStart() stopwatch.reset(); stopwatch.start(); Cursor.Current = Cursors.WaitCursor; txtlog.text = ""; public void StopWatchStop(string Title) stopwatch.stop();

More information

Coding Menggunakan software Eclipse: Mainactivity.java (coding untuk tampilan login): package com.bella.pengontrol_otomatis;

Coding Menggunakan software Eclipse: Mainactivity.java (coding untuk tampilan login): package com.bella.pengontrol_otomatis; Coding Menggunakan software Eclipse: Mainactivity.java (coding untuk tampilan login): package com.bella.pengontrol_otomatis; import android.app.activity; import android.os.bundle; import android.os.countdowntimer;

More information

LISTING PROGRAM. namespace vigenere_des { public partial class MainPage : PhoneApplicationPage { public MainPage() { InitializeComponent(); }

LISTING PROGRAM. namespace vigenere_des { public partial class MainPage : PhoneApplicationPage { public MainPage() { InitializeComponent(); } 59 LISTING PROGRAM Form Utama : using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Navigation;

More information

LISTING PROGRAM. private void filetoolstripmenuitem_click(object sender, EventArgs e) { this.hide(); Form2 fr = new Form2(); fr.

LISTING PROGRAM. private void filetoolstripmenuitem_click(object sender, EventArgs e) { this.hide(); Form2 fr = new Form2(); fr. Kode Program Form Home namespace SkripsiLagi public partial class Form9 : Form public Form9() LISTING PROGRAM private void filetoolstripmenuitem_click(object sender, EventArgs e) Form2 fr = new Form2();

More information

CSE 660 Lab 7. Submitted by: Arumugam Thendramil Pavai. 1)Simple Remote Calculator. Server is created using ServerSocket class of java. Server.

CSE 660 Lab 7. Submitted by: Arumugam Thendramil Pavai. 1)Simple Remote Calculator. Server is created using ServerSocket class of java. Server. CSE 660 Lab 7 Submitted by: Arumugam Thendramil Pavai 1)Simple Remote Calculator Server is created using ServerSocket class of java Server.java import java.io.ioexception; import java.net.serversocket;

More information

SMAATSDK. NFC MODULE ON ANDROID REQUIREMENTS AND DOCUMENTATION RELEASE v1.0

SMAATSDK. NFC MODULE ON ANDROID REQUIREMENTS AND DOCUMENTATION RELEASE v1.0 SMAATSDK NFC MODULE ON ANDROID REQUIREMENTS AND DOCUMENTATION RELEASE v1.0 NFC Module on Android Requirements and Documentation Table of contents Scope...3 Purpose...3 General operating diagram...3 Functions

More information

Q.1 Explain the dialog and also explain the Demonstrate working dialog in android.

Q.1 Explain the dialog and also explain the Demonstrate working dialog in android. Q.1 Explain the dialog and also explain the Demonstrate working dialog in android. - A dialog is a small window that prompts the user to make a decision or enter additional information. - A dialog does

More information

TUTOR FINDER APP REPORT OF MAJOR PROJECT SUBMITTED FOR PARTIAL FULFILLMENT OF THE REQUIREMENT FOR THE DEGREE OF MASTERS OF COMPUTER APPLICATION

TUTOR FINDER APP REPORT OF MAJOR PROJECT SUBMITTED FOR PARTIAL FULFILLMENT OF THE REQUIREMENT FOR THE DEGREE OF MASTERS OF COMPUTER APPLICATION TUTOR FINDER APP REPORT OF MAJOR PROJECT SUBMITTED FOR PARTIAL FULFILLMENT OF THE REQUIREMENT FOR THE DEGREE OF MASTERS OF COMPUTER APPLICATION BISHAL MANDAL REGISTRATION NO: 151170510014 of 2015-2016

More information

MAD ASSIGNMENT NO 2. Submitted by: Rehan Asghar BSSE AUGUST 25, SUBMITTED TO: SIR WAQAS ASGHAR Superior CS&IT Dept.

MAD ASSIGNMENT NO 2. Submitted by: Rehan Asghar BSSE AUGUST 25, SUBMITTED TO: SIR WAQAS ASGHAR Superior CS&IT Dept. MAD ASSIGNMENT NO 2 Submitted by: Rehan Asghar BSSE 7 15126 AUGUST 25, 2017 SUBMITTED TO: SIR WAQAS ASGHAR Superior CS&IT Dept. Android Widgets There are given a lot of android widgets with simplified

More information

DAFTAR RIWAYAT HIDUP

DAFTAR RIWAYAT HIDUP DAFTAR RIWAYAT HIDUP NAMA LENGKAP : RITA SIBURIAN NIM : 0613 4035 1629 TEMPAT TANGGAL LAHIR : PALEMBANG, 28 JANUAR 1995 ALAMAT : JL. TAPAK LEBAR II RT.008 KEL.SIDOREJO KEC. LUBUKLINGGAU BARAT II TELEPON

More information

Android Apps Development for Mobile and Tablet Device (Level I) Lesson 2

Android Apps Development for Mobile and Tablet Device (Level I) Lesson 2 Workshop 1. Compare different layout by using Change Layout button (Page 1 5) Relative Layout Linear Layout (Horizontal) Linear Layout (Vertical) Frame Layout 2. Revision on basic programming skill - control

More information

Android/Java Lightning Tutorial JULY 30, 2018

Android/Java Lightning Tutorial JULY 30, 2018 Android/Java Lightning Tutorial JULY 30, 2018 Java Android uses java as primary language Resource : https://github.mit.edu/6178-2017/lec1 Online Tutorial : https://docs.oracle.com/javase/tutorial/java/nutsandbolts/inde

More information

Android Dialogs. Dialogs are simple visual objects that pop up and display a message or prompt for some user input.

Android Dialogs. Dialogs are simple visual objects that pop up and display a message or prompt for some user input. Android Dialogs Dialogs are simple visual objects that pop up and display a message or prompt for some user input. Create a new Android project with a suitable name and package. To begin with it will have

More information

<uses-permission android:name="android.permission.internet"/>

<uses-permission android:name=android.permission.internet/> Chapter 11 Playing Video 11.1 Introduction We have discussed how to play audio in Chapter 9 using the class MediaPlayer. This class can also play video clips. In fact, the Android multimedia framework

More information

Lampiran Program : Res - Layout Activity_main.xml

More information

M.A.D Assignment # 1

M.A.D Assignment # 1 Submitted by: Rehan Asghar Roll no: BSSE (7) 15126 M.A.D Assignment # 1 Submitted to: Sir Waqas Asghar Submitted by: M. Rehan Asghar 4/25/17 Roll no: BSSE 7 15126 XML Code: Calculator Android App

More information

Data Persistence. Chapter 10

Data Persistence. Chapter 10 Chapter 10 Data Persistence When applications create or capture data from user inputs, those data will only be available during the lifetime of the application. You only have access to that data as long

More information

Android Coding. Dr. J.P.E. Hodgson. August 23, Dr. J.P.E. Hodgson () Android Coding August 23, / 27

Android Coding. Dr. J.P.E. Hodgson. August 23, Dr. J.P.E. Hodgson () Android Coding August 23, / 27 Android Coding Dr. J.P.E. Hodgson August 23, 2010 Dr. J.P.E. Hodgson () Android Coding August 23, 2010 1 / 27 Outline Starting a Project 1 Starting a Project 2 Making Buttons Dr. J.P.E. Hodgson () Android

More information

ANDROID PROGRAMS DAY 3

ANDROID PROGRAMS DAY 3 ANDROID PROGRAMS DAY 3 //Android project to navigate from first page to second page using Intent Step 1: Create a new project Step 2: Enter necessary details while creating project. Step 3: Drag and drop

More information

LISTING PROGRAM. % UIWAIT makes pertama wait for user response (see UIRESUME) % uiwait(handles.figure1);

LISTING PROGRAM. % UIWAIT makes pertama wait for user response (see UIRESUME) % uiwait(handles.figure1); LISTING PROGRAM FORM PERTAMA : function varargout = pertama(varargin) gui_singleton = 1; gui_state = struct('gui_name', mfilename,... 'gui_singleton', gui_singleton,... 'gui_openingfcn', @pertama_openingfcn,...

More information

Tabel mysql. Kode di PHP. Config.php. Service.php

Tabel mysql. Kode di PHP. Config.php. Service.php Tabel mysql Kode di PHP Config.php Service.php Layout Kode di Main Activity package com.example.mini.webandroid; import android.app.progressdialog; import android.os.asynctask; import android.support.v7.app.appcompatactivity;

More information

Intents. Your first app assignment

Intents. Your first app assignment Intents Your first app assignment We will make this. Decidedly lackluster. Java Code Java Code XML XML Preview XML Java Code Java Code XML Buttons that work

More information

ITU- FAO- DOA- TRCSL. Training on. Innovation & Application Development for E- Agriculture. Shared Preferences

ITU- FAO- DOA- TRCSL. Training on. Innovation & Application Development for E- Agriculture. Shared Preferences ITU- FAO- DOA- TRCSL Training on Innovation & Application Development for E- Agriculture Shared Preferences 11 th - 15 th December 2017 Peradeniya, Sri Lanka Shahryar Khan & Imran Tanveer, ITU Experts

More information

Appendix A : Android Studio Code For Android

Appendix A : Android Studio Code For Android Appendix A : Android Studio Code For Android Monitoring : ` public Pubnub pubnub; public static final String PUBLISH_KEY = "pub-c-798bd0f6-540b-48af-9e98-7d0028a5132a"; public static final String SUBSCRIBE_KEY

More information

A-1 LAMPIRAN A LISTING PROGRAM. Kode Program Form Main: Universitas Sumatera Utara

A-1 LAMPIRAN A LISTING PROGRAM. Kode Program Form Main: Universitas Sumatera Utara A-1 LAMPIRAN A A LISTING PROGRAM Kode Program Form Main: #Region Project Attributes #ApplicationLabel: Samuel Panjaitan #VersionCode: 1 #VersionName: #SupportedOrientations: portrait #CanInstallToExternalStorage:

More information

Android Programs Day 5

Android Programs Day 5 Android Programs Day 5 //Android Program to demonstrate the working of Options Menu. 1. Create a New Project. 2. Write the necessary codes in the MainActivity.java to create OptionMenu. 3. Add the oncreateoptionsmenu()

More information

Workshop. 1. Create a simple Intent (Page 1 2) Launch a Camera for Photo Taking

Workshop. 1. Create a simple Intent (Page 1 2) Launch a Camera for Photo Taking Workshop 1. Create a simple Intent (Page 1 2) Launch a Camera for Photo Taking 2. Create Intent with Parsing Data (Page 3 8) Making Phone Call and Dial Access Web Content Playing YouTube Video 3. Create

More information

Android File & Storage

Android File & Storage Files Lecture 9 Android File & Storage Android can read/write files from two locations: Internal (built into the device) and external (an SD card or other drive attached to device) storage Both are persistent

More information

Online Learning Application

Online Learning Application Online Learning Application Objective: It s a known fact that the Average screen sizes of our phones is increasing, thereby encouraging many to read and learn on the move. Keeping this trend in mind, you

More information

LISTING PROGRAM. 1. Module SkripsiUmri.py. import sys, operator, codecs, time. class Timer(object): def init (self): self.t1= time.

LISTING PROGRAM. 1. Module SkripsiUmri.py. import sys, operator, codecs, time. class Timer(object): def init (self): self.t1= time. A1 LISTING PROGRAM 1. Module SkripsiUmri.py import sys, operator, codecs, time class Timer(object): def init (self): self.t1= time.time() def getelapsedltime(self): # gets total elapsed from class initialsation

More information

A-1. Listing Program. CariKata.java. package com.indah.kmp;

A-1. Listing Program. CariKata.java. package com.indah.kmp; A-1 Listing Program CariKata.java package com.indah.kmp; import java.io.bufferedreader; import java.io.file; import java.io.filenotfoundexception; import java.io.filereader; import java.io.ioexception;

More information

TextView Control. EditText Control. TextView Attributes. android:id - This is the ID which uniquely identifies the control.

TextView Control. EditText Control. TextView Attributes. android:id - This is the ID which uniquely identifies the control. A TextView displays text to the user. TextView Attributes TextView Control android:id - This is the ID which uniquely identifies the control. android:capitalize - If set, specifies that this TextView has

More information

Android Hide Title Bar Example. Android Screen Orientation Example

Android Hide Title Bar Example. Android Screen Orientation Example igap Technologies 1 if(!activitycompat.shouldshowrequestpermissionrationale(this, Manifest.permission.READ_CONTACTS)) { ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.READ_CONTACTS,

More information

Android Apps Development for Mobile and Tablet Device (Level I) Lesson 4. Workshop

Android Apps Development for Mobile and Tablet Device (Level I) Lesson 4. Workshop Workshop 1. Create an Option Menu, and convert it into Action Bar (Page 1 8) Create an simple Option Menu Convert Option Menu into Action Bar Create Event Listener for Menu and Action Bar Add System Icon

More information

Create a local SQL database hosting a CUSTOMER table. Each customer includes [id, name, phone]. Do the work inside Threads and Asynctasks.

Create a local SQL database hosting a CUSTOMER table. Each customer includes [id, name, phone]. Do the work inside Threads and Asynctasks. CIS 470 Lesson 13 Databases - Quick Notes Create a local SQL database hosting a CUSTOMER table. Each customer includes [id, name, phone]. Do the work inside Threads and Asynctasks. package csu.matos; import

More information

else if(rb2.ischecked()) {

else if(rb2.ischecked()) { Problem :Toy Calculator Description:Please design an Android application that contains 2 activities: cal_main and cal_result. The following figure is a suggested layout for the cal_main activity. For the

More information

Accelerating Information Technology Innovation

Accelerating Information Technology Innovation Accelerating Information Technology Innovation http://aiti.mit.edu India Summer 2012 Review Session Android and Web Working with Views Working with Views Create a new Android project. The app name should

More information

shared objects monitors run() Runnable start()

shared objects monitors run() Runnable start() Thread Lecture 18 Threads A thread is a smallest unit of execution Each thread has its own call stack for methods being invoked, their arguments and local variables. Each virtual machine instance has at

More information

Arrays of Buttons. Inside Android

Arrays of Buttons. Inside Android Arrays of Buttons Inside Android The Complete Code Listing. Be careful about cutting and pasting.

More information

package import import import import import import import public class extends public void super new this class extends public super public void new

package import import import import import import import public class extends public void super new this class extends public super public void new Android 2-D Drawing Android uses a Canvas object to host its 2-D drawing methods. The program below draws a blue circle on a white canvas. It does not make use of the main.xml layout but draws directly

More information

B9: Việc cuối cùng cần làm là viết lại Activity. Tới Example.java và chỉnh sửa theo nội dung sau: Mã: package at.exam;

B9: Việc cuối cùng cần làm là viết lại Activity. Tới Example.java và chỉnh sửa theo nội dung sau: Mã: package at.exam; B9: Việc cuối cùng cần làm là viết lại Activity. Tới Example.java và chỉnh sửa theo nội dung sau: Mã: package at.exam; import java.util.arraylist; import android.app.activity; import android.app.alertdialog;

More information

LAMPIRAN PROGRAM. public class Listdata_adiktif extends ArrayAdapter<ModelData_adiktif> {

LAMPIRAN PROGRAM. public class Listdata_adiktif extends ArrayAdapter<ModelData_adiktif> { 1 LAMPIRAN PROGRAM JAVA Listdata_adiktif.java package com.example.win.api.adapter; import android.content.context; import android.support.annotation.nonnull; import android.view.layoutinflater; import

More information

Lecture 7: Data Persistence : shared preferences. Lecturer : Ali Kadhim Al-Bermani Mobile Fundamentals and Programming

Lecture 7: Data Persistence : shared preferences. Lecturer : Ali Kadhim Al-Bermani Mobile Fundamentals and Programming University of Babylon College of Information Technology Department of Information Networks Mobile Fundamentals and Programming Lecture 7: Data Persistence : shared preferences Lecturer : Ali Kadhim Al-Bermani

More information

Manifest.xml. Activity.java

Manifest.xml. Activity.java Dr.K.Somasundaram Ph.D Professor Department of Computer Science and Applications Gandhigram Rural Institute, Gandhigram, Tamil Nadu-624302, India ka.somasundaram@gmail.com Manifest.xml

More information

POCKET STUDY. Divyam Kumar Mishra, Mrinmoy Kumar Das Saurav Singh, Prince Kumar

POCKET STUDY. Divyam Kumar Mishra, Mrinmoy Kumar Das Saurav Singh, Prince Kumar POCKET STUDY Divyam Kumar Mishra, Mrinmoy Kumar Das Saurav Singh, Prince Kumar 1 Under Graduate Student, Department of Computer Science and Engineering, SRM University, Chennai, India 2 Under Graduate

More information

Android CardView Tutorial

Android CardView Tutorial Android CardView Tutorial by Kapil - Wednesday, April 13, 2016 http://www.androidtutorialpoint.com/material-design/android-cardview-tutorial/ YouTube Video We have already discussed about RecyclerView

More information

Mobile Programming Practice Background processing AsynTask Service Broadcast receiver Lab #5

Mobile Programming Practice Background processing AsynTask Service Broadcast receiver Lab #5 1 Mobile Programming Practice Background processing AsynTask Service Broadcast receiver Lab #5 Prof. Hwansoo Han T.A. Sung-in Hong T.A. Minseop Jeong 2 Background processing Every Android app has a main

More information

MVC Apps Basic Widget Lifecycle Logging Debugging Dialogs

MVC Apps Basic Widget Lifecycle Logging Debugging Dialogs Overview MVC Apps Basic Widget Lifecycle Logging Debugging Dialogs Lecture: MVC Model View Controller What is an App? Android Activity Lifecycle Android Debugging Fixing Rotations & Landscape Layouts Localization

More information

COMP61242: Task 3 1 2/05/18

COMP61242: Task 3 1 2/05/18 COMP61242: Task 3 1 2/05/18 1. Introduction University of Manchester School of Computer Science COMP61242: Mobile Communications Semester 2: 2017-18 Laboratory Task 3 Communicating with Android Smart-phones

More information

public AnimLayer(Context context, AttributeSet attrs, int defstyle) { super(context, attrs, defstyle); initlayer(); }

public AnimLayer(Context context, AttributeSet attrs, int defstyle) { super(context, attrs, defstyle); initlayer(); } AnimLayer.java package com.kyindo.game; import java.util.arraylist; import java.util.list; import android.content.context; import android.util.attributeset; import android.view.view; import android.view.animation.animation;

More information

// MainActivity.java ; Noah Spenser; Senior Design; Diabetic Breathalyzer

// MainActivity.java ; Noah Spenser; Senior Design; Diabetic Breathalyzer // MainActivity.java ; Noah Spenser; Senior Design; Diabetic Breathalyzer package com.noahspenser.seniordesign; import android.os.parcel; import android.os.parcelable; import android.support.v7.app.appcompatactivity;

More information

EMBEDDED SYSTEMS PROGRAMMING Application Tip: Switching UIs

EMBEDDED SYSTEMS PROGRAMMING Application Tip: Switching UIs EMBEDDED SYSTEMS PROGRAMMING 2015-16 Application Tip: Switching UIs THE PROBLEM How to switch from one UI to another Each UI is associated with a distinct class that controls it Solution shown: two UIs,

More information

An Implementation of RC4 + Algorithm and Zig-zag Algorithm in a Super Encryption Scheme for Text Security

An Implementation of RC4 + Algorithm and Zig-zag Algorithm in a Super Encryption Scheme for Text Security Journal of Physics: Conference Series PAPER OPEN ACCESS An Implementation of RC4 + Algorithm and Zig-zag Algorithm in a Super Encryption Scheme for Text Security To cite this article: M A Budiman et al

More information

A-1 LISTING PROGRAM. 1. Form1.cs. Universitas Sumatera Utara

A-1 LISTING PROGRAM. 1. Form1.cs. Universitas Sumatera Utara A-1 LISTING PROGRAM 1. Form1.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using IronPython.Hosting; using Microsoft.Scripting;

More information

PENGEMBANGAN APLIKASI PERANGKAT BERGERAK (MOBILE)

PENGEMBANGAN APLIKASI PERANGKAT BERGERAK (MOBILE) PENGEMBANGAN APLIKASI PERANGKAT BERGERAK (MOBILE) Network Connection Web Service K Candra Brata andra.course@gmail.com Mobille App Lab 2015-2016 Network Connection http://developer.android.com/training/basics/network-ops/connecting.html

More information

ABSTRACT. As technology improves, the world of mobile devices has been continuously

ABSTRACT. As technology improves, the world of mobile devices has been continuously ABSTRACT As technology improves, the world of mobile devices has been continuously progressing. Mobile devices are getting more powerful and functional, providing endless opportunities to create diverse

More information

Adaptation of materials: dr Tomasz Xięski. Based on presentations made available by Victor Matos, Cleveland State University.

Adaptation of materials: dr Tomasz Xięski. Based on presentations made available by Victor Matos, Cleveland State University. Creating dialogs Adaptation of materials: dr Tomasz Xięski. Based on presentations made available by Victor Matos, Cleveland State University. Portions of this page are reproduced from work created and

More information

Press project on the left toolbar if it doesn t show an overview of the app yet.

Press project on the left toolbar if it doesn t show an overview of the app yet. #3 Setting up the permissions needed to allow the app to use GPS. Okay! Press project on the left toolbar if it doesn t show an overview of the app yet. In this project plane, we will navigate to the manifests

More information

COMP61242: Task /04/18

COMP61242: Task /04/18 COMP61242: Task 2 1 16/04/18 1. Introduction University of Manchester School of Computer Science COMP61242: Mobile Communications Semester 2: 2017-18 Laboratory Task 2 Messaging with Android Smartphones

More information

Create Parent Activity and pass its information to Child Activity using Intents.

Create Parent Activity and pass its information to Child Activity using Intents. Create Parent Activity and pass its information to Child Activity using Intents. /* MainActivity.java */ package com.example.first; import android.os.bundle; import android.app.activity; import android.view.menu;

More information

LISTING PROGRAM. mainform.vb A-1. Universitas Sumatera Utara

LISTING PROGRAM. mainform.vb A-1. Universitas Sumatera Utara A-1 LISTING PROGRAM mainform.vb Imports System.IO Public Class mainform Private Sub mainform_load(byval sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load enkripsirb.checked = True

More information

LAMPIRAN. public class MainActivity extends AppCompatActivity {

LAMPIRAN. public class MainActivity extends AppCompatActivity { LAMPIRAN 1. Coding MainActivity public class MainActivity extends AppCompatActivity { protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); this.requestwindowfeature(window.feature_no_title);

More information

Writing and reading files

Writing and reading files Writing and reading files Adaptation of materials: dr Tomasz Xięski. Based on presentations made available by Victor Matos, Cleveland State University. Portions of this page are reproduced from work created

More information

EMBEDDED SYSTEMS PROGRAMMING UI Specification: Approaches

EMBEDDED SYSTEMS PROGRAMMING UI Specification: Approaches EMBEDDED SYSTEMS PROGRAMMING 2016-17 UI Specification: Approaches UIS: APPROACHES Programmatic approach: UI elements are created inside the application code Declarative approach: UI elements are listed

More information

API Guide for Gesture Recognition Engine. Version 2.0

API Guide for Gesture Recognition Engine. Version 2.0 API Guide for Gesture Recognition Engine Version 2.0 Table of Contents Gesture Recognition API... 3 API URI... 3 Communication Protocol... 3 Getting Started... 4 Protobuf... 4 WebSocket Library... 4 Project

More information

EMBEDDED SYSTEMS PROGRAMMING Application Tip: Saving State

EMBEDDED SYSTEMS PROGRAMMING Application Tip: Saving State EMBEDDED SYSTEMS PROGRAMMING 2016-17 Application Tip: Saving State THE PROBLEM How to save the state (of a UI, for instance) so that it survives even when the application is closed/killed The state should

More information

FRAGMENTS.

FRAGMENTS. Fragments 69 FRAGMENTS In the previous section you learned what an activity is and how to use it. In a small-screen device (such as a smartphone), an activity typically fi lls the entire screen, displaying

More information

Database Development In Android Applications

Database Development In Android Applications ITU- FAO- DOA- TRCSL Training on Innovation & Application Development for E- Agriculture Database Development In Android Applications 11 th - 15 th December 2017 Peradeniya, Sri Lanka Shahryar Khan & Imran

More information

Autonomous Configuration UI

Autonomous Configuration UI Autonomous Configuration UI The Autonomous Configuration tool is an Android app developed by Team 4106 to configure the robot s autonomous settings on the fly. Using the apps removes the need to recompile

More information

Nadar Saraswathi College of Engineering and Technology, Nadar Saraswathi College of Engineering and Technology,

Nadar Saraswathi College of Engineering and Technology, Nadar Saraswathi College of Engineering and Technology, Nadar Saraswathi College of Engineering and Technology, DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING CS6611 MOBILE APPLICATION DEVELOPMENT LAB MANUAL (R-2017) Lab Manual Prepared By : Mr. R. Udhaya Kumar,

More information

Android SQLite Database Tutorial - CRUD Operations

Android SQLite Database Tutorial - CRUD Operations Android SQLite Database Tutorial - CRUD Operations by Kapil - Monday, March 21, 2016 http://www.androidtutorialpoint.com/storage/android-sqlite-database-tutorial/ YouTube Video Android SQLite Introduction

More information

Android Beginners Workshop

Android Beginners Workshop Android Beginners Workshop at the M O B IL E M O N D AY m 2 d 2 D E V E L O P E R D A Y February, 23 th 2010 Sven Woltmann, AndroidPIT Sven Woltmann Studied Computer Science at the TU Ilmenau, 1994-1999

More information

Islamic University of Gaza. Faculty of Engineering. Computer Engineering Department. Mobile Computing ECOM Eng. Wafaa Audah.

Islamic University of Gaza. Faculty of Engineering. Computer Engineering Department. Mobile Computing ECOM Eng. Wafaa Audah. Islamic University of Gaza Faculty of Engineering Computer Engineering Department Mobile Computing ECOM 5341 By Eng. Wafaa Audah July 2013 1 Launch activitits, implicit intents, data passing & start activity

More information

Fragment Example Create the following files and test the application on emulator or device.

Fragment Example Create the following files and test the application on emulator or device. Fragment Example Create the following files and test the application on emulator or device. File: AndroidManifest.xml

More information

Android - JSON Parser Tutorial

Android - JSON Parser Tutorial Android - JSON Parser Tutorial JSON stands for JavaScript Object Notation.It is an independent data exchange format and is the best alternative for XML. This chapter explains how to parse the JSON file

More information

LISTING PROGRAM. a = b; b = c; c = a + b; } fibs.reverse(); for (int i = 0; i < fibs.count; i++) { if (n >= fibs[i]) { n = n - fibs[i];

LISTING PROGRAM. a = b; b = c; c = a + b; } fibs.reverse(); for (int i = 0; i < fibs.count; i++) { if (n >= fibs[i]) { n = n - fibs[i]; A-1 A LISTING PROGRAM 1. Fibonacci Code //membuat fungsi Fibonacci Code public static String GetFibonacciCode(int n) { StringBuilder fib = new StringBuilder("1"); int a, b, c; List fibs = new List();

More information

Dinabandhu Andrews Institute of Technology & Management. Affiliated to : Maulana Abul Kalam Azad University of Technology

Dinabandhu Andrews Institute of Technology & Management. Affiliated to : Maulana Abul Kalam Azad University of Technology Dinabandhu Andrews Institute of Technology & Management Affiliated to : Maulana Abul Kalam Azad University of Technology 1 STUDENT MANAGEMENT SYSTEM Presented by: Nilotpal Bose Sayantika Roy Subhojit Kundu

More information

Mobile Programming Lecture 7. Dialogs, Menus, and SharedPreferences

Mobile Programming Lecture 7. Dialogs, Menus, and SharedPreferences Mobile Programming Lecture 7 Dialogs, Menus, and SharedPreferences Agenda Dialogs Menus SharedPreferences Android Application Components 1. Activity 2. Broadcast Receiver 3. Content Provider 4. Service

More information

Practical 1.ListView example

Practical 1.ListView example Practical 1.ListView example In this example, we show you how to display a list of fruit name via ListView. Android Layout file File : res/layout/list_fruit.xml

More information

1. Simple List. 1.1 Simple List using simple_list_item_1

1. Simple List. 1.1 Simple List using simple_list_item_1 1. Simple List 1.1 Simple List using simple_list_item_1 1. Create the Android application with the following attributes. Application Name: MySimpleList Project Name: Package Name: MySimpleList com.example.mysimplelist

More information

Android Intents. Notes are based on: Android Developers

Android Intents. Notes are based on: Android Developers Android Notes are based on: Android Developers http://developer.android.com/index.html 12. Android Android Activities An Android application could include any number of activities. An activity uses the

More information

1. Location Services. 1.1 GPS Location. 1. Create the Android application with the following attributes. Application Name: MyLocation

1. Location Services. 1.1 GPS Location. 1. Create the Android application with the following attributes. Application Name: MyLocation 1. Location Services 1.1 GPS Location 1. Create the Android application with the following attributes. Application Name: MyLocation Project Name: Package Name: MyLocation com.example.mylocation 2. Put

More information

Android Workshop: Model View Controller ( MVC):

Android Workshop: Model View Controller ( MVC): Android Workshop: Android Details: Android is framework that provides java programmers the ability to control different aspects of smart devices. This interaction happens through the Android SDK (Software

More information

Eng. Jaffer M. El-Agha Android Programing Discussion Islamic University of Gaza. Data persistence

Eng. Jaffer M. El-Agha Android Programing Discussion Islamic University of Gaza. Data persistence Eng. Jaffer M. El-Agha Android Programing Discussion Islamic University of Gaza Data persistence Shared preferences A method to store primitive data in android as key-value pairs, these saved data will

More information

Software Practice 3 Today s lecture Today s Task Porting Android App. in real device

Software Practice 3 Today s lecture Today s Task Porting Android App. in real device 1 Software Practice 3 Today s lecture Today s Task Porting Android App. in real device Prof. Hwansoo Han T.A. Jeonghwan Park 43 INTENT 2 3 Android Intent An abstract description of a message Request actions

More information

Applied Cognitive Computing Fall 2016 Android Application + IBM Bluemix (Cloudant NoSQL DB)

Applied Cognitive Computing Fall 2016 Android Application + IBM Bluemix (Cloudant NoSQL DB) Applied Cognitive Computing Fall 2016 Android Application + IBM Bluemix (Cloudant NoSQL DB) In this exercise, we will create a simple Android application that uses IBM Bluemix Cloudant NoSQL DB. The application

More information

LISTING PROGRAM. 1. Tampilan Awal. 2. Menu Login. Public Class Awal

LISTING PROGRAM. 1. Tampilan Awal. 2. Menu Login. Public Class Awal LISTING PROGRAM 1. Tampilan Awal Public Class Awal Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick ProgressBar1.Increment(10) If ProgressBar1.Value

More information

Android Apps Development for Mobile Game Lesson 5

Android Apps Development for Mobile Game Lesson 5 Workshop 1. Create a simple Environment Sensors (Page 1 6) Pressure Sensor Ambient Temperature Sensor Light Sensor Relative Humidity Sensor 2. Create a simple Position Sensors (Page 7 8) Proximity Sensor

More information