<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android=" package="com.example.root.

Size: px
Start display at page:

Download "<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android=" package="com.example.root."

Transcription

1 1 Android Manifest.Xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android=" package="com.example.root.bloodjobs"> /> <uses-permission android:name="android.permission.internet" /> <uses-permission android:name="android.permission.call_phone" <supports-screens> android:largescreens="true" android:normalscreens="true" android:smallscreens="true" android:xlargescreens="true" </supports-screens> /> <application android:allowbackup="true" android:supportsrtl="true" <activity android:name=".splashscreen"> <intent-filter> <action android:name="android.intent.action.main" <category android:name="android.intent.category.launcher" /> </intent-filter> </activity> <activity android:name=".home" /> <activity android:name=".daftar" android:screenorientation="portrait" /> <activity

2 2 android:name=".login" android:screenorientation="portrait" /> <activity android:name=".homerelawan" /> <activity android:name=".donor" /> <activity android:name=".profil" /> <activity android:name=".kontak_relawan" /> <activity android:name=".bdarah" /> <activity android:name=".skbdarah" /> <activity android:name=".awal" /> <activity android:name=".layar1" /> <activity android:name=".layar2" /> <activity android:name=".tap" /> <activity android:name=".kamus" /> <activity android:name=".kgoldar" /> <activity android:name=".kdarah" /> <activity android:name=".khemoglobin" /> <activity android:name=".krhesus" /> <activity android:name=".kplasma" /> <activity android:name=".kseldarahmerah" /> <activity android:name=".kseldarahputih" /> <activity android:name=".ktransfusi" /> <activity android:name=".kdonor" /> <activity android:name=".google"></activity> </application> </manifest> Activity_awal.xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android=" xmlns:tools="

3 3 android:layout_height="match_parent" tools:context="com.example.root.bloodjobs.awal"> <android.support.v4.view.viewpager android:layout_height="match_parent" /> <LinearLayout android:layout_alignparentbottom="true" android:gravity="center" android:orientation="horizontal"></linearlayout> <View android:layout_height="1dp" android:alpha=".5" android:background="#100b0b" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentbottom="true" android:layout_alignparentright="true" android:layout_alignparentend="true" android:textstyle="bold" android:onclick="btnnextclick" android:textcolor="#121111" />

4 4 <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentbottom="true" android:layout_alignparentstart="true" android:layout_alignparentleft="true" android:textstyle="bold" android:onclick="btnskipclick" android:textcolor="#161515" /> </RelativeLayout> awal.java package com.example.root.bloodjobs; import android.content.context; import android.content.intent; import android.os.bundle; import android.support.v4.view.pageradapter; import android.support.v4.view.viewpager; import android.support.v7.app.appcompatactivity; import android.text.html; import android.view.layoutinflater; import android.view.view; import android.view.viewgroup; import android.widget.button; import android.widget.linearlayout; import android.widget.textview; public class Awal extends AppCompatActivity { private ViewPager viewpager;

5 5 private ViewPagerAdapter viewpageradapter; private LinearLayout dotslayout; private TextView[] dots; private int[] layouts; private Button btnskip, protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_awal); viewpager = (ViewPager) findviewbyid(r.id.view_pager); dotslayout = (LinearLayout) findviewbyid(r.id.layoutdots); btnskip = (Button) findviewbyid(r.id.btn_skip); btnnext = (Button) findviewbyid(r.id.btn_next); layouts = new int[]{ R.layout.activity_layar1, R.layout.activity_layar2; // adding bottom dots addbottomdots(0); viewpageradapter = new ViewPagerAdapter(); viewpager.setadapter(viewpageradapter); viewpager.addonpagechangelistener(viewpagerpagechangelistener); public void btnskipclick(view v) { launchhomescreen();

6 6 public void btnnextclick(view v) { // checking for last page // if last page home screen will be launched int current = getitem(1); if (current < layouts.length) { // move to next screen viewpager.setcurrentitem(current); else { launchhomescreen(); ViewPager.OnPageChangeListener viewpagerpagechangelistener = new ViewPager.OnPageChangeListener() public void onpageselected(int position) { addbottomdots(position); // changing the next button text 'NEXT' / 'GOT IT' if (position == layouts.length - 1) { // last page. make button text to GOT IT btnnext.settext(getstring(r.string.start)); btnskip.setvisibility(view.gone); else { // still pages are left btnnext.settext(getstring(r.string.next)); public void onpagescrolled(int arg0, float arg1, int arg2) {

7 public void onpagescrollstatechanged(int arg0) { ; private void addbottomdots(int currentpage) { dots = new TextView[layouts.length]; dotslayout.removeallviews(); for (int i = 0; i < dots.length; i++) { dots[i] = new TextView(this); dots[i].settext(html.fromhtml(" ")); dots[i].settextsize(35); dots[i].settextcolor(getresources().getcolor(r.color.dot_inactive) ); dotslayout.addview(dots[i]); if (dots.length > 0) dots[currentpage].settextcolor(getresources().getcolor(r.color.dot _active)); private int getitem(int i) { return viewpager.getcurrentitem() + i; private void launchhomescreen() { startactivity(new Intent(this, Home.class)); finish();

8 8 public class ViewPagerAdapter extends PagerAdapter { private LayoutInflater layoutinflater; public ViewPagerAdapter() public Object instantiateitem(viewgroup container, int position) { layoutinflater = (LayoutInflater) getsystemservice(context.layout_inflater_service); container, false); View view = layoutinflater.inflate(layouts[position], container.addview(view); return public int getcount() { return public boolean isviewfromobject(view view, Object obj) { return view == Object object) { public void destroyitem(viewgroup container, int position,

9 9 View view = (View) object; container.removeview(view); Bdarah.java package com.example.root.bloodjobs; import android.content.intent; import android.graphics.paint; import android.support.v7.app.appcompatactivity; import android.os.bundle; import android.view.view; import android.widget.textview; public class Bdarah extends AppCompatActivity { TextView protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_bdarah); tvsk = (TextView)findViewById(R.id.sk); tvsk.setpaintflags(paint.underline_text_flag); public void bdarah (View view){ Intent intent = new Intent(Bdarah.this,skbdarah.class); startactivity(intent); Activity_daftar.xml

10 10 <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android=" xmlns:app=" xmlns:tools=" android:layout_height="match_parent" tools:context="com.example.root.bloodjobs.daftar" android:weightsum="1"> <ScrollView android:layout_height="match_parent"> <LinearLayout android:layout_height="match_parent" android:orientation="vertical"> <FrameLayout android:layout_height="200dp" android:background="#e20514" android:layout_alignparenttop="true" android:layout_centerhorizontal="true" <ImageView android:layout_height="150dp" android:gravity="center" android:layout_margintop="10dp" </FrameLayout> <FrameLayout

11 11 android:background="#ffffff" android:layout_height="match_parent" > <LinearLayout android:layout_marginleft="20dp" android:orientation="vertical" android:layout_height="match_parent"> <TextView android:text="biodata DIRI" android:layout_gravity="center" android:textalignment="center" android:textstyle="bold" android:textcolor="#000" android:textsize="25dp" android:layout_margintop="10dp" android:layout_height="wrap_content" /> <EditText android:layout_margintop="20dp" android:textcolorhint="#c31720" android:layout_height="match_parent" android:inputtype="textpersonname" android:ems="10" android:textcolor="#000" android:shadowcolor="#000" android:layout_marginright="30dp" android:hint="nama Lengkap" /> <EditText

12 12 android:layout_margintop="4dp" android:textcolor="#000" android:textcolorhint="#c31720" android:shadowcolor="#000" android:layout_marginright="30dp" android:layout_height="match_parent" android:inputtype="textpersonname" android:ems="10" android:hint="alamat" /> <EditText android:layout_margintop="4dp" android:textcolor="#000" android:textcolorhint="#c31720" android:shadowcolor="#000" android:layout_marginright="30dp" android:layout_height="wrap_content" android:inputtype="textpersonname" android:ems="10" android:hint="jenis Kelamin Pria/Wanita" android:maxlength="6" /> <EditText android:layout_margintop="4dp" android:textcolor="#000" android:textcolorhint="#c31720" android:shadowcolor="#000" android:layout_marginright="30dp" android:layout_height="wrap_content" android:ems="10" android:hint="tanggal Lahir "

13 13 android:maxlength="8" android:inputtype="date" /> <LinearLayout android:orientation="horizontal" android:layout_height="wrap_content"> <EditText android:layout_margintop="4dp" android:textcolor="#000" android:textcolorhint="#c31720" android:shadowcolor="#000" android:layout_width="100dp" android:layout_height="wrap_content" android:hint="usia" android:inputtype="number" android:maxlength="3" /> <TextView android:textsize="20dp" android:textstyle="bold" android:layout_marginleft="10dp" android:paddingtop="10dp" android:textcolor="#000000" android:layout_marginright="50dp" android:layout_height="match_parent" android:layout_gravity="left" android:text="tahun" /> </LinearLayout> <EditText android:layout_height="wrap_content" android:inputtype="textpersonname" android:ems="10" android:textcolorhint="#c31720"

14 14 android:hint="rhesus +/-" android:maxlength="5" /> <EditText android:layout_height="wrap_content" android:ems="10" android:textcolorhint="#c31720" android:hint="golongan darah" android:maxlength="3" android:inputtype="text" /> <EditText android:layout_height="wrap_content" android:inputtype="text address" android:ems="10" android:textcolorhint="#c31720" android:hint=" " /> <EditText android:layout_height="wrap_content" android:inputtype="textpassword" android:ems="10" android:textcolorhint="#c31720" android:hint="password" /> <TextView android:text="kontak" android:layout_gravity="center" android:textalignment="center" android:textstyle="bold"

15 15 android:textcolor="#000" android:textsize="25dp" android:layout_margintop="10dp" android:layout_height="wrap_content" /> <EditText android:layout_margintop="4dp" android:textcolor="#000" android:shadowcolor="#000" android:textcolorhint="#c31720" android:layout_marginright="30dp" android:layout_height="wrap_content" android:ems="10" android:hint="no Telepon 08xxx" android:inputtype="number" android:maxlength="15" /> <EditText android:layout_height="wrap_content" android:ems="10" android:textcolorhint="#c31720" android:hint="line" android:inputtype="textlongmessage" /> <EditText android:layout_height="wrap_content" android:ems="10" android:textcolorhint="#c31720" android:hint="whatsapp"

16 16 android:inputtype="textpersonname" /> <EditText android:layout_height="wrap_content" android:ems="10" android:textcolorhint="#c31720" android:hint="blackberry Massager" android:inputtype="textlongmessage" /> <EditText android:layout_height="wrap_content" android:ems="10" android:textcolorhint="#c31720" android:hint="lainnya" android:inputtype="textlongmessage" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="syarat dan Ketentuan" android:onclick="bdarah" android:layout_margintop="10dp" android:layout_gravity="center" android:textcolor="#c31922" android:textstyle="bold"/> <Button android:layout_margintop="20dp" android:text="daftar" android:elevation="10dp" android:visibility="visible" android:textcolor="#ffff"

17 17 android:background="#c31720" android:textstyle="bold" android:layout_marginbottom="5dp" android:layout_marginright="60dp" android:layout_marginleft="60dp" android:layout_height="wrap_content" android:textcolorhint="#c31720" android:onclick="daftar" /> </LinearLayout> </FrameLayout> <FrameLayout android:layout_height="70dp" android:background="#e20716" android:layout_weight="1" android:layout_margintop="10dp" android:layout_alignparentbottom="true" android:layout_alignparentstart="true" <ImageView android:layout_width="170dp" android:layout_height="match_parent" android:layout_gravity="left" <ImageView android:layout_width="150dp" android:layout_height="match_parent" android:layout_gravity="right"/> </FrameLayout> </LinearLayout>

18 18 </ScrollView> </RelativeLayout> Daftar.java package com.example.root.bloodjobs; import android.content.intent; import android.graphics.typeface; import android.os.bundle; import android.os.handler; import android.support.v7.app.appcompatactivity; import android.view.view; import android.widget.button; import android.widget.edittext; import android.widget.textview; public class Daftar extends AppCompatActivity { TextView textview,textview2,textview9,sk; EditText edtnama,edtalamat,edtjk,edttgl,edtusia,edtnotelp,edtrhesus,edtgold ar,edt ,edtpassword,edtline,edtwa,edtbbm,edtlain; Button btndaftar; String snama,salamat,sjk,stgl,susia,snotelp,srhesus,sgoldar,s ,spassw protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_daftar); edtnama=(edittext)findviewbyid(r.id.edtnama); edtalamat=(edittext)findviewbyid(r.id.edtalamat);

19 19 edtjk=(edittext)findviewbyid(r.id.edtjk); edttgl=(edittext)findviewbyid(r.id.edttgl); edtusia=(edittext)findviewbyid(r.id.edtusia); edtnotelp=(edittext)findviewbyid(r.id.edtnotelp); edtrhesus=(edittext)findviewbyid(r.id.edtrhesus); edtgoldar=(edittext)findviewbyid(r.id.edtgoldar); edt =(edittext)findviewbyid(r.id.edt ); edtpassword=(edittext)findviewbyid(r.id.edtpassword); edtline=(edittext)findviewbyid(r.id.edtline); edtwa=(edittext)findviewbyid(r.id.edtwa); edtbbm=(edittext)findviewbyid(r.id.edtbbm); edtlain=(edittext)findviewbyid(r.id.edtlain); btndaftar=(button)findviewbyid(r.id.btndaftar); String customfont = "Alegreya.ttf"; String custombold ="Alegreya-Bold.ttf"; Typeface typeface = Typeface.createFromAsset(getAssets(), customfont); Typeface typeface1 = Typeface.createFromAsset(getAssets(), custombold); textview=(textview)findviewbyid(r.id.textview); textview.settypeface(typeface1); textview2=(textview)findviewbyid(r.id.textview2); textview2.settypeface(typeface1); textview9=(textview)findviewbyid(r.id.textview9); textview9.settypeface(typeface1); sk=(textview)findviewbyid(r.id.sk); sk.settypeface(typeface1);

20 20 public void daftar (View view){ snama=edtnama.gettext().tostring(); salamat=edtalamat.gettext().tostring(); sjk=edtjk.gettext().tostring(); stgl=edttgl.gettext().tostring(); susia=edtusia.gettext().tostring(); snotelp=edtnotelp.gettext().tostring(); srhesus=edtrhesus.gettext().tostring(); sgoldar=edtgoldar.gettext().tostring(); s =edt .gettext().tostring(); spassword=edtpassword.gettext().tostring(); sline=edtline.gettext().tostring(); swa=edtwa.gettext().tostring(); sbbm=edtline.gettext().tostring(); slain=edtlain.gettext().tostring(); String method ="register"; Proses proses = new Proses(this); proses.execute(method,snama,salamat,sjk,stgl,susia,snotelp,srhesus,sgoldar,s , spassword,sline,swa,sbbm,slain); boolean doublebacktoexitpressedonce = public void onbackpressed() { if (doublebacktoexitpressedonce) { Intent intent = new Intent(Daftar.this,HomeRelawan.class); startactivity(intent); return; this.doublebacktoexitpressedonce = true; new Handler().postDelayed(new Runnable()

21 21 public void run() { doublebacktoexitpressedonce = false;, 2000); public void bdarah (View view){ Intent intent = new Intent(Daftar.this,skbdarah.class); startactivity(intent); Activity_donor.xml <?xml version="1.0" encoding="utf-8"?> <android.support.v4.widget.drawerlayout xmlns:android=" xmlns:app=" xmlns:tools=" android:id="@+id/drawer_layout" android:layout_height="match_parent" android:fitssystemwindows="true" tools:opendrawer="start"> <include layout="@layout/app_bar_donor" android:layout_height="match_parent" /> <android.support.design.widget.navigationview android:id="@+id/nav_view" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_gravity="start" android:fitssystemwindows="true" app:headerlayout="@layout/nav_header_donor"

22 22 /> </android.support.v4.widget.drawerlayout> Donor.java package com.example.root.bloodjobs; import android.content.intent; import android.os.bundle; import android.support.design.widget.navigationview; import android.support.v4.app.fragmentmanager; import android.support.v4.view.gravitycompat; import android.support.v4.widget.drawerlayout; import android.support.v7.app.actionbardrawertoggle; import android.support.v7.app.appcompatactivity; import android.support.v7.widget.toolbar; import android.view.menu; import android.view.menuitem; public class Donor extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener { NavigationView navigationview = null; Toolbar toolbar = protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_donor); //set initial fragment tampilancontent tampilancontent = new tampilancontent();

23 23 android.support.v4.app.fragmenttransaction fragmenttransaction = getsupportfragmentmanager().begintransaction(); fragmenttransaction.replace(r.id.content_donor,tampilancontent); fragmenttransaction.commit(); toolbar = (Toolbar) findviewbyid(r.id.toolbar); setsupportactionbar(toolbar); DrawerLayout drawer = (DrawerLayout) findviewbyid(r.id.drawer_layout); ActionBarDrawerToggle toggle = new ActionBarDrawerToggle( this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close); drawer.setdrawerlistener(toggle); toggle.syncstate(); navigationview = (NavigationView) findviewbyid(r.id.nav_view); public void onbackpressed() { DrawerLayout drawer = (DrawerLayout) findviewbyid(r.id.drawer_layout); if (drawer.isdraweropen(gravitycompat.start)) { drawer.closedrawer(gravitycompat.start); else { public boolean oncreateoptionsmenu(menu menu) { // Inflate the menu; this adds items to the action bar if it is present.

24 24 getmenuinflater().inflate(r.menu.donor, menu); return public boolean onoptionsitemselected(menuitem item) { // Handle action bar item clicks here. The action bar will // automatically handle clicks on the Home/Up button, so long // as you specify a parent activity in AndroidManifest.xml. int id = item.getitemid(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { Intent intent = new Intent(Donor.this,Daftar.class); startactivity(intent); public boolean onnavigationitemselected(menuitem item) { // Handle navigation view item clicks here. int id = item.getitemid(); if (id == R.id.nav_donor) { DonorDarah donordarah = new DonorDarah(); FragmentManager manager = getsupportfragmentmanager(); manager.begintransaction().replace(r.id.content_donor,donordarah,d onordarah.gettag()).commit(); else if (id == R.id.nav_transfusi) { Transfusi transfusi = new Transfusi(); FragmentManager manager = getsupportfragmentmanager(); manager.begintransaction().replace(r.id.content_donor,transfusi,tr

25 25 ansfusi.gettag()).commit(); else if (id == R.id.nav_about) { tentang tentang = new tentang(); FragmentManager manager = getsupportfragmentmanager(); manager.begintransaction().replace(r.id.content_donor,tentang,tent ang.gettag()).commit(); else if (id == R.id.nav_kontak) { kontak kontak = new kontak(); FragmentManager manager = getsupportfragmentmanager(); manager.begintransaction().replace(r.id.content_donor,kontak,konta k.gettag()).commit(); else if (id == R.id.nav_goldar) { tampilancontent tampilancontent = new tampilancontent(); FragmentManager manager = getsupportfragmentmanager(); manager.begintransaction().replace(r.id.content_donor,tampilancont ent,tampilancontent.gettag()).commit(); else if (id == R.id.nav_kamus) { Intent intent = new Intent(Donor.this,kamus.class); startactivity(intent); DrawerLayout drawer = (DrawerLayout) findviewbyid(r.id.drawer_layout); drawer.closedrawer(gravitycompat.start); return true; Fragment_donor_darah.xml

26 26 <RelativeLayout xmlns:android=" xmlns:app=" xmlns:tools=" android:layout_height="match_parent" tools:context="com.example.root.bloodjobs.donordarah"> <ScrollView android:layout_height="match_parent"> <LinearLayout android:orientation="vertical" android:layout_height="match_parent" > <FrameLayout android:layout_margintop="10dp" android:layout_height="270dp" android:layout_marginright="20dp" android:layout_marginleft="10dp"> </FrameLayout> <TextView android:text="donor darah adalah proses pengambilan darah dari seseorang secara sukarela atau pengganti untuk disimpan di bank darah sebagai stok darah untuk kemudian digunakan untuk transfusi darah." android:textsize="15dp" android:textcolor="#000" android:layout_marginright="20dp" android:layout_marginleft="10dp" android:layout_margintop="25dp" android:layout_height="wrap_content"

27 27 /> <TextView android:text="manfaat Donor Darah" android:textsize="20dp" android:textstyle="bold" android:layout_marginright="20dp" android:layout_marginleft="10dp" android:textcolor="#000" android:layout_margintop="25dp" android:layout_height="wrap_content" /> <TextView android:layout_marginright="20dp" android:layout_marginleft="10dp" android:text="1.menjaga kesehatan jantung dan membuat darah mengalir lebih lancar" android:textsize="15dp" android:textcolor="#000" android:layout_margintop="10dp" android:layout_height="wrap_content" /> merah" <TextView android:layout_marginright="20dp" android:layout_marginleft="10dp" android:text="2.meningkatkan produksi sel darah android:textsize="15dp" android:textcolor="#000" android:layout_margintop="5dp" android:layout_height="wrap_content" />

28 28 <TextView android:layout_marginright="20dp" android:layout_marginleft="10dp" android:text="3.mengecek kesehatan" android:textsize="15dp" android:textcolor="#000" android:layout_margintop="5dp" android:layout_height="wrap_content" /> <TextView android:layout_marginright="20dp" android:layout_marginleft="10dp" android:text="4.memperpanjang usia" android:textsize="15dp" android:textcolor="#000" android:layout_margintop="5dp" android:layout_height="wrap_content" /> <TextView android:layout_marginright="20dp" android:layout_marginleft="10dp" android:text="5.membantu menyelamatkan nyawa orang yang membutuhkan darah" android:textsize="15dp" android:textcolor="#000" android:layout_margintop="5dp" android:layout_height="wrap_content" /> <FrameLayout

29 29 android:layout_margintop="25dp" android:layout_marginright="20dp" android:layout_marginleft="10dp" android:layout_height="200dp"> </FrameLayout> <TextView android:layout_marginright="20dp" android:layout_marginleft="10dp" android:text="mekanisme Melakukan Donor darah" android:textsize="20dp" android:textcolor="#000" android:layout_margintop="25dp" android:textstyle="bold" android:layout_height="wrap_content" /> <TextView android:layout_marginright="20dp" android:layout_marginleft="10dp" android:text="1.donor menyerahkan kartu donornya kepada petugas transfusi bila sudah pernah donor, dan yang baru nantinya setelah menyumbangkan darahnya akan dibuatkan kartu donor" android:textsize="15dp" android:textcolor="#000" android:layout_margintop="10dp" android:layout_height="wrap_content" /> <TextView android:layout_marginright="20dp" android:layout_marginleft="10dp" android:text="2.donor ditimbang berat badannya" android:textsize="15dp"

30 30 android:textcolor="#000" android:layout_margintop="5dp" android:layout_height="wrap_content" /> <TextView android:layout_marginright="20dp" android:layout_marginleft="10dp" android:text="3.donor dites golongan darahnya dan kadar haemoglobil (HB)" android:textsize="15dp" android:textcolor="#000" android:layout_margintop="5dp" android:layout_height="wrap_content" /> <TextView android:layout_marginright="20dp" android:layout_marginleft="10dp" android:text="4.setelah memenuhi untuk menjadi donor sesuai persyaratan diatas seperti HB normal, berat badan cukup, maka donor dipersilahkan tidur untuk diperiksa kesehatannya oleh dokter transfusi" android:textsize="15dp" android:textcolor="#000" android:layout_margintop="5dp" android:layout_height="wrap_content" /> <TextView android:layout_marginright="20dp" android:layout_marginleft="10dp" android:text="5.setelah memenuhi syarat (sehat menurut dokter) barulah petugas transfusi darah (AID/PTID) siap untuk

31 31 menyadap (mengambil) darahnya berdasarkan berat badan (250 cc 500 cc)" android:textsize="15dp" android:textcolor="#000" android:layout_margintop="5dp" android:layout_height="wrap_content" /> <TextView android:layout_marginright="20dp" android:layout_marginleft="10dp" android:text="6.setelah diambil darahnya donor dipersilahkan ke kantin donor untuk menikmati hidangan ringan berupa kopi/susu, telor dan vitamin" android:textsize="15dp" android:textcolor="#000" android:layout_margintop="5dp" android:layout_height="wrap_content" /> <TextView android:layout_marginright="20dp" android:layout_marginleft="10dp" android:text="7.donor kembali ke bagian administrasi untuk mengambil kartu donornya yang telah diisi tanggal penyumbang dan registrasi oleh petugas" android:textsize="15dp" android:textcolor="#000" android:layout_margintop="5dp" android:layout_height="wrap_content" /> <TextView android:layout_marginright="20dp"

32 32 android:layout_marginleft="10dp" android:text="8.selesai (pulang), dan bisa kembali menyumbangkan darahnya setelah 75 hari(2,5 bulan)" android:textsize="15dp" android:textcolor="#000" android:layout_margintop="5dp" android:layout_height="wrap_content" /> <TextView android:layout_marginright="20dp" android:layout_marginleft="10dp" android:text="syarat Dasar Donor Darah" android:textsize="20dp" android:textcolor="#000" android:layout_margintop="25dp" android:textstyle="bold" android:layout_height="wrap_content" /> <TextView android:layout_marginright="20dp" android:layout_marginleft="10dp" android:text="1.usia minimal 17 tahun" android:textsize="15dp" android:textcolor="#000" android:layout_margintop="10dp" android:layout_height="wrap_content" /> <TextView android:layout_marginright="20dp" android:layout_marginleft="10dp"

33 33 dan wanita" android:text="2.berat Badan Minimal 45 kg untuk pria android:textsize="15dp" android:textcolor="#000" android:layout_margintop="5dp" android:layout_height="wrap_content" /> <TextView android:layout_marginright="20dp" android:layout_marginleft="10dp" android:text="3.tekanan Darah Normal, yakni tekanan sistol = mmhg dan tekanan diastol = mmhg" android:textsize="15dp" android:textcolor="#000" android:layout_margintop="5dp" android:layout_height="wrap_content" android:id="@+id/txts3" /> <TextView android:layout_marginright="20dp" android:layout_marginleft="10dp" android:text="4.denyut nadi teratur dengan Frekuensi kali/ menit" android:textsize="15dp" android:textcolor="#000" android:layout_margintop="5dp" android:layout_height="wrap_content" android:id="@+id/txts4" /> <TextView android:layout_marginright="20dp" android:layout_marginleft="10dp" android:text="5.kadar Haemoglobin (Hb) wanita

34 34 minimal 12 gram%, pria minimal 13 gram%" android:textsize="15dp" android:textcolor="#000" android:layout_margintop="5dp" android:layout_height="wrap_content" /> <FrameLayout android:layout_height="40dp" android:layout_margintop="30dp" android:background="#d22229"> <ImageView android:layout_margintop="3dp" android:layout_marginbottom="3dp" android:layout_height="wrap_content" </FrameLayout> </LinearLayout> </ScrollView> </RelativeLayout> DonorDarah.java package com.example.root.bloodjobs; import android.graphics.typeface; import android.os.bundle; import android.support.v4.app.fragment; import android.view.layoutinflater; import android.view.view; import android.view.viewgroup;

35 35 import android.widget.textview; /** * A simple {@link Fragment subclass. */ public class DonorDarah extends Fragment { public DonorDarah() { // Required empty public public View oncreateview(layoutinflater inflater, ViewGroup container, Bundle savedinstancestate) { View view = inflater.inflate(r.layout.fragment_donor_darah, container, false); Typeface mytypeface = Typeface.createFromAsset(getActivity().getAssets(), "Alegreya.ttf"); Typeface mytypeface1 = Typeface.createFromAsset(getActivity().getAssets(), "Alegreya-Bold.ttf"); TextView tv = (TextView) view.findviewbyid(r.id.textview4); tv.settypeface(mytypeface); TextView tv1 = (TextView) view.findviewbyid(r.id.textview5); tv1.settypeface(mytypeface1); TextView tv61 = (TextView) view.findviewbyid(r.id.textview61); tv61.settypeface(mytypeface1); TextView tme1 = (TextView) view.findviewbyid(r.id.txtme1); tme1.settypeface(mytypeface);

36 36 TextView tme2 = (TextView) view.findviewbyid(r.id.txtme2); tme2.settypeface(mytypeface); TextView tme3 = (TextView) view.findviewbyid(r.id.txtme3); tme3.settypeface(mytypeface); TextView tme4 = (TextView) view.findviewbyid(r.id.txtme4); tme4.settypeface(mytypeface); TextView tme5 = (TextView) view.findviewbyid(r.id.txtme5); tme5.settypeface(mytypeface); TextView tme6 = (TextView) view.findviewbyid(r.id.txtme6); tme6.settypeface(mytypeface); TextView tme7 = (TextView) view.findviewbyid(r.id.txtme7); tme7.settypeface(mytypeface); TextView tme8 = (TextView) view.findviewbyid(r.id.txtme8); tme8.settypeface(mytypeface); TextView tv2 = (TextView) view.findviewbyid(r.id.txtm1); tv2.settypeface(mytypeface); TextView tv3 = (TextView) view.findviewbyid(r.id.txtm2); tv3.settypeface(mytypeface); TextView tv4 = (TextView) view.findviewbyid(r.id.txtm3); tv4.settypeface(mytypeface); TextView tv5 = (TextView) view.findviewbyid(r.id.txtm4); tv5.settypeface(mytypeface); TextView tv6 = (TextView) view.findviewbyid(r.id.txtm5); tv6.settypeface(mytypeface); TextView tv7 = (TextView) view.findviewbyid(r.id.textview6); tv7.settypeface(mytypeface1); TextView tv8 = (TextView) view.findviewbyid(r.id.txts1); tv8.settypeface(mytypeface);

37 37 TextView tv9 = (TextView) view.findviewbyid(r.id.txts2); tv9.settypeface(mytypeface); TextView tv10 = (TextView) view.findviewbyid(r.id.txts3); tv10.settypeface(mytypeface); TextView tv11 = (TextView) view.findviewbyid(r.id.txts4); tv11.settypeface(mytypeface); TextView tv12 = (TextView) view.findviewbyid(r.id.txts5); tv12.settypeface(mytypeface); return view; Activity_home.xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android=" xmlns:app=" xmlns:tools=" android:id="@+id/activity_home" android:layout_height="match_parent" android:background="#e20514" tools:context="com.example.root.bloodjobs.home"> <FrameLayout android:layout_height="200dp" android:elevation="4dp" android:foregroundgravity="center" android:layout_alignparenttop="true"

38 38 android:layout_alignparentstart="true"> <ImageView android:layout_margintop="40dp" android:layout_height="150dp" /> </FrameLayout> <TableRow android:layout_height="match_parent" android:gravity="center"> <ImageButton android:layout_width="110dp" android:onclick="menu" android:layout_height="110dp" android:layout_gravity="center" /> <ImageButton android:onclick="relwan" android:layout_width="110dp" android:layout_height="110dp" android:layout_gravity="center" android:layout_marginleft="70dp" /> </TableRow> <FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content"

39 39 android:layout_weight="1"> <FrameLayout android:layout_height="match_parent" android:layout_weight="1"> <ImageView android:layout_margintop="500dp" android:layout_marginright="170dp" android:layout_height="match_parent" android:layout_marginleft="5dp" /> </FrameLayout> </FrameLayout> </RelativeLayout> Home.java package com.example.root.bloodjobs; import android.content.intent; import android.os.bundle; import android.os.handler; import android.support.v7.app.appcompatactivity; import android.view.view; import android.widget.toast; public class Home extends AppCompatActivity protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate);

40 40 setcontentview(r.layout.activity_home); boolean doublebacktoexitpressedonce = public void onbackpressed() { Toast.makeText(getApplicationContext(), "Ketuk dua kali untuk keluar", Toast.LENGTH_SHORT).show(); if (doublebacktoexitpressedonce) { movetasktoback(true); this.doublebacktoexitpressedonce = true; new Handler().postDelayed(new Runnable() public void run() { doublebacktoexitpressedonce = false;, 2000); public void menu (View view){ Intent intent = new Intent(Home.this,Donor.class); startactivity(intent); public void relwan (View view){ Intent intent = new Intent(Home.this,Tap.class); startactivity(intent); Home_relawan.xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout

41 41 xmlns:android=" xmlns:tools=" android:layout_height="match_parent" tools:context="com.example.root.bloodjobs.homerelawan"> <FrameLayout android:layout_height="120dp" android:background="#e20514" android:layout_alignparenttop="true" android:layout_centerhorizontal="true" <ImageView android:layout_height="100dp" android:gravity="center" android:onclick="back" android:layout_margintop="10dp" </FrameLayout> <FrameLayout android:layout_height="70dp" android:background="#e20514" android:layout_weight="1" android:layout_alignparentbottom="true" android:layout_alignparentstart="true" <ImageView android:layout_width="170dp" android:layout_height="match_parent"

42 42 android:layout_gravity="left" <ImageView android:layout_width="150dp" android:layout_height="match_parent" android:layout_marginleft="290dp" android:layout_gravity="right"/> </FrameLayout> <FrameLayout android:layout_width="wrap_content" android:layout_height="500dp" android:layout_weight="1" android:layout_alignparenttop="true" android:layout_centerhorizontal="true"> <ImageView android:layout_height="130dp" android:layout_margintop="200dp" android:onclick="relawan" android:layout_marginleft="175dp" /> <ImageView android:layout_height="130dp" android:gravity="center" android:onclick="profil" android:layout_marginright="175dp" android:layout_margintop="200dp" />

43 43 <ImageView android:layout_width="130dp" android:onclick="jadirelawan" android:layout_height="130dp" android:layout_margintop="150dp" android:layout_gravity="center" </FrameLayout> </RelativeLayout> HomeRelawan.java package com.example.root.bloodjobs; import android.content.intent; import android.os.bundle; import android.support.v7.app.appcompatactivity; import android.view.view; public class HomeRelawan extends AppCompatActivity protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_home_relawan); public void profil (View view){ Intent intent = new Intent(HomeRelawan.this,profil.class); startactivity(intent); public void relawan (View view){ Intent intent = new

44 44 Intent(HomeRelawan.this,kontak_relawan.class); startactivity(intent); public void back (View view){ Intent intent = new Intent(HomeRelawan.this,Home.class); startactivity(intent); public void jadirelawan (View view){ Intent intent = new Intent(HomeRelawan.this,Daftar.class); startactivity(intent); Activity_kamus.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android=" xmlns:tools=" android:id="@+id/activity_kamus" android:layout_height="match_parent" android:orientation="vertical" android:background="#e20514" tools:context="com.example.root.bloodjobs.kamus"> <ImageView android:layout_margintop="20dp" android:layout_height="100dp" android:src="@drawable/newsplashi" android:id="@+id/imageview" /> <TableRow

45 45 android:layout_margintop="20dp" android:layout_width="wrap_content" android:layout_gravity="center" android:layout_height="wrap_content"> <EditText android:layout_width="250dp" android:layout_height="52dp" android:layout_gravity="center" android:textcolor="#ffff" android:textcolorhint="#ffff" android:hint="cari.." android:layout_margin="5dp" android:padding="10dp" /> </TableRow> <ListView android:layout_height="wrap_content" android:layout_marginleft="19dp"/> <TextView android:gravity="center" android:layout_height="wrap_content" android:text="tidak Tersedia Silakan Cari di Google" android:textsize="19sp" android:textcolor="#ffff" android:textstyle="bold" /> <ImageButton android:layout_width="50dp" android:onclick="google" android:layout_margintop="10dp" android:layout_gravity="center" android:layout_height="50dp"

46 46 android:layout_marginright="10dp" /> </LinearLayout> Kamus.java package com.example.root.bloodjobs; import android.app.listactivity; import android.content.context; import android.content.intent; import android.os.bundle; import android.text.editable; import android.text.textwatcher; import android.view.layoutinflater; import android.view.view; import android.view.viewgroup; import android.widget.arrayadapter; import android.widget.edittext; import android.widget.listview; import android.widget.textview; import java.util.arraylist; import java.util.hashmap; public class kamus extends ListActivity { ArrayList<HashMap<String, Object>> searchresults; ArrayList<HashMap<String, Object>> originalvalues; LayoutInflater public void oncreate(bundle savedinstancestate) {

47 47 super.oncreate(savedinstancestate); setcontentview(r.layout.activity_kamus); final EditText kotakpencari=(edittext) findviewbyid(r.id.kotakpencari); ListView playerslistview=(listview) findviewbyid(android.r.id.list); //mengambil LayoutInflater untuk inflating thcustomview //disini akan menggunakan custom adapter inflater=(layoutinflater) getsystemservice(context.layout_inflater_service); //disini data aray akan di deklarasikan //dan akan disimpan ke dalam Arraylist //tipe data string untuk textview integer untuk gambar icon String namakamus[]={"plasma","sel Darah Merah","Darah","Hemoglobin","Sel Darah Putih","Rhesus","Transfusi Darah","Golongan Darah"; String penjelasan[]={"","","","","","","",""; originalvalues=new ArrayList<HashMap<String,Object>>(); //hasmap akan menyimpan data sementara dalam listview HashMap<String, Object> temp; //jumlah baris dalam ListView int noofplayers=namakamus.length; //pengulangan dalam Arraylist for(int i=0;i<noofplayers;i++) { temp=new HashMap<String, Object>(); temp.put("namakamus", namakamus[i]); temp.put("penjelasan", penjelasan[i]);

48 48 //menambah kan baris ke dalam ArrayList originalvalues.add(temp); //searchresults sama dengan OriginalValues searchresults=new ArrayList<HashMap<String,Object>>(originalValues); //membuat adapter //first param-the context //second param-the id of the layout file //you will be using to fill a row //third param-the set of values that //will populate the ListView final CustomAdapter adapter=new CustomAdapter(this, R.layout.daftar_kamus,searchResults); //menset adapter di dalam listview playerslistview.setadapter(adapter); kotakpencari.addtextchangedlistener(new TextWatcher() { public void ontextchanged(charsequence s, int start, int before, int count) { //mengambil text di dalam EditText String searchstring=kotakpencari.gettext().tostring(); int textlength=searchstring.length(); searchresults.clear(); for(int i=0;i<originalvalues.size();i++) { String playername=originalvalues.get(i).get("namakamus").tostring(); if(textlength<=playername.length()){ if(searchstring.equalsignorecase(playername.substring(0,textlength ))) searchresults.add(originalvalues.get(i));

49 49 adapter.notifydatasetchanged(); int count, public void beforetextchanged(charsequence s, int start, int after) { ); public void aftertextchanged(editable s) { //mendefinisikan custom adapter private class CustomAdapter extends ArrayAdapter<HashMap<String, Object>> { public CustomAdapter(Context context, int textviewresourceid, ArrayList<HashMap<String, Object>> Strings) { super(context, textviewresourceid, Strings); //class untuk menyimpan baris konten (cacheview) di listview private class ViewHolder { TextView namakamus,penjelasan,tdk; ViewHolder viewholder; parent) public View getview(int position, View convertview, ViewGroup if(convertview==null)

50 50 null); { convertview=inflater.inflate(r.layout.daftar_kamus, viewholder=new ViewHolder(); //isi konten (cache the views) viewholder.namakamus=(textview) convertview.findviewbyid(r.id.namakamus); viewholder.penjelasan=(textview) convertview.findviewbyid(r.id.penjelasan); //menghubungkan cached views ke dalam convertview convertview.settag(viewholder); else viewholder=(viewholder) convertview.gettag(); //menset data untuk ditampilkan viewholder.namakamus.settext(searchresults.get(position).get("nama kamus").tostring()); viewholder.penjelasan.settext(searchresults.get(position).get("pen jelasan").tostring()); //mengembalikan view untuk ditampilkan return convertview; protected void onlistitemclick(listview l, View v, int position, long id) { // TODO Auto-generated method stub super.onlistitemclick(l, v, position, id);//menggunakan method onliistitemclick dan mencarinya String str = searchresults.get(position).get("namakamus").tostring();

51 51 try{ if(str=="golongan Darah") { Intent intent = new Intent(kamus.this,kgoldar.class); startactivity(intent); if(str=="darah"){ Intent intent = new Intent(kamus.this,kdarah.class); startactivity(intent); if(str=="hemoglobin"){ Intent intent = new Intent(kamus.this,khemoglobin.class); startactivity(intent); if(str=="rhesus"){ Intent intent = new Intent(kamus.this,krhesus.class); startactivity(intent); if(str=="plasma"){ Intent intent = new Intent(kamus.this,kplasma.class); startactivity(intent); if(str=="sel Darah Merah"){ Intent intent = new Intent(kamus.this,kseldarahmerah.class); startactivity(intent); if(str=="sel Darah Putih"){ Intent intent = new Intent(kamus.this,kseldarahputih.class); startactivity(intent); if(str=="transfusi Darah"){ Intent intent = new Intent(kamus.this,ktransfusi.class); startactivity(intent); if(str=="donor Darah"){

52 52 Intent intent = new Intent(kamus.this,kdonor.class); startactivity(intent); catch(exception e){ e.printstacktrace(); public void google(view view){ Intent intent = new Intent(kamus.this,google.class); startactivity(intent); Kontak.java package com.example.root.bloodjobs; import android.content.intent; import android.graphics.typeface; import android.net.uri; import android.os.bundle; import android.support.v4.app.fragment; import android.view.layoutinflater; import android.view.view; import android.view.viewgroup; import android.widget.imageview; import android.widget.textview; /** * A simple {@link Fragment subclass. */

53 53 public class kontak extends Fragment { ImageView markaspmi, pmisu, pmiaceh, pmiriau, pmisumbar; public kontak() { // Required empty public public View oncreateview(layoutinflater inflater, ViewGroup container, Bundle savedinstancestate) { View view = inflater.inflate(r.layout.fragment_kontak, container, false); Typeface mytypeface = Typeface.createFromAsset(getActivity().getAssets(), "Alegreya.ttf"); Typeface mytypeface1 = Typeface.createFromAsset(getActivity().getAssets(), "Alegreya-Bold.ttf"); TextView tv1 = (TextView) view.findviewbyid(r.id.pmi1); tv1.settypeface(mytypeface1); TextView tv2 = (TextView) view.findviewbyid(r.id.pmi2); tv2.settypeface(mytypeface1); TextView tv3 = (TextView) view.findviewbyid(r.id.pmi3); tv3.settypeface(mytypeface1); TextView tv4 = (TextView) view.findviewbyid(r.id.pmi4); tv4.settypeface(mytypeface1);

54 54 TextView tv5 = (TextView) view.findviewbyid(r.id.pmi5); tv5.settypeface(mytypeface1); TextView tv6 = (TextView) view.findviewbyid(r.id.alamat1); tv6.settypeface(mytypeface); TextView tv7 = (TextView) view.findviewbyid(r.id.alamat2); tv7.settypeface(mytypeface); TextView tv8 = (TextView) view.findviewbyid(r.id.alamat3); tv8.settypeface(mytypeface); TextView tv9 = (TextView) view.findviewbyid(r.id.alamat4); tv9.settypeface(mytypeface); TextView tv10 = (TextView) view.findviewbyid(r.id.alamat5); tv10.settypeface(mytypeface); TextView tv11 = (TextView) view.findviewbyid(r.id.no1); tv11.settypeface(mytypeface); TextView tv12 = (TextView) view.findviewbyid(r.id.no2); tv12.settypeface(mytypeface); TextView tv13 = (TextView) view.findviewbyid(r.id.no3); tv13.settypeface(mytypeface); TextView tv14 = (TextView) view.findviewbyid(r.id.no4); tv14.settypeface(mytypeface); TextView tv15 = (TextView) view.findviewbyid(r.id.no5); tv15.settypeface(mytypeface); TextView tv16 = (TextView) view.findviewbyid(r.id.kata);

55 55 tv16.settypeface(mytypeface); pmisu = (ImageView) view.findviewbyid(r.id.pmisu); pmiaceh = (ImageView) view.findviewbyid(r.id.pmiaceh); pmiriau = (ImageView) view.findviewbyid(r.id.pmiriau); markaspmi = (ImageView) view.findviewbyid(r.id.markaspmi); pmisumbar = (ImageView) view.findviewbyid(r.id.pmisumbar); pmisu.setonclicklistener(new public void onclick (View view){ Intent su = new Intent(Intent.ACTION_CALL); su.setdata(uri.parse("tel: ")); startactivity(su); ); markaspmi.setonclicklistener(new public void onclick (View view){ Intent markas = new Intent(Intent.ACTION_CALL); markas.setdata(uri.parse("tel: ")); startactivity(markas); ); pmiaceh.setonclicklistener(new public void onclick (View view){ Intent aceh = new Intent(Intent.ACTION_CALL); aceh.setdata(uri.parse("tel: ")); startactivity(aceh); ); pmiriau.setonclicklistener(new

56 56 public void onclick (View view){ Intent riau = new Intent(Intent.ACTION_CALL); riau.setdata(uri.parse("tel: ")); startactivity(riau); ); pmisumbar.setonclicklistener(new public void onclick (View view){ Intent sumbar = new Intent(Intent.ACTION_CALL); sumbar.setdata(uri.parse("tel: ")); startactivity(sumbar); ); return view; Activity_profil.xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android=" xmlns:tools=" android:id="@+id/activity_profil" android:layout_height="match_parent" tools:context="com.example.root.bloodjobs.profil"> <LinearLayout android:layout_height="wrap_content" android:orientation="vertical" android:id="@+id/linearlayout">

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 : Res - Layout Activity_main.xml

More information

Android Navigation Drawer for Sliding Menu / Sidebar

Android Navigation Drawer for Sliding Menu / Sidebar Android Navigation Drawer for Sliding Menu / Sidebar by Kapil - Tuesday, December 15, 2015 http://www.androidtutorialpoint.com/material-design/android-navigation-drawer-for-sliding-menusidebar/ YouTube

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

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

ActionBar. import android.support.v7.app.actionbaractivity; public class MyAppBarActivity extends ActionBarActivity { }

ActionBar. import android.support.v7.app.actionbaractivity; public class MyAppBarActivity extends ActionBarActivity { } Android ActionBar import android.support.v7.app.actionbaractivity; public class MyAppBarActivity extends ActionBarActivity { Layout, activity.xml

More 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

Practical 1.ListView example

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

More information

Android CardView Tutorial

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

More information

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

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

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

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

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

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

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

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

Action Bar. Action bar: Top navigation bar at each screen The action bar is split into four different functional areas that apply to most apps.

Action Bar. Action bar: Top navigation bar at each screen The action bar is split into four different functional areas that apply to most apps. 1 Action Bar Action bar: Top navigation bar at each screen The action bar is split into four different functional areas that apply to most apps. 1) App Icon 3) Action Buttons 2)View Control 4) Action Overflows

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

APPENDIX CODING HASHTABLE DATA STRUCTURE. 1. HashTableMain.java

APPENDIX CODING HASHTABLE DATA STRUCTURE. 1. HashTableMain.java APPENDIX CODING HASHTABLE DATA STRUCTURE 1. HashTableMain.java 1 package com.example.revan.hashtable_playstore.hashtablehitung; 2 /** 3 * Created by REVAN on 7/22/17. 4 */ 5 public class HashTableMain

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

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

Text Properties Data Validation Styles/Themes Material Design

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

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

Chapter 8 Positioning with Layouts

Chapter 8 Positioning with Layouts Introduction to Android Application Development, Android Essentials, Fifth Edition Chapter 8 Positioning with Layouts Chapter 8 Overview Create user interfaces in Android by defining resource files or

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

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

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

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

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

More information

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

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

More information

Android Layout Types

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

Android - JSON Parser Tutorial

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

More information

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

Open Lecture Mobile Programming. Intro to Material Design

Open Lecture Mobile Programming. Intro to Material Design Open Lecture Mobile Programming Intro to Material Design Agenda Introduction to Material Design Applying a Material Theme Toolbar/Action Bar Navigation Drawer RecyclerView CardView Support Design Widgets/Tools

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

Android Specifics. Jonathan Diehl (Informatik 10) Hendrik Thüs (Informatik 9)

Android Specifics. Jonathan Diehl (Informatik 10) Hendrik Thüs (Informatik 9) Android Specifics Jonathan Diehl (Informatik 10) Hendrik Thüs (Informatik 9) Android Specifics ArrayAdapter Preferences Widgets Jonathan Diehl, Hendrik Thüs 2 ArrayAdapter Jonathan Diehl, Hendrik Thüs

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

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

Adapter.

Adapter. 1 Adapter An Adapter object acts as a bridge between an AdapterView and the underlying data for that view The Adapter provides access to the data items The Adapter is also responsible for making a View

More information

Data Persistence. Chapter 10

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

More information

Android 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

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

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

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

CITIZEN COP PRESENTED BY :- A CLOUD BASED CRIME REPORT APPLICATION. SOUVIK ROY - IT2014/066 AWSAF AMBAR - IT2014/067 SAYANI DUTTA - IT2014/089

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

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

Programming with Android: Introduction. Layouts. Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna

Programming with Android: Introduction. Layouts. Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna Programming with Android: Introduction Layouts Luca Bedogni Marco Di Felice Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna Views: outline Main difference between a Drawable and

More information

Graphical User Interfaces

Graphical User Interfaces Graphical User Interfaces Some suggestions Avoid displaying too many things Well-known anti-patterns Display useful content on your start screen Use action bars to provide consistent navigation Keep your

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

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

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

More information

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

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

User Interface Development in Android Applications

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

ANDROID USER INTERFACE

ANDROID USER INTERFACE 1 ANDROID USER INTERFACE Views FUNDAMENTAL UI DESIGN Visual interface element (controls or widgets) ViewGroup Contains multiple widgets. Layouts inherit the ViewGroup class Activities Screen being displayed

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

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

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

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

Android Application Model I. CSE 5236: Mobile Application Development Instructor: Adam C. Champion, Ph.D. Course Coordinator: Dr.

Android Application Model I. CSE 5236: Mobile Application Development Instructor: Adam C. Champion, Ph.D. Course Coordinator: Dr. Android Application Model I CSE 5236: Mobile Application Development Instructor: Adam C. Champion, Ph.D. Course Coordinator: Dr. Rajiv Ramnath 1 Framework Support (e.g. Android) 2 Framework Capabilities

More information

List-Based Widgets: Lists, Grids, and Scroll Views

List-Based Widgets: Lists, Grids, and Scroll Views Lesson 5 List-Based Widgets: Lists, Grids, and Scroll Views Victor Matos Cleveland State University Portions of this page are reproduced from work created and shared by Google and used according to terms

More information

Android Application Model I

Android Application Model I Android Application Model I CSE 5236: Mobile Application Development Instructor: Adam C. Champion, Ph.D. Course Coordinator: Dr. Rajiv Ramnath Reading: Big Nerd Ranch Guide, Chapters 3, 5 (Activities);

More information

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

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

More information

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

Sizing and Positioning

Sizing and Positioning CS 193A Layout This document is copyright (C) Marty Stepp and Stanford Computer Science. Licensed under Creative Commons Attribution 2.5 License. All rights reserved. Sizing and Positioning How does the

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

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

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

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

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

More information

APPENDIX. Application User. MainActivity.java. RegistrationActivity.java

APPENDIX. Application User. MainActivity.java. RegistrationActivity.java Application User APPENDIX MainActivity.java package com.example.finalproject; import android.content.intent; import android.support.v7.app.appcompatactivity; import android.os.bundle; import android.view.view;

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

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

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

More information

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

Creating a Custom ListView

Creating a Custom ListView Creating a Custom ListView References https://developer.android.com/guide/topics/ui/declaring-layout.html#adapterviews Overview The ListView in the previous tutorial creates a TextView object for each

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

MVC Apps Basic Widget Lifecycle Logging Debugging Dialogs

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

More information

Agenda. Overview of Xamarin and Xamarin.Android Xamarin.Android fundamentals Creating a detail screen

Agenda. Overview of Xamarin and Xamarin.Android Xamarin.Android fundamentals Creating a detail screen Gill Cleeren Agenda Overview of Xamarin and Xamarin.Android Xamarin.Android fundamentals Creating a detail screen Lists and navigation Navigating from master to detail Optimizing the application Preparing

More information

Android App Development. Mr. Michaud ICE Programs Georgia Institute of Technology

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

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

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

Topics of Discussion

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

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

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

User Interface Development. CSE 5236: Mobile Application Development Instructor: Adam C. Champion Course Coordinator: Dr.

User Interface Development. CSE 5236: Mobile Application Development Instructor: Adam C. Champion Course Coordinator: Dr. User Interface Development CSE 5236: Mobile Application Development Instructor: Adam C. Champion Course Coordinator: Dr. Rajiv Ramnath 1 Outline UI Support in Android Fragments 2 UI Support in the Android

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

Android SQLite Database Tutorial - CRUD Operations

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

More information

<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

When programming in groups of people, it s essential to version the code. One of the most popular versioning tools is git. Some benefits of git are:

When programming in groups of people, it s essential to version the code. One of the most popular versioning tools is git. Some benefits of git are: ETSN05, Fall 2017, Version 1.0 Software Development of Large Systems Lab 2 preparations Read through this document carefully. In order to pass lab 2, you will need to understand the topics presented in

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

Introduction. Who Should Read This Book. Key Topics That This Book Covers

Introduction. Who Should Read This Book. Key Topics That This Book Covers Introduction Android is Google s open source and free Java-based platform for mobile development. Tablets are getting more popular every day. They are gadgets that fall between smartphones and personal

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

Action Bar. (c) 2010 Haim Michael. All Rights Reserv ed.

Action Bar. (c) 2010 Haim Michael. All Rights Reserv ed. Action Bar Introduction The Action Bar is a widget that is shown on top of the screen. It includes the application logo on its left side together with items available from the options menu on the right.

More information