A-1. Listing Program. CariKata.java. package com.indah.kmp;
|
|
- Rudolph Daniel
- 6 years ago
- Views:
Transcription
1 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; import java.util.arraylist; import java.util.list; import android.app.activity; import android.content.intent; import android.os.bundle; import android.os.environment; import android.view.view; import android.widget.arrayadapter; import android.widget.autocompletetextview; import android.widget.button; import android.widget.edittext; import android.widget.textview; import android.widget.toast; public class CariKata extends Activity { private AutoCompleteTextView actv; EditText edkata, edarti; Button b1, b2, btn2kembali; TextView tvarti, tvnotfound; protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); b1 = (Button) findviewbyid (R.id.btncari); b2 = (Button) findviewbyid (R.id.button_tambah); btn2kembali= (Button) findviewbyid (R.id.btn2_cari);
2 A-2 List<String> listkata = new ArrayList<String>(); File fl = new File(Environment.getExternalStorageDirectory() + "/contoh"); String ck = fl.tostring()+"/"+"kerjaku.csv"; BufferedReader br = null; String line = ""; String cvssplitby = "#"; try { br = new BufferedReader(new FileReader(ck)); while ((line = br.readline())!= null) { String[] kamus = line.split(cvssplitby); String kata_b = kamus[0]; listkata.add(kata_b); catch (FileNotFoundException e) { e.printstacktrace(); catch (IOException e) { e.printstacktrace(); finally { if (br!= null) { try { br.close(); catch (IOException e) { e.printstacktrace(); String[] kata = listkata.toarray(new String[listkata.size()]); ArrayAdapter adapter = new ArrayAdapter (this,android.r.layout.simple_list_item_1,kata);
3 A-3 actv = (AutoCompleteTextView) findviewbyid(r.id.autocompletetextview1); actv.setadapter(adapter); b1.setonclicklistener( new View.OnClickListener(){ public void onclick(view arg0) { actv = (AutoCompleteTextView) findviewbyid(r.id.autocompletetextview1); tvarti = (TextView) findviewbyid(r.id.tvarti); File folder = new File(Environment.getExternalStorageDirectory() + "/contoh"); String csv = folder.tostring()+"/"+"kerjaku.csv"; KMP k = new KMP(); String cari = actv.gettext().tostring(); System.out.println("Terjemahan kata "+cari); BufferedReader br = null; String line = ""; String cvssplitby = "#"; int ketemu = 0; try { br = new BufferedReader(new FileReader(csv)); while ((line = br.readline())!= null) { String[] kamus = line.split(cvssplitby); String kata = kamus[0]; String arti = kamus[1]; int first_occur_position = k.kmp(kata, cari); if(first_occur_position >= 0){ tvarti.settext(kata + "="+arti); System.out.println(kata + "="+arti); ketemu += 1;
4 A-4 catch (FileNotFoundException e) { e.printstacktrace(); catch (IOException e) { e.printstacktrace(); finally { if (br!= null) { try { br.close(); catch (IOException e) { e.printstacktrace(); System.out.println("Proses Baca Data Selesai"); if(ketemu<1){ tvarti.settext("kata Tidak Ditemukan"); edkata.settext(""); ); b2.setonclicklistener(new View.OnClickListener() { public void onclick(view v) { // TODO Auto-generated method stub Intent i = new Intent(CariKata.this, TambahKata.class); i.addflags(intent.flag_activity_clear_top); startactivity(i); ); btn2kembali.setonclicklistener(new View.OnClickListener() { public void onclick(view v) { // TODO Auto-generated method stub
5 A-5 Intent i = new Intent(CariKata.this, MainActivity.class); startactivity(i); ); KMP.java package com.indah.kmp; public class KMP { public int[] prekmp(string pattern) { int[] next = new int[pattern.length()]; int i=0, j=-1; next[0]=-1; while (i<pattern.length()-1) { while (j>=0 && pattern.charat(i)!=pattern.charat(j)) j = next[j]; i++; j++; next[i] = j; return next; public int kmp(string text, String pattern) { int[] next = prekmp(pattern); int i=0, j=0; while (i<text.length()) { while (j>=0 && text.charat(i)!=pattern.charat(j)) j = next[j]; i++; j++; if (j==pattern.length()) return i- pattern.length(); return -1;
6 A-6 MainActivity.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; import android.support.v7.app.actionbaractivity; import android.content.intent; //indah tmbah import android.os.bundle; import android.os.environment; import android.view.menu; import android.view.menuitem; import android.view.view; import android.widget.button; import android.widget.edittext; import android.widget.textview; public class MainActivity extends ActionBarActivity { Button cari, tambah; protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.dashboard); cari = (Button) findviewbyid (R.id.button_cari); tambah = (Button) findviewbyid (R.id.button_tambah); cari.setonclicklistener(new View.OnClickListener() { public void onclick(view v) { Intent i = new Intent(MainActivity.this, CariKata.class); startactivity(i);
7 A-7 ); tambah.setonclicklistener(new View.OnClickListener() { public void onclick(view v) { // TODO Auto-generated method stub Intent i = new Intent(MainActivity.this, TambahKata.class); startactivity(i); ); public boolean oncreateoptionsmenu(menu menu) { getmenuinflater().inflate(r.menu.main, menu); return true; { public boolean onoptionsitemselected(menuitem item) int id = item.getitemid(); if (id == R.id.action_settings) { return true; return super.onoptionsitemselected(item); TambahKata.java package com.indah.kmp; import java.io.bufferedreader; import java.io.file; import java.io.filenotfoundexception; import java.io.filereader; import java.io.filewriter;
8 A-8 import java.io.ioexception; import java.util.arraylist; import java.util.list; import android.app.activity; import android.content.intent; import android.os.bundle; import android.os.environment; import android.view.view; import android.widget.button; import android.widget.edittext; import android.widget.textview; public class TambahKata extends Activity { Button btn2; Button b1; Button btnsimpan; TextView tvarti, tvnotfound; EditText edkata, edarti; protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.tambah_kata); b1 = (Button) findviewbyid (R.id.btncari); btn2 = (Button)findViewById(R.id.btn2); btn2.setonclicklistener( new View.OnClickListener(){ public void onclick(view v) { Intent i = new Intent(TambahKata.this, MainActivity.class); i.addflags(intent.flag_activity_clear_top); startactivity(i); ); b1.setonclicklistener(new View.OnClickListener() { public void onclick(view v) {
9 A-9 edkata = (EditText)findViewById(R.id.edkata); edarti = (EditText)findViewById(R.id.edarti); String kata = edkata.gettext().tostring(); String arti = edarti.gettext().tostring(); List<String> listkata = new ArrayList<String>(); List<String> listarti = new ArrayList<String>(); File folder = new File(Environment.getExternalStorageDirectory() + "/contoh"); String csvfile = folder.tostring()+"/"+"kerjaku.csv"; BufferedReader br = null; String line = ""; String cvssplitby = "#"; try { br = new BufferedReader(new FileReader(csvFile)); while ((line = br.readline())!= null) { String[] kamus = line.split(cvssplitby); String kata_b = kamus[0]; String arti_b = kamus[1]; listkata.add(kata_b); //terus di masukin ke kotak listarti.add(arti_b); catch (FileNotFoundException e) { e.printstacktrace(); catch (IOException e) { e.printstacktrace(); finally { if (br!= null) { try { br.close(); catch (IOException e) { e.printstacktrace();
10 A-10 Selesai"); System.out.println("Proses Baca Data try { String NamaFile = folder.tostring()+"/"+"kerjaku.csv"; FileWriter writer = new FileWriter(NamaFile); int p = listkata.size(); for(int i= 0 ; i < p; i++){ String s_kata = listkata.get(i); String s_arti = listarti.get(i); writer.append(s_kata); writer.append('#'); writer.append(s_arti); writer.append('\n'); writer.append(kata); writer.append('#'); writer.append(arti); writer.append('\n'); writer.flush(); writer.close(); catch(ioexception e) { e.printstacktrace(); Selesai"); System.out.println("Proses Input ); Tentang.Java
11 A-11 package com.indah.kmp; import android.app.activity; import android.content.intent; import android.os.bundle; import android.view.view; import android.widget.button; public class Tentang extends Activity { Button btn1; protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.tentang); btn1 = (Button)findViewById(R.id.button1); btn1.setonclicklistener( new View.OnClickListener(){ public void onclick(view v) { Intent i = new Intent(Tentang.this, MainActivity.class); i.addflags(intent.flag_activity_clear_top); startactivity(i); ); Bantuan.Java package com.indah.kmp; import android.app.activity; import android.content.intent; import android.os.bundle; import android.view.view; import android.widget.button; public class Bantuan extends Activity { Button btn1;
12 A-12 protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.tentang); btn1 = (Button)findViewById(R.id.button1); btn1.setonclicklistener( new View.OnClickListener(){ public void onclick(view v) { Intent i = new Intent(Bantuan.this, MainActivity.class); i.addflags(intent.flag_activity_clear_top); startactivity(i); ); activity_main.xml <RelativeLayout xmlns:android=" " xmlns:tools=" android:layout_height="match_parent" android:paddingbottom="@dimen/activity_vertical_margin" android:paddingleft="@dimen/activity_horizontal_margin" android:paddingright="@dimen/activity_horizontal_margin" android:paddingtop="@dimen/activity_vertical_margin" android:background="@drawable/kamus" tools:context="com.indah.kmp.mainactivity" > android:id="@+id/button_tambah" android:layout_alignbaseline="@+id/btncari" android:layout_alignbottom="@+id/btncari" android:layout_alignparentright="true" android:text="tambah Kata"/>
13 A-13 android:layout_marginbottom="18dp" android:text="cari" /> android:layout_centervertical="true" android:text="arti" android:textcolor="#ff6600" android:textsize="27sp" android:textstyle="bold" /> android:layout_margintop="20dp" android:text="textview" android:textcolor="#000000" android:textsize="15sp" /> <AutoCompleteTextView android:layout_margintop="16dp" android:ems="10" > <requestfocus /> </AutoCompleteTextView> android:layout_alignparentleft="true" android:layout_alignparenttop="true" android:text="kata" android:textcolor="#ff6600"
14 A-14 android:textsize="27sp" android:textstyle="bold" /> android:layout_alignparentbottom="true" android:layout_marginbottom="24dp" android:layout_marginright="17dp" android:text="kembali" /> </RelativeLayout> bantuan.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android=" " android:layout_height="match_parent" android:orientation="vertical" > android:text="bantuan Menggunakan Aplikasi" android:textappearance="?android:attr/textappearancemediu m" /> <EditText android:ems="10" android:inputtype="textmultiline" /> android:text="kembali" /> </LinearLayout>
15 A-15 dashboard.xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android=" " android:layout_height="match_parent" > android:layout_alignparenttop="true" android:layout_marginright="35dp" android:layout_margintop="86dp" android:height="80dp" android:text="cari Kata" android:width="120dp" /> android:layout_alignparentright="true" android:layout_marginright="26dp" android:height="80dp" android:text="tambah Kata" android:width="120dp" /> android:layout_centervertical="true" android:height="80dp" android:text="bantuan" android:width="120dp" />
16 A-16 android:layout_centervertical="true" android:height="80dp" android:text="tentang Aplikasi" android:width="120dp" /> android:layout_alignparenttop="true" android:gravity="center" android:layout_margintop="28dp" android:text="kamus ISTILAH KOMPUTER" android:textappearance="?android:attr/textappearancemediu m" /> </RelativeLayout> tambah_kata.xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android=" " android:layout_height="match_parent" android:orientation="vertical" > android:layout_alignparentbottom="true" android:layout_alignparentright="true" android:layout_marginbottom="24dp" android:layout_marginright="27dp" android:text="kembali" /> <EditText
17 A-17 android:layout_marginbottom="57dp" android:ems="10" > <requestfocus /> </EditText> android:text="kata" android:textcolor="#ff6600" android:textsize="27sp" android:textstyle="bold" android:layout_alignparentleft="true" android:layout_alignparenttop="true" android:layout_marginleft="18dp" android:layout_margintop="26dp" android:textappearance="?android:attr/textappearancemediu m" /> <EditText android:layout_margintop="27dp" android:ems="10" /> android:layout_margintop="26dp" android:text="arti" android:textsize="27sp" android:textstyle="bold" android:textcolor="#ff6600" android:textappearance="?android:attr/textappearancemediu m" />
18 A-18 android:layout_width="146dp" android:layout_marginbottom="76dp" android:text="simpan" /> </RelativeLayout> Tentang.xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android=" " android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" android:singleline="false" > android:text="tentang Aplikasi Komputer" android:textappearance="?android:attr/textappearancemediu m" /> android:layout_alignparentleft="true" android:layout_margintop="35dp" android:layout_weight="0.11" android:text="kamus Istilah Komputer ini yaitu sebuah alat bantu bagi manusia untuk mendapatkan arti dari suatu kata atau istilah yang biasanya disusun berdasarkan abjad sehingga akan lebih mudah mengetahui makna dari istilah komputer. Dengan menggunakan perangkat teknologi mobile device berbasis android sebagai alat yang lebih praktis karena sifatnya portable sehingga memudahkan bagi yang ingin mendapatkan informasi mengenai Istilah komputer." />
19 A-19 android:layout_alignparentleft="true" android:layout_margintop="47dp" android:text="kembali" /> </RelativeLayout> Bantuan.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android=" " android:layout_height="match_parent" android:orientation="vertical" > android:layout_weight="0.00" android:text="bantuan Menggunakan Aplikasi" android:textappearance="?android:attr/textappearancelarge " /> android:layout_width="228dp" android:text="1. Instal KMP.apk pada handpone Android. 2. lalu buka aplikasi KMP3. Terdapat 4 menu tombol pada Halaman Utama 4. Tombol CARI KATA yaitu halaman untuk melakukan pencarian istilah komputer.5. Tombol TAMBAH KATA yaitu halaman untuk menambah kosa kata baru istilah komputer.6. Tombol TENTANG yaitu Halaman untuk mengetahui tentang Aplikasi Komputer 7. Tombol BANTUAN yaitu Halamat untuk mendapatkan cara menggunakan Aplikasi." /> android:id="@+id/button1"
20 A-20 </LinearLayout> android:text="kembali" /> AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android=" " package="com.indah.kmp" android:versioncode="1" android:versionname="1.0" > <uses-sdk android:minsdkversion="8" android:targetsdkversion="19" /> <uses-permission android:name="android.permission.write_external_storage" /> <uses-permission android:name="android.permission.read_external_storage" /> <application android:allowbackup="true" > <activity android:name=".mainactivity" > <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent-filter> </activity> <activity android:name=".tambahkata" > </activity>
21 A-21 </manifest> <activity android:name=".carikata" > </activity> <activity android:name=".tentang" > </activity> </application>
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 informationCreate 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 informationEMBEDDED 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 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 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 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 informationTip Calculator. xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
Tip Calculator activity_main.xml
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 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 informationStatistics http://www.statista.com/topics/840/smartphones/ http://www.statista.com/topics/876/android/ http://www.statista.com/statistics/271774/share-of-android-platforms-on-mobile-devices-with-android-os/
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 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 informationAndroid - 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<uses-permission android:name="android.permission.internet" />
Listing Program : 1. Android Manifest.xml
More informationAndroid 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 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 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 informationM.A.D ASSIGNMENT # 2 REHAN ASGHAR BSSE 15126
M.A.D ASSIGNMENT # 2 REHAN ASGHAR BSSE 15126 Submitted to: Sir Waqas Asghar MAY 23, 2017 SUBMITTED BY: REHAN ASGHAR Intent in Android What are Intent? An Intent is a messaging object you can use to request
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 informationCSE 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 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 informationPENGEMBANGAN 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// 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 informationAndroid Application Development. By : Shibaji Debnath
Android Application Development By : Shibaji Debnath About Me I have over 10 years experience in IT Industry. I have started my career as Java Software Developer. I worked in various multinational company.
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 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 informationData 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 informationEMBEDDED SYSTEMS PROGRAMMING Application Tip: Managing Screen Orientation
EMBEDDED SYSTEMS PROGRAMMING 2016-17 Application Tip: Managing Screen Orientation ORIENTATIONS Portrait Landscape Reverse portrait Reverse landscape ON REVERSE PORTRAIT Android: all four orientations are
More information1. 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 informationandroid:layout_margintop="5dp" > <EditText android:layout_width="210dp"
activity_main.xml
More information1 카메라 1.1 제어절차 1.2 관련주요메서드 1.3 제작철차 서피스뷰를생성하고이를제어하는서피스홀더객체를참조해야함. 매니페스트에퍼미션을지정해야한다.
1 카메라 1.1 제어절차 서피스뷰를생성하고이를제어하는서피스홀더객체를참조해야함. 매니페스트에퍼미션을지정해야한다. 1.2 관련주요메서드 setpreviewdisplay() : startpreview() : stoppreview(); onpicturetaken() : 사진을찍을때자동으로호출되며캡처한이미지가전달됨 1.3 제작철차 Step 1 프로젝트를생성한후매니페스트에퍼미션들을설정한다.
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 informationAPPENDIX CODE TO STORE THE BUTTON MENU AND MOVE THE PAGE
APPENDIX FILE MainActivity.java CODE TO STORE THE BUTTON MENU AND MOVE THE PAGE package com.ste.sembakoapp; import Android.content.Intent; import Android.support.v7.app.AppCompatActivity; import Android.os.Bundle;
More informationOur First Android Application
Mobile Application Development Lecture 04 Imran Ihsan Our First Android Application Even though the HelloWorld program is trivial in introduces a wealth of new ideas the framework, activities, manifest,
More information<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 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 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 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 informationAndroid UI Development
Android UI Development Android UI Studio Widget Layout Android UI 1 Building Applications A typical application will include: Activities - MainActivity as your entry point - Possibly other activities (corresponding
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 informationStoppUhr. <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="start1"
StoppUhr
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 informationCOMP61242: 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 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 informationAndroid 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 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 informationLifeStreet Media Android Publisher SDK Integration Guide
LifeStreet Media Android Publisher SDK Integration Guide Version 1.12.0 Copyright 2015 Lifestreet Corporation Contents Introduction... 3 Downloading the SDK... 3 Choose type of SDK... 3 Adding the LSM
More informationSoftware Practice 3 Before we start Today s lecture Today s Task Team organization
1 Software Practice 3 Before we start Today s lecture Today s Task Team organization Prof. Hwansoo Han T.A. Jeonghwan Park 43 2 Lecture Schedule Spring 2017 (Monday) This schedule can be changed M A R
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 informationEMBEDDED SYSTEMS PROGRAMMING Android Services
EMBEDDED SYSTEMS PROGRAMMING 2016-17 Android Services APP COMPONENTS Activity: a single screen with a user interface Broadcast receiver: responds to system-wide broadcast events. No user interface Service:
More informationTutorial: Setup for Android Development
Tutorial: Setup for Android Development Adam C. Champion CSE 5236: Mobile Application Development Autumn 2017 Based on material from C. Horstmann [1], J. Bloch [2], C. Collins et al. [4], M.L. Sichitiu
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 informationUser Interface Development in Android Applications
ITU- FAO- DOA- TRCSL Training on Innovation & Application Development for E- Agriculture User Interface Development in Android Applications 11 th - 15 th December 2017 Peradeniya, Sri Lanka Shahryar Khan
More informationCreated By: Keith Acosta Instructor: Wei Zhong Courses: Senior Seminar Cryptography
Created By: Keith Acosta Instructor: Wei Zhong Courses: Senior Seminar Cryptography 1. Thread Summery 2. Thread creation 3. App Diagram and information flow 4. General flow of Diffie-Hellman 5. Steps of
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 informationIPN-ESCOM Application Development for Mobile Devices. Extraordinary. A Web service, invoking the SOAP protocol, in an Android application.
Learning Unit Exam Project IPN-ESCOM Application Development for Mobile Devices. Extraordinary. A Web service, invoking the SOAP protocol, in an Android application. The delivery of this project is essential
More informationProduced by. Mobile Application Development. Eamonn de Leastar
Mobile Application Development Produced by Eamonn de Leastar (edeleastar@wit.ie) Department of Computing, Maths & Physics Waterford Institute of Technology http://www.wit.ie http://elearning.wit.ie A First
More informationLearn about Android Content Providers and SQLite
Tampa Bay Android Developers Group Learn about Android Content Providers and SQLite Scott A. Thisse March 20, 2012 Learn about Android Content Providers and SQLite What are they? How are they defined?
More informationAndroid - Widgets Tutorial
Android - Widgets Tutorial A widget is a small gadget or control of your android application placed on the home screen. Widgets can be very handy as they allow you to put your favourite applications on
More informationTime Picker trong Android
Time Picker trong Android Time Picker trong Android cho phép bạn lựa chọn thời gian của ngày trong chế độ hoặc 24 h hoặc AM/PM. Thời gian bao gồm các định dạng hour, minute, và clock. Android cung cấp
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 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 information1. Explain the architecture of an Android OS. 10M The following diagram shows the architecture of an Android OS.
1. Explain the architecture of an Android OS. 10M The following diagram shows the architecture of an Android OS. Android OS architecture is divided into 4 layers : Linux Kernel layer: 1. Linux Kernel layer
More informationIntroduction to Android Development
Introduction to Android Development What is Android? Android is the customizable, easy to use operating system that powers more than a billion devices across the globe - from phones and tablets to watches,
More informationNotification mechanism
Notification mechanism 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 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 informationAndroid 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 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 informationAndroid Services. Victor Matos Cleveland State University. Services
22 Android Victor Matos Cleveland State University Notes are based on: Android Developers http://developer.android.com/index.html 22. Android Android A Service is an application component that runs in
More informationDynamically Create Admob Banner and Interstitial Ads
Dynamically Create Admob Banner and Interstitial Ads activity_main.xml file 0 0 0
More informationSerious Gaming. Technical manual. This document is a collection of the code and installation process
Serious Gaming Technical manual This document is a collection of the code and installation process Peter Elliott 02/04/2017 Contents Table of figures... 3 Introduction... 4 Installation instructions...
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 informationPROGRAMMING APPLICATIONS DECLARATIVE GUIS
PROGRAMMING APPLICATIONS DECLARATIVE GUIS DIVING RIGHT IN Eclipse? Plugin deprecated :-( Making a new project This keeps things simple or clone or clone or clone or clone or clone or clone Try it
More informationTPCT s College of Engineering, Osmanabad. Laboratory Manual SDL-II. Mobile Application Development (Android) For. Third Year Students (CSE)
TPCT s College of Engineering, Osmanabad Laboratory Manual SDL-II Mobile Application Development (Android) For Third Year Students (CSE) Manual Prepared by Prof. Sujata A. Gaikwad Author COE, Osmanabad
More informationAn Overview of the Android Programming
ID2212 Network Programming with Java Lecture 14 An Overview of the Android Programming Hooman Peiro Sajjad KTH/ICT/SCS HT 2016 References http://developer.android.com/training/index.html Developing Android
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 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 informationAdaptation 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 informationAndroid 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 informationAndroid Basics. - Bhaumik Shukla Android Application STEALTH FLASH
Android Basics - Bhaumik Shukla Android Application Developer @ STEALTH FLASH Introduction to Android Android is a software stack for mobile devices that includes an operating system, middleware and key
More informationGroup B: Assignment No 8. Title of Assignment: To verify the operating system name and version of Mobile devices.
Group B: Assignment No 8 Regularity (2) Performance(5) Oral(3) Total (10) Dated Sign Title of Assignment: To verify the operating system name and version of Mobile devices. Problem Definition: Write a
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 informationBasic UI elements: Android Buttons (Basics) Marco Ronchetti Università degli Studi di Trento
Basic UI elements: Android Buttons (Basics) Marco Ronchetti Università degli Studi di Trento Let s work with the listener Button button = ; button.setonclicklistener(new.onclicklistener() { public void
More informationAndroid 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 informationCITIZEN COP PRESENTED BY :- A CLOUD BASED CRIME REPORT APPLICATION. SOUVIK ROY - IT2014/066 AWSAF AMBAR - IT2014/067 SAYANI DUTTA - IT2014/089
CITIZEN COP CITIZEN COP A CLOUD BASED CRIME REPORT APPLICATION. PRESENTED BY :- SOUVIK ROY - IT2014/066 AWSAF AMBAR - IT2014/067 SAYANI DUTTA - IT2014/089 1 CITIZEN COP A CLOUD BASED CRIME REPORTING APP
More informationLAB MANUAL SITTTR KALAMASSERY SMART DEVICE PROGRAMMING LAB. SITTTR Smart Device Programming Manual Page 1
LAB MANUAL SMART DEVICE PROGRAMMING LAB 6138 by SITTTR KALAMASSERY SITTTR Smart Device Programming Manual Page 1 STATE INSTITUTE OF TECHNICAL TEACHERS TRAINING AND RESEARCH GENERAL INSTRUCTIONS Rough record
More informationAndroid App Development. Mr. Michaud ICE Programs Georgia Institute of Technology
Android App Development Mr. Michaud ICE Programs Georgia Institute of Technology Android Operating System Created by Android, Inc. Bought by Google in 2005. First Android Device released in 2008 Based
More informationTopics of Discussion
Reference CPET 565 Mobile Computing Systems CPET/ITC 499 Mobile Computing Fragments, ActionBar and Menus Part 3 of 5 Android Programming Concepts, by Trish Cornez and Richard Cornez, pubslihed by Jones
More informationTutorial: Setup for Android Development
Tutorial: Setup for Android Development Adam C. Champion CSE 5236: Mobile Application Development Spring 2018 Based on material from C. Horstmann [1], J. Bloch [2], C. Collins et al. [4], M.L. Sichitiu
More informationAdvanced Android Development
Advanced Android Development review of greporter open-source project: GPS, Audio / Photo Capture, SQLite, HTTP File Upload and more! Nathan Freitas, Oliver+Coady nathan@olivercoady.com Android Platform
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 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 informationText Properties Data Validation Styles/Themes Material Design
Text Properties Data Validation Styles/Themes Material Design Sisoft Technologies Pvt Ltd SRC E7, Shipra Riviera Bazar, Gyan Khand-3, Indirapuram, Ghaziabad Website: Email:info@sisoft.in Phone: +91-9999-283-283
More informationLAMPIRAN PROGRAM. public class ListArrayAdapterPost extends ArrayAdapter<ModelDataPost> {
1 LAMPIRAN PROGRAM JAVA ListArrayAdapterPost.java package com.example.win.api.adapter; import android.content.context; import android.support.annotation.nonnull; import android.view.layoutinflater; import
More informationMATLAB Production Server Interface for TIBCO Spotfire. Software. Reference Architecture
MATLAB Production Server Interface for TIBCO Spotfire Software Reference Architecture 1 Contents Introduction... 3 System Requirements... 3 MathWorks Products... 3 TIBCO Products... 3 Reference Diagram...
More informationMobile Health Sensing with Smart Phones
University of Arkansas, Fayetteville ScholarWorks@UARK Electrical Engineering Undergraduate Honors Theses Electrical Engineering 5-2015 Mobile Health Sensing with Smart Phones Abby Logan Wise University
More informationSMART VEHICLE TRACKING APPLICATION
SMART VEHICLE TRACKING APPLICATION Report submitted for the partial fulfillment of the requirements for the degree of Bachelor of Technology in Information Technology Submitted by Ritaman Baral (IT2014/008)
More informationAndroid Layout Types
Android Layout Types Android Linear Layout Android LinearLayout is a view group that aligns all children in either vertically or horizontally. android:divider - This is drawable to use as a vertical divider
More informationUI (User Interface) overview Supporting Multiple Screens Touch events and listeners
http://www.android.com/ UI (User Interface) overview Supporting Multiple Screens Touch events and listeners User Interface Layout The Android user interface (UI) consists of screen views (one or more viewgroups
More information