LISTING CODE A-1. Indo_to_jawa_Fragments.java. package studio.arti.kamusjawaindonesia;
|
|
- Austin Chase
- 6 years ago
- Views:
Transcription
1 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; import android.database.sqlite.sqliteopenhelper; import android.os.bundle; import android.support.design.widget.floatingactionbutton; import android.support.v4.app.fragment; import android.support.v7.app.alertdialog; import android.text.html; import android.view.layoutinflater; import android.view.view; import android.view.viewgroup; import android.widget.edittext; import android.widget.imagebutton; import android.widget.listview; import java.util.arraylist; import java.util.list; public class Indo_to_Jawa_fragment extends Fragment { View view; private ImageButton bt_cari; private EditText et_cari; private List<Hasil> hasillist = new ArrayList<Hasil>(); private ListView listview; private CustomListAdapter adapter; String kata;//kata yg di inputkan int jumlah = 0;//hitung jumlah string ditemukan double waktu = 0; double waktuawal=0, waktuakhir =0; public Indo_to_Jawa_fragment() { public void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); public View oncreateview(layoutinflater inflater, ViewGroup container, Bundle savedinstancestate) { view = inflater.inflate(r.layout.indo_to_jawa_tab_layout, container, false); et_cari = (EditText) view.findviewbyid(r.id.txt_indo_jawa); bt_cari = (ImageButton) view.findviewbyid(r.id.imb_cari_indo_jawa); bt_cari.setonclicklistener(new View.OnClickListener() {
2 public void onclick(view v) { String pattern = et_cari.gettext().tostring(); kata = pattern; waktuawal = System.currentTimeMillis(); ReadDB(pattern); waktuakhir = System.currentTimeMillis(); waktu = (waktuakhir - waktuawal); ); FloatingActionButton fab = (FloatingActionButton) view.findviewbyid(r.id.fab); fab.setonclicklistener(new View.OnClickListener() { public void onclick(view view) { MunculHasil(kata, jumlah, waktu); ); listview = (ListView) view.findviewbyid(r.id.lv_hasil); adapter = new CustomListAdapter(inflater, hasillist); listview.setadapter(adapter); return view; public void MunculHasil(String getkata, int getjumah, double getwaktu) { AlertDialog dialog = new AlertDialog.Builder(getActivity()).setTitle("Hasil Pencarian").setMessage(Html.fromHtml( "<b>" + "Karp Rabin" + "</b>" + "<br/>kata/string : " + getkata + "<br/>jumlah : " + getjumah + "<br/>waktu : " + getwaktu + ms")).setpositivebutton("ok", new DialogInterface.OnClickListener() { public void onclick(dialoginterface dialog, int which) { dialog.dismiss(); ).create(); dialog.show(); public void ReadDB(String getpattern) { String pattern = getpattern; SQLiteOpenHelper helper = new DatabaseOpenHelper(getContext()); //DbHelper helper = new DbHelper(getContext()); SQLiteDatabase db; db = helper.getreadabledatabase(); Cursor cursor = null; hasillist.clear(); jumlah = 0; cursor = db.rawquery("select * FROM tabel_kamus_jawa ORDER BY indonesia; ", null); if (cursor!= null) { A-2
3 cursor.movetofirst(); do { // pengisian list try { String ngoko = cursor.getstring(1); String madya = cursor.getstring(2); String inggil = cursor.getstring(3); String indo = cursor.getstring(4); A-3 KR_start(pattern, indo, ngoko, madya, inggil); catch (Exception e) { while (cursor.movetonext()); db.close(); listview.setadapter(adapter); // Algoritma nya static String txt; // text tersedia static String pat;//pattern - yg maudi cari static char[] x; // static char[] y; // static int n; // static int m; // static String ngoko; static String madya; static String inggil; public void KR_start(String pat, String txt, String ngoko, String madya, String inggil) { this.txt = txt; this.pat = pat; this.ngoko = ngoko; this.madya = madya; this.inggil = inggil; x = pat.tochararray();//conversi string suapaya ke char array y = txt.tochararray(); n = txt.length();//panjnga txt m = pat.length();//pnjang yg di cari KR(); //end void kr start public static int REHASH(int a, int b, int d, int h) { return ((((h) - (a) * d) << 1) + (b)); public void KR() { int hx = 0, hy = 0, B = 3; int d, i, j; for (d = i = 1; i < m; ++i) d = (d << 1); // d<<1 == d*2 (2 ^ m-1) = 2^8-1 = 128. nilai d untuk cari pergeseran nya for (hx = hy = i = 0; i < m; i++) { int tempc1 = (x[i] * (int) (Math.pow(B, (m - (i + 1))))); hx = hx + tempc1; int tempc2 = (y[i] * (int) (Math.pow(B, (m - (i + 1))))); hy = hy + tempc2;
4 /* Searching */ j = 0; while (j <= n - m) { if (hx == hy && memcmp(x,y,j,m)==0){ Hasil h = new Hasil(); h.setngoko(ngoko); h.setmadya(madya); h.setinggil(inggil); h.setindo(txt); h.setpat(pat); h.setpos(j); hasillist.add(h); jumlah++; A-4 try { //hy = REHASH(y[j], y[j + m], d, hy);//remove terkiri hy = ((( (hy) - (y[j]) * d) << 1)+(y[j + m])); catch (Exception e) { ++j; //end while //end kr public static int memcmp(char[] x2, char[] y2, int sj, int sz) { for (int i = 0; i < sz; i++) { if (x2[i]!= y2[i + sj]) { if ((x2[i] >= 0 && y2[i + sj] >= 0) (x2[i] < 0 && y2[i + sj] < 0)) return x2[i] - y2[i]; if (x2[i] < 0 && y2[i + sj] >= 0) return 1; if (y2[i + sj] < 0 && x2[i] >= 0) return -1; //end for return 0; //end mmcmp //end fragments Jawa_to_indo_Fragments.java package studio.arti.kamusjawaindonesia; import android.content.dialoginterface; import android.database.cursor; import android.database.sqlite.sqlitedatabase; import android.database.sqlite.sqliteopenhelper; import android.os.bundle; import android.support.design.widget.floatingactionbutton; import android.support.v4.app.fragment; import android.support.v7.app.alertdialog; import android.text.html; import android.view.layoutinflater; import android.view.view; import android.view.viewgroup; import android.widget.edittext;
5 import android.widget.imagebutton; import android.widget.listview; import java.util.arraylist; import java.util.list; A-5 public class Jawa_to_Indo_fragment extends Fragment { View view; private ImageButton bt_cari; private EditText et_cari; private List<Hasil> hasillist = new ArrayList<Hasil>(); private ListView listview; private CustomListAdapter2 adapter; String kata; int jumlah = 0; double waktu = 0; double waktuawal = 0, waktuakhir = 0; public Jawa_to_Indo_fragment() { // Required empty public constructor public void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); public View oncreateview(layoutinflater inflater, ViewGroup container, Bundle savedinstancestate) { view = inflater.inflate(r.layout.jawa_to_indo_tab_layout, container, false); et_cari = (EditText) view.findviewbyid(r.id.txt_jawa_indo); bt_cari = (ImageButton) view.findviewbyid(r.id.imb_cari_jawa_indo); bt_cari.setonclicklistener(new View.OnClickListener() { public void onclick(view v) { String pattern = et_cari.gettext().tostring(); kata = pattern; waktuawal = System.currentTimeMillis(); ReadDB(pattern); waktuakhir = System.currentTimeMillis(); waktu = (waktuakhir - waktuawal); ); FloatingActionButton fab = (FloatingActionButton) view.findviewbyid(r.id.fab); fab.setonclicklistener(new View.OnClickListener() { public void onclick(view view) { MunculHasil(kata, jumlah, waktu); ); listview = (ListView) view.findviewbyid(r.id.lv_hasil); adapter = new CustomListAdapter2(inflater, hasillist); listview.setadapter(adapter); return view;
6 public void MunculHasil(String getkata, int getjumah, double getwaktu) { AlertDialog dialog = new AlertDialog.Builder(getActivity()).setTitle("Hasil Pencarian").setMessage(Html.fromHtml( "<b>" + "Karp Rabin" + "</b>" + "<br/>kata/string : " + getkata + "<br/>jumlah : " + getjumah + "<br/>waktu : " + getwaktu + " ms")) A-6.setPositiveButton("OK", new DialogInterface.OnClickListener() { public void onclick(dialoginterface dialog, int which) { dialog.dismiss(); ).create(); dialog.show(); public void ReadDB(String getpattern) { String pattern = getpattern; SQLiteOpenHelper helper = new DatabaseOpenHelper(getContext()); //DbHelper helper = new DbHelper(getContext()); SQLiteDatabase db; db = helper.getreadabledatabase(); Cursor cursor = null; hasillist.clear(); jumlah = 0; cursor = db.rawquery("select * FROM tabel_kamus_jawa ; ", null); if (cursor!= null) { cursor.movetofirst(); do { // pengisian list try { String ngoko = cursor.getstring(1); String madya = cursor.getstring(2); String inggil = cursor.getstring(3); String indo = cursor.getstring(4); KR_start(pattern, ngoko, indo); KR_start(pattern, madya, indo); KR_start(pattern, inggil, indo); catch (Exception e) { //Toast.makeText(getContext(), "DB Belum tersedia!!", Toast.LENGTH_SHORT).show(); while (cursor.movetonext());
7 db.close(); listview.setadapter(adapter); A-7 // Algoritma nya static String txt; // text tersedia static String pat;//pattern - yg maudi cari static char[] x;// static char[] y;// static int n;// static int m;// static String ngoko; static String madya; static String inggil; static String indo; public void KR_start(String pat, String txt, String indo) { this.txt = txt; this.pat = pat; this.indo = indo; x = pat.tochararray();//conversi string suapaya ke char array y = txt.tochararray(); n = txt.length();//panjnga txt m = pat.length();//pnjang yg di cari KR(); public static int REHASH(int a, int b, int d, int h) { return ((((h) - (a) * d) << 1) + (b)); public void KR() { int hx = 0, hy = 0, B = 3; int d, i, j; for (d = i = 1; i < m; ++i) d = (d << 1); for (hx = hy = i = 0; i < m; i++) { int tempc1 = (x[i] * (int) (Math.pow(B, (m - (i + 1))))); hx = hx + tempc1; int tempc2 = (y[i] * (int) (Math.pow(B, (m - (i + 1))))); hy = hy + tempc2; /* Searching */ j = 0; while (j <= n - m) { if (hx == hy && memcmp(x,y,j,m)==0) { Hasil h = new Hasil(); h.setngoko(txt); h.setindo(indo); h.setpat(pat); h.setpos(j); hasillist.add(h); jumlah++; try { //hy = REHASH(y[j], y[j + m], d, hy);//remove terkiri hy = ((( (hy) - (y[j]) * d) << 1)+(y[j + m]));
8 catch (Exception e) { ++j; //end while //end public void KR A-8 public static int memcmp(char[] x2, char[] y2, int sj, int sz) { for (int i = 0; i < sz; i++) { if (x2[i]!= y2[i + sj]) { if ((x2[i] >= 0 && y2[i + sj] >= 0) (x2[i] < 0 && y2[i + sj] < 0)) return x2[i] - y2[i]; if (x2[i] < 0 && y2[i + sj] >= 0) return 1; if (y2[i + sj] < 0 && x2[i] >= 0) return -1; return 0; //end public class fragments
9 B-1 Tabel ASCII Ascii Code Symbol Name 48 0 (number zero) 49 1 (number one) 50 2 (number two) 51 3 (number three) 52 4 (number four) 53 5 (number five) 54 6 (number six) 55 7 (number seven) 56 8 (number eight) 57 9 (number nine) 65 A (Capital A ) 66 B (Capital B ) 67 C (Capital C ) 68 D (Capital D ) 69 E (Capital E ) 70 F (Capital F ) 71 G (Capital G ) 72 H (Capital H ) 73 I (Capital I ) 74 J (Capital J ) 75 K (Capital K ) 76 L (Capital L ) 77 M (Capital M ) 78 N (Capital N ) 79 O (Capital O ) 80 P (Capital P ) 81 Q (Capital Q ) 82 R (Capital R ) 83 S (Capital S ) 84 T (Capital T ) 85 U (Capital U ) 86 V (Capital V ) 87 W (Capital W ) 88 X (Capital X ) 89 Y (Capital Y )
10 B-2 90 Z (Capital Z ) 97 a (Lowercase a ) 98 b (Lowercase b ) 99 c (Lowercase c ) 100 d (Lowercase d ) 101 e (Lowercase e ) 102 f (Lowercase f ) 103 g (Lowercase g ) 104 h (Lowercase h ) 105 i (Lowercase i ) 106 j (Lowercase j ) 107 k (Lowercase k ) 108 l (Lowercase l ) 109 m (Lowercase m ) 110 n (Lowercase n ) 111 o (Lowercase o ) 112 p (Lowercase p ) 113 q (Lowercase q ) 114 r (Lowercase r ) 115 s (Lowercase s ) 116 t (Lowercase t ) 117 u (Lowercase u ) 118 v (Lowercase v ) 119 w (Lowercase w ) 120 x (Lowercase x ) 121 y (Lowercase y ) 122 z (Lowercase z ) 44, (Coma) 32 (Space) 90 Z (Capital Z ) Sumber: ascii.cl
11 C-1 Curriculum Vitae Arif Setiawan Mobile: I. Personal Identification Full Name : Arif Setiawan Nick Name : Arif Place / Date of Birth : Banda Aceh / October, 10 th 1994 Sex : Male Marital Status : Single Nationality : Indonesian Address : Jl. Dano Tondano, Lk.VIII Kel. S.M. Rejo, Kec. Binjai Timur, Binjai North Sumatera, Indonesia Telephone : Motto : Hidup bukan untuk hidup, tetapi untuk yang maha hidup. II. Formal Educations Program Studi S1 Ilmu Komputer. Fakultas Ilmu Komputer dan Teknologi Informasi. Universitas Sumatera. Medan Madrasah Aliyah Negeri Binjai Madrasah Tsanawiyah Negeri Binjai SD Negeri No Pancur Batu. Pancur Batu SD Negeri No Binjai
12 III. Achievements C-2 Juara I Porseni Madrasah se kota Binjai cabang atletik lari estafet putra 1600M Juara II Porseni Madrasah se kota Binjai cabang atletik lari sprint putra 200M Juara II Porseni Madrasah se kota Binjai cabang atletik lari sprint putra 200M IV. Trainings & Workshop Training Islam Kreatif dan Ceria IX (UKMIAl-Khuarismi USU) Traning pengurus UKMI Al-Khuarizmi (UKMI Al-Khuarizmi USU) V. Organizational Experiences Anggota Bidang LSO - IT UKMI Al-Khuwarizmi This curriculum vitae is prepared in valid data by my good intention to be used by any parties needed. Sincerely yours, Arif Setiawan
CSE 660 Lab 3 Khoi Pham Thanh Ho April 19 th, 2015
CSE 660 Lab 3 Khoi Pham Thanh Ho April 19 th, 2015 Comment and Evaluation: This lab introduces us about Android SDK and how to write a program for Android platform. The calculator is pretty easy, everything
More informationDatabase 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 informationAn Android Studio SQLite Database Tutorial
An Android Studio SQLite Database Tutorial Previous Table of Contents Next An Android Studio TableLayout and TableRow Tutorial Understanding Android Content Providers in Android Studio Purchase the fully
More informationDinabandhu 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 informationandroid:layout_margintop="5dp" > <EditText android:layout_width="210dp"
activity_main.xml
More informationMyDatabaseHelper. 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 informationFragment 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@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 informationLISTING PROGRAM. // // TODO: Add constructor code after the InitializeComponent() call. //
1. MainForm.cs using System.Collections.Generic; using System.Drawing; LISTING PROGRAM / / Description of MainForm. / public partial class MainForm : Form public MainForm() The InitializeComponent()
More informationLISTING 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 informationCreate 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 informationB9: 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 informationListView Containers. Resources. Creating a ListView
ListView Containers Resources https://developer.android.com/guide/topics/ui/layout/listview.html https://developer.android.com/reference/android/widget/listview.html Creating a ListView A ListView is a
More informationLISTING PROGRAM. com.example.jessicatamara.myapplication4;
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;
More informationPractical 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... 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 informationAndroid 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 informationAndroid 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 informationPOCKET 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 informationMAD 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 informationAndroid 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 informationQ.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 informationLAMPIRAN 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 informationIntents. 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 informationTip Calculator. xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
Tip Calculator activity_main.xml
More informationCoding 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 informationTUTOR 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 informationWorkshop. 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 informationpublic 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 informationAndroid 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 informationActionBar. import android.support.v7.app.actionbaractivity; public class MyAppBarActivity extends ActionBarActivity { }
Android ActionBar import android.support.v7.app.actionbaractivity; public class MyAppBarActivity extends ActionBarActivity { Layout, activity.xml
More informationCSCU9YH: Development with Android
: Development with Android Computing Science and Mathematics University of Stirling Data Storage and Exchange 1 Preferences: Data Storage Options a lightweight mechanism to store and retrieve keyvalue
More informationMAD 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 informationEng. 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 informationAndroid Gym Application Utilizing Near Field Communications (NFC) CM0343
2013 Android Gym Application Utilizing Near Field Communications (NFC) CM0343 FULL CODE APPENDIX BRETT STEVENS Supervisor Kirill Sidorov Moderator Christine Mumford 1 Contents Appendices... 2 AddExerciseActivity...
More informationINFORMATION SYSTEM OF LIBRARY AT PONDOK PESANTREN DARUL IHSAN MUHAMMADIYAH SRAGEN
INFORMATION SYSTEM OF LIBRARY AT PONDOK PESANTREN DARUL IHSAN MUHAMMADIYAH SRAGEN PUBLIKASI ILMIAH This Final Project is Compiled as a Condition to Complete Bachelor Degree Program at Department of Informatics
More informationUniversitas 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 informationAndroid/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 informationMore Effective Layouts
More Effective Layouts In past weeks, we've looked at ways to make more effective use of the presented display (e.g. elastic layouts, and separate layouts for portrait and landscape), as well as autogenerating
More informationProduced by. Mobile Application Development. Higher Diploma in Science in Computer Science. Eamonn de Leastar
Mobile Application Development Higher Diploma in Science in Computer Science Produced by Eamonn de Leastar (edeleastar@wit.ie) Department of Computing, Maths & Physics Waterford Institute of Technology
More informationBasic 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 informationTabel 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 informationManifest.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 informationAccelerating 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 informationMobile 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 informationAppendix 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 informationOverview. Lecture: Implicit Calling via Share Implicit Receiving via Share Launch Telephone Launch Settings Homework
Implicit Intents Overview Lecture: Implicit Calling via Share Implicit Receiving via Share Launch Telephone Launch Settings Homework Intents Intent asynchronous message used to activate one Android component
More informationUI-Testing, Reactive Programming and some Kotlin.
UI-Testing, Reactive Programming and some Kotlin anders.froberg@liu.se Load up your guns, and bring your friends This is the end, My only Friend, the end Äntligen stod prästen i predikstolen I ll be back
More informationLAMPIRAN. 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 informationSQLite Database. References. Overview. Structured Databases
SQLite Database References Android Developers Article https://developer.android.com/training/basics/data-storage/databases.html Android SQLite Package Reference https://developer.android.com/reference/android/database/sqlite/package-summary.html
More informationTelephony, Mail, Maps and Web. Here we ll see how some of the built-in apps can be used within our app with the exception of Google maps.
Telephony, Mail, Maps and Web Here we ll see how some of the built-in apps can be used within our app with the exception of Google maps. Layout Required files are: 1. listview_border.xml (ListView s background
More informationEMBEDDED 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 informationOnline 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 informationSouth Africa Version Control.
South Africa 2013 Lecture 7: User Interface (Navigation)+ Version Control http://aiti.mit.edu South Africa 2013 Today s agenda Recap Navigation Version Control 2 Tutorial Recap Activity 1 Activity 2 Text
More informationAndroid 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 informationAn 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 informationMobile and Ubiquitous Computing: Android Programming (part 4)
Mobile and Ubiquitous Computing: Android Programming (part 4) Master studies, Winter 2015/2016 Dr Veljko Pejović Veljko.Pejovic@fri.uni-lj.si Examples from: Mobile and Ubiquitous Computing Jo Vermeulen,
More informationITU- 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 informationMVC 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 informationelse 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 informationB5: Time to coding. Tới thư mục src/example.java và thay đổi nội dung file như sau: Mã: package at.exam;
B5: Time to coding. Tới thư mục src/example.java và thay đổi nội dung file như sau: Mã: package at.exam; import java.util.arraylist; import android.app.activity; import android.app.alertdialog; import
More information1. 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 informationMobile Development Lecture 10: Fragments
Mobile Development Lecture 10: Fragments Mahmoud El-Gayyar elgayyar@ci.suez.edu.eg Elgayyar.weebly.com Situational Layouts Your app can use different layout in different situations: different device type
More information<uses-permission android:name="android.permission.internet" />
Listing Program : 1. Android Manifest.xml
More informationLAMPIRAN 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 informationFragments. Lecture 11
Fragments Lecture 11 Situational layouts Your app can use different layouts in different situations Different device type (tablet vs. phone vs. watch) Different screen size Different orientation (portrait
More informationAndroid 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 informationSMAATSDK. 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 informationRequired Core Java for Android application development
Required Core Java for Android application development Introduction to Java Datatypes primitive data types non-primitive data types Variable declaration Operators Control flow statements Arrays and Enhanced
More informationMobile Software Development for Android - I397
1 Mobile Software Development for Android - I397 IT COLLEGE, ANDRES KÄVER, 2015-2016 EMAIL: AKAVER@ITCOLLEGE.EE WEB: HTTP://ENOS.ITCOLLEGE.EE/~AKAVER/2015-2016/DISTANCE/ANDROID SKYPE: AKAVER Timetable
More informationFragments. Lecture 10
Fragments Lecture 10 Situa2onal layouts Your app can use different layouts in different situa2ons Different device type (tablet vs. phone vs. watch) Different screen size Different orienta2on (portrait
More informationANDROID 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 informationLAMPIRAN A : LISTING PROGRAM
LAMPIRAN A : LISTING PROGRAM 1. Form Utama (Cover) using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text;
More informationLISTING PROGRAM APLIKASI ANDROID
1 LISTING PROGRAM APLIKASI ANDROID AboutFragment.java package tia.restodj; import android.app.fragment; import android.os.bundle; import android.view.layoutinflater; import android.view.view; import android.view.viewgroup;
More informationNearby Search Indekos Based Android Using A Star (A*) Algorithm
Journal of Physics: Conference Series PAPER OPEN ACCESS Nearby Search Indekos Based Android Using A Star (A*) Algorithm To cite this article: B Siregar et al 2018 J. Phys.: Conf. Ser. 978 012084 View the
More informationAction Bar. (c) 2010 Haim Michael. All Rights Reserv ed.
Action Bar Introduction The Action Bar is a widget that is shown on top of the screen. It includes the application logo on its left side together with items available from the options menu on the right.
More informationM.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 informationSoftware 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 informationApplied 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 informationMobile 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 informationProgramming with Android: Animations, Menu, Toast and Dialogs. Luca Bedogni. Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna
Programming with Android: Animations, Menu, Toast and Dialogs Luca Bedogni Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna Animations vmake the components move/shrink/color vmainly
More informationLampiran 2 MASTER TABEL
64 Lampiran 2 MASTER TABEL No. No. Responden Umur Pendidikan Pekerjaan Paritas Kanker 1 427363 35 S1 PNS 4 Tidak 2 504024 36 SMA IRT 4 Tidak 3 500316 35 SMA IRT 5 Tidak 4 504014 35 SMA PNS 1 Tidak 5 447158
More informationLISTING PROGRAM. void KOMPRESIToolStripMenuItemClick(object sender, EventArgs e) { Kompresi k = new Kompresi(); k.show(); this.
A - 1 LISTING PROGRAM 1. Form Menu Utama using System; using System.Collections.Generic; using System.Drawing; using System.Windows.Forms; namespace KompresiCitra / / Description of MainForm.
More informationINTRODUCTION COS MOBILE DEVELOPMENT WHAT IS ANDROID CORE OS. 6-Android Basics.key - February 21, Linux-based.
1 COS 470 - MOBILE DEVELOPMENT INTRODUCTION 2 WHAT IS ANDROID Linux-based Java/Kotlin Android Runtime (ART) System Apps SMS, Calendar, etc. Platform Architecture 3 CORE OS Linux (64 bit) Each app is a
More informationDeveloping Android Applications Introduction to Software Engineering Fall Updated 1st November 2015
Developing Android Applications Introduction to Software Engineering Fall 2015 Updated 1st November 2015 Android Lab 3 & Midterm Additional Concepts No Class Assignment 2 Class Plan Android : Additional
More informationArrays of Buttons. Inside Android
Arrays of Buttons Inside Android The Complete Code Listing. Be careful about cutting and pasting.
More informationContentProvider & ContentResolver ContentResolver methods CursorLoader Implementing ContentProviders
ContentProvider & ContentResolver ContentResolver methods CursorLoader Implementing ContentProviders Represents a repository of structured data Encapsulates data sets Enforces data access permissions Intended
More informationLISTING 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 informationLAMPIRAN 1 PENGARUH KETERSEDIAAN KOLEKSI PERPUSTAKAAN TERHADAP MINAT BACA SISWA SMP NEGERI 30 MEDAN
LAMPIRAN 1 ANGKET PENELITIAN PENGARUH KETERSEDIAAN KOLEKSI PERPUSTAKAAN TERHADAP MINAT BACA SISWA SMP NEGERI 30 MEDAN Saya mengharapkan kesediaan Saudara untuk mengisi angket dalam rangka penelitian tetang
More informationKotlin for Android developers
ROME - APRIL 13/14 2018 Kotlin for Android developers Victor Kropp, JetBrains @kropp Kotlin on JVM + Android JS In development: Kotlin/Native ios/macos/windows/linux Links Kotlin https://kotlinlang.org
More informationA comparative study of Message Digest 5(MD5) and SHA256 algorithm
Journal of Physics: Conference Series PAPER OPEN ACCESS A comparative study of Message Digest 5(MD5) and SHA256 algorithm To cite this article: D Rachmawati et al 208 J. Phys.: Conf. Ser. 978 026 View
More informationTextView 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 informationEMBEDDED 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 informationTHE CATHOLIC UNIVERSITY OF EASTERN AFRICA A. M. E. C. E. A
THE CATHOLIC UNIVERSITY OF EASTERN AFRICA A. M. E. C. E. A MAIN EXAMINATION P.O. Box 62157 00200 Nairobi - KENYA Telephone: 891601-6 Fax: 254-20-891084 E-mail:academics@cuea.edu AUGUST - DECEMBER 2016
More informationAndroid User Interfaces. Hsiao-Lung Chan, Ph.D. Dept Electrical Engineering Chang Gung University, Taiwan
Android User Interfaces Hsiao-Lung Chan, Ph.D. Dept Electrical Engineering Chang Gung University, Taiwan chanhl@maili.cgu.edu.tw Basic control components Text components TextView EditText Button compoents
More informationMengfei Jiang B.Sc., Nanjing University of Posts and Telecommunication, 2014
The Transmission Line Matrix Method with Android Implementation by Mengfei Jiang B.Sc., Nanjing University of Posts and Telecommunication, 2014 A Dissertation Submitted in Partial Fulfillment of the Requirements
More informationCSE 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 informationSimple Currency Converter
Simple Currency Converter Implementing a simple currency converter: USD Euro Colon (CR) Note. Naive implementation using the rates 1 Costa Rican Colon = 0.001736 U.S. dollars 1 Euro = 1.39900 U.S. dollars
More informationThe Observation of Bahasa Indonesia Official Computer Terms Implementation in Scientific Publication
Journal of Physics: Conference Series PAPER OPEN ACCESS The Observation of Bahasa Indonesia Official Computer Terms Implementation in Scientific Publication To cite this article: D Gunawan et al 2018 J.
More information