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

Size: px
Start display at page:

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

Transcription

1 Listing Program : 1. Android Manifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android=" package="com.example.fauzansaef.penggunaanwindows7"> <uses-permission android:name="android.permission.internet" /> <application android:allowbackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsrtl="true" android:theme="@style/apptheme"> android:name=".jsonparser"> <activity android:name=".home"> <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent-filter> </activity> <activity android:name=".materi" /> <activity android:name=".soal" /> <activity android:name=".video" /> <activity android:name=".about" /> <activity android:name=".help" /> <activity android:name=".tampilmateri" /> <activity android:name=".tampilmateri2" /> <activity android:name=".tampilmateri3" />

2 <activity android:name=".tampilmateri4" /> <activity android:name=".tampilmateri5"></activity> </application> </manifest> 2. home.java package com.example.fauzansaef.penggunaanwindows7; import android.content.intent; import android.support.v7.app.appcompatactivity; import android.os.bundle; import android.view.view; import android.widget.imagebutton; public class home extends AppCompatActivity { protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_home); ImageButton a = (ImageButton) findviewbyid(r.id.btnmateri); a.setonclicklistener(new View.OnClickListener() { public void onclick(view v) { Intent pindah = new Intent(home.this, materigadar.class); startactivity(pindah); );

3 ImageButton b = (ImageButton) findviewbyid(r.id.btnsoal); b.setonclicklistener(new View.OnClickListener() { public void onclick(view v) { Intent pindah = new Intent(home.this, soalgadar.class); startactivity(pindah); ); ImageButton c = (ImageButton) findviewbyid(r.id.btnvideo); c.setonclicklistener(new View.OnClickListener() { public void onclick(view v) { Intent pindah = new Intent(home.this, videogadar.class); startactivity(pindah); ); ImageButton d = (ImageButton) findviewbyid(r.id.btnabout); d.setonclicklistener(new View.OnClickListener() { public void onclick(view v) { Intent pindah = new Intent(home.this, aboutgadar.class); startactivity(pindah); ); ImageButton e = (ImageButton) findviewbyid(r.id.btnhelp);

4 e.setonclicklistener(new View.OnClickListener() { public void onclick(view v) { Intent pindah = new Intent(home.this, helpgadar.class); startactivity(pindah); ); 3. JSONParser.java package com.example.fauzansaef.penggunaanwindows7; import java.io.bufferedreader; import java.io.ioexception; import java.io.inputstream; import java.io.inputstreamreader; import java.io.unsupportedencodingexception; import java.util.list; import org.apache.http.httpentity; import org.apache.http.httpresponse; import org.apache.http.namevaluepair; import org.apache.http.client.clientprotocolexception; import org.apache.http.client.entity.urlencodedformentity; import org.apache.http.client.methods.httpget; import org.apache.http.client.methods.httppost; import org.apache.http.client.utils.urlencodedutils; import org.apache.http.impl.client.defaulthttpclient; import org.json.jsonexception; import org.json.jsonobject;

5 import android.util.log; public class JSONParser { static InputStream is = null; static JSONObject jobj = null; static String json = ""; // constructor public JSONParser() { // function get json from url // by making HTTP POST or GET mehtod public JSONObject makehttprequest(string url, String method, List<NameValuePair> params) { // Making HTTP request try { // check for request method if (method == "POST") { // request method is POST // defaulthttpclient DefaultHttpClient httpclient = new DefaultHttpClient(); HttpPost httppost = new HttpPost(url); httppost.setentity(new UrlEncodedFormEntity(params)); HttpResponse httpresponse = httpclient.execute(httppost); HttpEntity httpentity = httpresponse.getentity(); is = httpentity.getcontent(); else if (method == "GET") {

6 // request method is GET DefaultHttpClient httpclient = new DefaultHttpClient(); String paramstring = URLEncodedUtils.format(params, "utf-8"); url += "?" + paramstring; HttpGet httpget = new HttpGet(url); HttpResponse httpresponse = httpclient.execute(httpget); HttpEntity httpentity = httpresponse.getentity(); is = httpentity.getcontent(); catch (UnsupportedEncodingException e) { e.printstacktrace(); catch (ClientProtocolException e) { e.printstacktrace(); catch (IOException e) { e.printstacktrace(); try { BufferedReader reader = new BufferedReader(new InputStreamReader( is, "iso "), 8); StringBuilder sb = new StringBuilder(); String line = null; while ((line = reader.readline())!= null) { sb.append(line + "\n"); is.close(); json = sb.tostring(); catch (Exception e) { Log.e("Buffer Error", "Error converting result " + e.tostring());

7 // try parse the string to a JSON object try { jobj = new JSONObject(json); catch (JSONException e) { Log.e("JSON Parser", "Error parsing data " + e.tostring()); // return JSON String return jobj; 4. materi.java package com.example.fauzansaef.penggunaanwindows7; import android.content.intent; import android.support.v7.app.appcompatactivity; import android.os.bundle; import android.view.view; import android.widget.button; public class materi extends AppCompatActivity { Button btncarainstalasi, btnedisi, btnfitur, btnkelebihankekurangan, btnsejarah; Intent intent; protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_materi);

8 btncarainstalasi = (Button)findViewById(R.id.button); btnedisi = (Button)findViewById(R.id.button2); btnfitur = (Button)findViewById(R.id.button3); btnkelebihankekurangan = (Button)findViewById(R.id.button4); btnsejarah = (Button)findViewById(R.id.button5); btncarainstalasi.setonclicklistener(onclicklistener); btnedisi.setonclicklistener(onclicklistener); btnfitur.setonclicklistener(onclicklistener); btnkelebihankekurangan.setonclicklistener(onclicklistener); btnsejarah.setonclicklistener(onclicklistener); public View.OnClickListener onclicklistener = new View.OnClickListener() { public void onclick(view view) { switch (view.getid()){ case R.id.button: intent = new Intent(materi.this, tampilmateri.class); intent.putextra("materi", "carainstalasi"); intent.addflags(intent.flag_activity_new_task Intent.FLAG_ACTIVITY_CLEAR_TOP); startactivity(intent); break; case R.id.button2:

9 tampilmateri2.class); intent = new Intent(materi.this, intent.putextra("materi", "edisi"); intent.addflags(intent.flag_activity_new_task Intent.FLAG_ACTIVITY_CLEAR_TOP); startactivity(intent); break; case R.id.button3: intent = new Intent(materi.this, tampilmateri3.class); intent.putextra("materi", "fitur"); intent.addflags(intent.flag_activity_new_task Intent.FLAG_ACTIVITY_CLEAR_TOP); startactivity(intent); break; case R.id.button4: intent = new Intent(materi.this, tampilmateri4.class); intent.putextra("materi", "kelebihankekurangan"); intent.addflags(intent.flag_activity_new_task Intent.FLAG_ACTIVITY_CLEAR_TOP); startactivity(intent); break; case R.id.button5: intent = new Intent(materi.this, tampilmateri5.class); intent.putextra("materi", "sejarah");

10 intent.addflags(intent.flag_activity_new_task Intent.FLAG_ACTIVITY_CLEAR_TOP); startactivity(intent); break; ; 5. tampilmateri.java package com.example.fauzansaef.penggunaanwindows7; import android.app.progressdialog; import android.content.intent; import android.os.asynctask; import android.support.v7.app.appcompatactivity; import android.os.bundle; import android.widget.textview; import org.apache.http.namevaluepair; import org.json.jsonarray; import org.json.jsonexception; import org.json.jsonobject; import java.util.arraylist; import java.util.list; public class tampilmateri extends AppCompatActivity { String mtrjson = ""; Intent it;

11 private static String Url_Check = " private static final String TAG_SUKSES = "sukses"; private ProgressDialog pdialog; JSONArray Data_Ck=null; TextView materi; protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_tampilmateri); mtrjson = ""; materi = (TextView)findViewById(R.id.textView); it = getintent(); Url_Check += "tampilcarainstalasi.php"; new ambilmateri().execute(); Void> { private class ambilmateri extends AsyncTask<Void, Void, protected void onpreexecute() { super.onpreexecute(); // Showing progress dialog pdialog = new ProgressDialog(tampilmateri.this); pdialog.setmessage("please wait..."); pdialog.setcancelable(false);

12 pdialog.show(); protected Void doinbackground(void... params) { JSONParser json_parser = new JSONParser(); List<NameValuePair> param = new ArrayList<NameValuePair>(); JSONObject json = json_parser.makehttprequest(url_check, "GET", param); try{ int sukses = json.getint(tag_sukses); if(sukses == 1){ i++){ Data_Ck = json.getjsonarray("data"); for (int i = 0; i < Data_Ck.length(); Data_Ck.getJSONObject(i); JSONObject chk = mtrjson = chk.getstring("materi"); catch (JSONException e){ e.printstacktrace(); return null;

13 protected void onpostexecute(void avoid) { pdialog.dismiss(); super.onpostexecute(avoid); materi.settext(mtrjson); public void onbackpressed() { super.onbackpressed(); Intent intent = new Intent(tampilmateri.this, com.example.fauzansaef.penggunaanwindows7.materi.class); intent.addflags(intent.flag_activity_new_task Intent.FLAG_ACTIVITY_CLEAR_TOP); startactivity(intent); 6. tampilmateri2.java package com.example.fauzansaef.penggunaanwindows7; import android.app.progressdialog; import android.content.intent; import android.os.asynctask; import android.support.v7.app.appcompatactivity; import android.os.bundle; import android.widget.textview; import org.apache.http.namevaluepair; import org.json.jsonarray; import org.json.jsonexception;

14 import org.json.jsonobject; import java.util.arraylist; import java.util.list; public class tampilmateri2 extends AppCompatActivity { String mtrjson = ""; Intent it; private static String Url_Check = " private static final String TAG_SUKSES = "sukses"; private ProgressDialog pdialog; JSONArray Data_Ck=null; TextView materi; protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_tampilmateri); mtrjson = ""; materi = (TextView)findViewById(R.id.textView); it = getintent(); Url_Check += "tampiledisi.php"; new ambilmateri().execute();

15 Void> { private class ambilmateri extends AsyncTask<Void, Void, protected void onpreexecute() { super.onpreexecute(); // Showing progress dialog pdialog = new ProgressDialog(tampilmateri2.this); pdialog.setmessage("please wait..."); pdialog.setcancelable(false); pdialog.show(); protected Void doinbackground(void... params) { JSONParser json_parser = new JSONParser(); List<NameValuePair> param = new ArrayList<NameValuePair>(); JSONObject json = json_parser.makehttprequest(url_check, "GET", param); try{ int sukses = json.getint(tag_sukses); if(sukses == 1){ i++){ Data_Ck = json.getjsonarray("data"); for (int i = 0; i < Data_Ck.length(); Data_Ck.getJSONObject(i); JSONObject chk =

16 mtrjson = chk.getstring("materi"); catch (JSONException e){ e.printstacktrace(); return null; protected void onpostexecute(void avoid) { pdialog.dismiss(); super.onpostexecute(avoid); materi.settext(mtrjson); public void onbackpressed() { super.onbackpressed(); Intent intent = new Intent(tampilmateri2.this, com.example.fauzansaef.penggunaanwindows7.materi.class); intent.addflags(intent.flag_activity_new_task Intent.FLAG_ACTIVITY_CLEAR_TOP); startactivity(intent);

17 7. tampilmateri3.java package com.example.fauzansaef.penggunaanwindows7; import android.app.progressdialog; import android.content.intent; import android.os.asynctask; import android.support.v7.app.appcompatactivity; import android.os.bundle; import android.widget.textview; import org.apache.http.namevaluepair; import org.json.jsonarray; import org.json.jsonexception; import org.json.jsonobject; import java.util.arraylist; import java.util.list; public class tampilmateri3 extends AppCompatActivity { String mtrjson = ""; Intent it; private static String Url_Check = " private static final String TAG_SUKSES = "sukses"; private ProgressDialog pdialog; JSONArray Data_Ck=null; TextView materi; protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate);

18 setcontentview(r.layout.activity_tampilmateri); mtrjson = ""; materi = (TextView)findViewById(R.id.textView); it = getintent(); Url_Check += "tampilfitur.php"; new ambilmateri().execute(); Void> { private class ambilmateri extends AsyncTask<Void, Void, protected void onpreexecute() { super.onpreexecute(); // Showing progress dialog pdialog = new ProgressDialog(tampilmateri3.this); pdialog.setmessage("please wait..."); pdialog.setcancelable(false); pdialog.show(); protected Void doinbackground(void... params) { JSONParser json_parser = new JSONParser(); List<NameValuePair> param = new ArrayList<NameValuePair>(); JSONObject json = json_parser.makehttprequest(url_check, "GET", param);

19 try{ int sukses = json.getint(tag_sukses); if(sukses == 1){ i++){ Data_Ck = json.getjsonarray("data"); for (int i = 0; i < Data_Ck.length(); Data_Ck.getJSONObject(i); JSONObject chk = mtrjson = chk.getstring("materi"); catch (JSONException e){ e.printstacktrace(); return null; protected void onpostexecute(void avoid) { pdialog.dismiss(); super.onpostexecute(avoid); materi.settext(mtrjson); public void onbackpressed() {

20 super.onbackpressed(); Intent intent = new Intent(tampilmateri3.this, com.example.fauzansaef.penggunaanwindows7.materi.class); intent.addflags(intent.flag_activity_new_task Intent.FLAG_ACTIVITY_CLEAR_TOP); startactivity(intent); 8. tampilmateri4.java package com.example.fauzansaef.penggunaanwindows7; import android.app.progressdialog; import android.content.intent; import android.os.asynctask; import android.support.v7.app.appcompatactivity; import android.os.bundle; import android.widget.textview; import org.apache.http.namevaluepair; import org.json.jsonarray; import org.json.jsonexception; import org.json.jsonobject; import java.util.arraylist; import java.util.list; public class tampilmateri4 extends AppCompatActivity { String mtrjson = ""; Intent it;

21 private static String Url_Check = " private static final String TAG_SUKSES = "sukses"; private ProgressDialog pdialog; JSONArray Data_Ck=null; TextView materi; protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_tampilmateri); mtrjson = ""; materi = (TextView)findViewById(R.id.textView); it = getintent(); Url_Check += "tampilkelebihankekurangan.php"; new ambilmateri().execute(); Void> { private class ambilmateri extends AsyncTask<Void, Void, protected void onpreexecute() { super.onpreexecute(); // Showing progress dialog pdialog = new ProgressDialog(tampilmateri4.this); pdialog.setmessage("please wait..."); pdialog.setcancelable(false);

22 pdialog.show(); protected Void doinbackground(void... params) { JSONParser json_parser = new JSONParser(); List<NameValuePair> param = new ArrayList<NameValuePair>(); JSONObject json = json_parser.makehttprequest(url_check, "GET", param); try{ int sukses = json.getint(tag_sukses); if(sukses == 1){ i++){ Data_Ck = json.getjsonarray("data"); for (int i = 0; i < Data_Ck.length(); Data_Ck.getJSONObject(i); JSONObject chk = mtrjson = chk.getstring("materi"); catch (JSONException e){ e.printstacktrace(); return null;

23 protected void onpostexecute(void avoid) { pdialog.dismiss(); super.onpostexecute(avoid); materi.settext(mtrjson); public void onbackpressed() { super.onbackpressed(); Intent intent = new Intent(tampilmateri4.this, com.example.fauzansaef.penggunaanwindows7.materi.class); intent.addflags(intent.flag_activity_new_task Intent.FLAG_ACTIVITY_CLEAR_TOP); startactivity(intent); 9. tampilmateri5.java package com.example.fauzansaef.penggunaanwindows7; import android.app.progressdialog; import android.content.intent; import android.os.asynctask; import android.support.v7.app.appcompatactivity; import android.os.bundle; import android.widget.textview; import org.apache.http.namevaluepair;

24 import org.json.jsonarray; import org.json.jsonexception; import org.json.jsonobject; import java.util.arraylist; import java.util.list; public class tampilmateri5 extends AppCompatActivity { String mtrjson = ""; Intent it; private static String Url_Check = " private static final String TAG_SUKSES = "sukses"; private ProgressDialog pdialog; JSONArray Data_Ck=null; TextView materi; protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_tampilmateri); mtrjson = ""; materi = (TextView)findViewById(R.id.textView); it = getintent(); Url_Check += "tampilsejarah.php"; new ambilmateri().execute();

25 Void> { private class ambilmateri extends AsyncTask<Void, Void, protected void onpreexecute() { super.onpreexecute(); // Showing progress dialog pdialog = new ProgressDialog(tampilmateri5.this); pdialog.setmessage("please wait..."); pdialog.setcancelable(false); pdialog.show(); protected Void doinbackground(void... params) { JSONParser json_parser = new JSONParser(); List<NameValuePair> param = new ArrayList<NameValuePair>(); JSONObject json = json_parser.makehttprequest(url_check, "GET", param); try{ int sukses = json.getint(tag_sukses); if(sukses == 1){ i++){ Data_Ck = json.getjsonarray("data"); for (int i = 0; i < Data_Ck.length();

26 Data_Ck.getJSONObject(i); JSONObject chk = mtrjson = chk.getstring("materi"); catch (JSONException e){ e.printstacktrace(); return null; protected void onpostexecute(void avoid) { pdialog.dismiss(); super.onpostexecute(avoid); materi.settext(mtrjson); public void onbackpressed() { super.onbackpressed(); Intent intent = new Intent(tampilmateri5.this, com.example.fauzansaef.penggunaanwindows7.materi.class); intent.addflags(intent.flag_activity_new_task Intent.FLAG_ACTIVITY_CLEAR_TOP); startactivity(intent);

27 10. about.java package com.example.fauzansaef.penggunaanwindows7; import android.support.v7.app.appcompatactivity; import android.os.bundle; import android.widget.textview; public class about extends AppCompatActivity { protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_about); TextView tv = new TextView(this); tv.settext("\n Made By : Kang Mahsya \n Copyright 2016 \n D3 Teknik Informatika \n \n \n 'Jika anda tidak ingin belajar, tak seorang pun yang akan menolong anda. Sebaliknya jika anda memutuskan untuk belajar, tak seorang pun yang mampu menghentikan anda' "); setcontentview(tv); 11. help.java package com.example.fauzansaef.penggunaanwindows7; import android.support.v7.app.appcompatactivity; import android.os.bundle; import android.widget.textview; public class help extends AppCompatActivity { protected void oncreate(bundle savedinstancestate) {

28 super.oncreate(savedinstancestate); setcontentview(r.layout.activity_help); TextView tv = new TextView(this); tv.settext("\n For help : / \n Line: abiezamhs"); setcontentview(tv); 12. activity_home.xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android=" xmlns:tools=" android:layout_width="match_parent" 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" tools:context="com.example.fauzansaef.fauzansaef.home"> <ImageButton android:layout_width="128dp" android:layout_height="128dp" android:id="@+id/btnmateri" android:src="@drawable/materi" android:layout_alignparenttop="true" android:layout_alignparentleft="true" android:layout_alignparentstart="true" /> <ImageButton android:layout_width="128dp"

29 android:layout_height="128dp" android:layout_alignparentright="true" android:layout_alignparentend="true" /> <ImageButton android:layout_width="128dp" android:layout_height="128dp" android:layout_centervertical="true" android:layout_alignparentleft="true" android:layout_alignparentstart="true" /> <ImageButton android:layout_width="128dp" android:layout_height="128dp" /> <ImageButton android:layout_width="128dp" android:layout_height="128dp" android:layout_alignparentbottom="true" />

30 <ImageButton android:layout_width="128dp" android:layout_height="128dp" /> </RelativeLayout> 13. activity_materi.xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android=" xmlns:tools=" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.example.mhdpradanaakbar.penggunaanwindows7. materigadar"> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="cara Instalasi WIndows 7" android:layout_alignparenttop="true" android:layout_alignparentleft="true" android:layout_alignparentstart="true"

31 android:layout_margintop="54dp" android:layout_alignparentright="true" android:layout_alignparentend="true" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="edisi Windows 7" android:layout_alignparentleft="true" android:layout_alignparentstart="true" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="fitur-fitur Windows 7" android:layout_alignparentleft="true" android:layout_alignparentstart="true" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="kelebihan dan Kekurangan Windows 7" android:layout_alignparentleft="true" android:layout_alignparentstart="true"

32 android:layout_alignparentright="true" android:layout_alignparentend="true" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="sejarah" android:layout_alignparentleft="true" android:layout_alignparentstart="true" android:layout_alignparentright="true" android:layout_alignparentend="true" /> <SearchView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentright="true" android:layout_alignparentend="true" /> </RelativeLayout>

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

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

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

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

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

LAMPIRAN PROGRAM. public class ListArrayAdapterPost extends ArrayAdapter<ModelDataPost> {

LAMPIRAN 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 information

Serious 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 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 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

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

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

Android JSON Parsing Tutorial

Android JSON Parsing Tutorial Android JSON Parsing Tutorial by Kapil - Thursday, May 19, 2016 http://www.androidtutorialpoint.com/networking/json-parsing-tutorial-android/ YouTube Video JSON(JavaScript Object Notation), is a language

More information

Produced by. Mobile Application Development. Higher Diploma in Science in Computer Science. Eamonn de Leastar

Produced 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 information

Lampiran Program : Res - Layout Activity_main.xml

More information

Mobile Development Lecture 9: Android & RESTFUL Services

Mobile Development Lecture 9: Android & RESTFUL Services Mobile Development Lecture 9: Android & RESTFUL Services Mahmoud El-Gayyar elgayyar@ci.suez.edu.eg Elgayyar.weebly.com What is a RESTFUL Web Service REST stands for REpresentational State Transfer. In

More information

EMBEDDED SYSTEMS PROGRAMMING Application Tip: Managing Screen Orientation

EMBEDDED 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 information

Produced by. Mobile Application Development. Higher Diploma in Science in Computer Science. Eamonn de Leastar

Produced 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 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

PROGRAMMING APPLICATIONS DECLARATIVE GUIS

PROGRAMMING 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 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

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

// 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

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

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

Mobile Software Development for Android - I397

Mobile 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 information

Statistics 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 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

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

M.A.D ASSIGNMENT # 2 REHAN ASGHAR BSSE 15126

M.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 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

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

APPENDIX CODE TO STORE THE BUTTON MENU AND MOVE THE PAGE

APPENDIX 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 information

EMBEDDED SYSTEMS PROGRAMMING Android Services

EMBEDDED 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 information

LAMPIRAN. byte bcdtodec(byte val) { return( (val/16*10) + (val%16) ); } void setup() {

LAMPIRAN. byte bcdtodec(byte val) { return( (val/16*10) + (val%16) ); } void setup() { 60 LAMPIRAN 1. Source code Arduino. #include "Wire.h" #include #include #define DS3231_I2C_ADDRESS 0x68 SoftwareSerial sim800l(11, 10); int dline[28]; byte *cacah=0; String

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

Produced by. Mobile Application Development. Higher Diploma in Science in Computer Science. Eamonn de Leastar

Produced 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 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

<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

Android UI Development

Android 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 information

Android Application development for importing Vehicles to Ethiopia Tracking system. Zekir Ahmed Awol

Android Application development for importing Vehicles to Ethiopia Tracking system. Zekir Ahmed Awol Android Application development for importing Vehicles to Ethiopia Tracking system Zekir Ahmed Awol Thesis Business Information Technology 2016 Abstract 30/11/2016 Degree programme Author Zekir Ahmed Awol

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 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

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

Introduction to Android Development

Introduction 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 information

CSE 660 Lab 3 Khoi Pham Thanh Ho April 19 th, 2015

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 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

Fragments. Lecture 11

Fragments. 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 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

IPN-ESCOM Application Development for Mobile Devices. Extraordinary. A Web service, invoking the SOAP protocol, in an Android application.

IPN-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 information

LISTING PROGRAM APLIKASI ANDROID

LISTING 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 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

APPENDIX. Application Store Admin. build.gradle. app/build.gradle

APPENDIX. Application Store Admin. build.gradle. app/build.gradle Application Store Admin build.gradle APPENDIX // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() dependencies { classpath

More information

Type of Submission: Article Title: Watson Explorer REST API Tutorial #1 Subtitle: Java Programming. Keywords: WEX, WCA, analytics, Watson

Type of Submission: Article Title: Watson Explorer REST API Tutorial #1 Subtitle: Java Programming. Keywords: WEX, WCA, analytics, Watson Type of Submission: Article Title: Watson Explorer REST API Tutorial #1 Subtitle: Java Programming Keywords: WEX, WCA, analytics, Watson Prefix: Mr. Given: Kameron Middle: A. Family: Cole Suffix: Job Title:

More information

Android - Widgets Tutorial

Android - 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 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

... 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

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

This document is downloaded from DR-NTU, Nanyang Technological University Library, Singapore.

This document is downloaded from DR-NTU, Nanyang Technological University Library, Singapore. This document is downloaded from DR-NTU, Nanyang Technological University Library, Singapore. Title Web access to cloud system Author(s) Tao, Qingyi Citation Tao, Q. (2014). Web access to cloud system.

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

Software Practice 3 Before we start Today s lecture Today s Task Team organization

Software 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 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

Intro to Android Development 3. Accessibility Capstone Dec 10, 2010

Intro to Android Development 3. Accessibility Capstone Dec 10, 2010 Intro to Android Development 3 Accessibility Capstone Dec 10, 2010 Using Web Services HTTP Request HTTP Response Using Web Services HTTP Request HTTP Response webserver some program Why use a web service?

More information

Dynamically Create Admob Banner and Interstitial Ads

Dynamically Create Admob Banner and Interstitial Ads Dynamically Create Admob Banner and Interstitial Ads activity_main.xml file 0 0 0

More information

Android Application Development. By : Shibaji Debnath

Android 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 information

EMBEDDED SYSTEMS PROGRAMMING Application Basics

EMBEDDED SYSTEMS PROGRAMMING Application Basics EMBEDDED SYSTEMS PROGRAMMING 2015-16 Application Basics APPLICATIONS Application components (e.g., UI elements) are objects instantiated from the platform s frameworks Applications are event driven ( there

More information

Produced by. Mobile Application Development. Eamonn de Leastar

Produced 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 information

A Crash Course to Android Mobile Platform

A Crash Course to Android Mobile Platform Enterprise Application Development using J2EE Shmulik London Lecture #2 A Crash Course to Android Mobile Platform Enterprise Application Development Using J2EE / Shmulik London 2004 Interdisciplinary Center

More information

使用 TensorFlow 設計矩陣乘法計算並轉移執行在 Android 上 建國科技大學資管系 饒瑞佶 2017/8

使用 TensorFlow 設計矩陣乘法計算並轉移執行在 Android 上 建國科技大學資管系 饒瑞佶 2017/8 使用 TensorFlow 設計矩陣乘法計算並轉移執行在 Android 上 建國科技大學資管系 饒瑞佶 2017/8 Python 設計 Model import tensorflow as tf from tensorflow.python.tools import freeze_graph from tensorflow.python.tools import optimize_for_inference_lib

More information

Wireless Vehicle Bus Adapter (WVA) Android Library Tutorial

Wireless Vehicle Bus Adapter (WVA) Android Library Tutorial Wireless Vehicle Bus Adapter (WVA) Android Library Tutorial Revision history 90001431-13 Revision Date Description A October 2014 Original release. B October 2017 Rebranded the document. Edited the document.

More information

Multiple Activities. Many apps have multiple activities

Multiple Activities. Many apps have multiple activities Intents Lecture 7 Multiple Activities Many apps have multiple activities An activity A can launch another activity B in response to an event The activity A can pass data to B The second activity B can

More information

Our First Android Application

Our 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

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

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

SD Module-1 Android Dvelopment

SD Module-1 Android Dvelopment SD Module-1 Android Dvelopment Experiment No: 05 1.1 Aim: Download Install and Configure Android Studio on Linux/windows platform. 1.2 Prerequisites: Microsoft Windows 10/8/7/Vista/2003 32 or 64 bit Java

More information

Diving into Android. By Jeroen Tietema. Jeroen Tietema,

Diving into Android. By Jeroen Tietema. Jeroen Tietema, Diving into Android By Jeroen Tietema Jeroen Tietema, 2015 1 Requirements 4 Android SDK 1 4 Android Studio (or your IDE / editor of choice) 4 Emulator (Genymotion) or a real device. 1 See https://developer.android.com

More information

Screen Slides. The Android Studio wizard adds a TextView to the fragment1.xml layout file and the necessary code to Fragment1.java.

Screen Slides. The Android Studio wizard adds a TextView to the fragment1.xml layout file and the necessary code to Fragment1.java. Screen Slides References https://developer.android.com/training/animation/screen-slide.html https://developer.android.com/guide/components/fragments.html Overview A fragment can be defined by a class and

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

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

ELET4133: Embedded Systems. Topic 15 Sensors

ELET4133: Embedded Systems. Topic 15 Sensors ELET4133: Embedded Systems Topic 15 Sensors Agenda What is a sensor? Different types of sensors Detecting sensors Example application of the accelerometer 2 What is a sensor? Piece of hardware that collects

More information

Vienos veiklos būsena. Theory

Vienos veiklos būsena. Theory Vienos veiklos būsena Theory While application is running, we create new Activities and close old ones, hide the application and open it again and so on, and Activity can process all these events. It is

More information

Notification mechanism

Notification 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 information

Getting Started. Dr. Miguel A. Labrador Department of Computer Science & Engineering

Getting Started. Dr. Miguel A. Labrador Department of Computer Science & Engineering Getting Started Dr. Miguel A. Labrador Department of Computer Science & Engineering labrador@csee.usf.edu http://www.csee.usf.edu/~labrador 1 Goals Setting up your development environment Android Framework

More information

LAMPIRAN 1 LAMPIRAN 2 SCREENSHOOT LAMPIRAN 3 LISTING FILE JAVA CLASS 1. main_activity.java packagecom.example.sig.sigrs; import android.content.intent; import android.net.uri; import android.support.v7.app.appcompatactivity;

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

RESTful Examples. RESTful Examples 1 Apache 3 Jersey 5 JAX-RS 7 ApplicationConfig.java 7 HelloGregg.java 8

RESTful Examples. RESTful Examples 1 Apache 3 Jersey 5 JAX-RS 7 ApplicationConfig.java 7 HelloGregg.java 8 RESTful Examples RESTful Examples 1 Apache 3 Jersey 5 JAX-RS 7 ApplicationConfig.java 7 HelloGregg.java 8 REST in JavaScript 9 #1) createrequest with XMLHttpRequest 9 #2) Must supply a Callback function

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

Android Service. Lecture 19

Android Service. Lecture 19 Android Service Lecture 19 Services Service: A background task used by an app. Example: Google Play Music plays the music using a service Example: Web browser runs a downloader service to retrieve a file

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

LifeStreet Media Android Publisher SDK Integration Guide

LifeStreet 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 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

by Aaron Bartell of KrengelTech Copyright Aaron Bartell 2010

by Aaron Bartell of KrengelTech Copyright Aaron Bartell 2010 Copyright Aaron Bartell 2010 by Aaron Bartell of KrengelTech aaronbartell@mowyourlawn.com + Droid = (that s crazy fun for us laymen) Copyright Aaron Bartell 2010 by Aaron Bartell of KrengelTech aaronbartell@mowyourlawn.com

More information

An Overview of the Android Programming

An 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 information

API Guide for Gesture Recognition Engine. Version 1.1

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

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

05. RecyclerView and Styles

05. RecyclerView and Styles 05. RecyclerView and Styles 08.03.2018 1 Agenda Intents Creating Lists with RecyclerView Creating Cards with CardView Application Bar Menu Styles and Themes 2 Intents 3 What is Intent? An Intent is an

More information

INTERNATIONAL JOURNAL FOR ADVANCE RESEARCH IN ENGINEERING AND TECHNOLOGY WINGS TO YOUR THOUGHTS.. Adopting elockbox to achieve Mobile Data Security

INTERNATIONAL JOURNAL FOR ADVANCE RESEARCH IN ENGINEERING AND TECHNOLOGY WINGS TO YOUR THOUGHTS.. Adopting elockbox to achieve Mobile Data Security Adopting elockbox to achieve Mobile Data Security Akshay Prakash Pawar 1, Rohan Manoj Thakkar 2, Saurabh Sahebrao Salunkhe 3, Sarvesh Suhas Kapre 4 1 K. J. Somaiya College of Engineering, Student of Computer

More information

SMART VEHICLE TRACKING APPLICATION

SMART 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 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