APPENDIX CODING HASHTABLE DATA STRUCTURE. 1. HashTableMain.java

Size: px
Start display at page:

Download "APPENDIX CODING HASHTABLE DATA STRUCTURE. 1. HashTableMain.java"

Transcription

1 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 { 6 private int TABLE_SIZE; 7 private int size; 8 public HashTableList[] table;// 9 public HashTableMain(int ts) { 10 size = 0; 11 TABLE_SIZE = ts; 12 table = new HashTableList[TABLE_SIZE]; 13 for (int i = 0; i < TABLE_SIZE; i++) 14 table[i] = null; // looping table tapi masih kosong 15 } 16 public HashTableList[] gettable(){ 17 return table; 18 } 19 public int gettable_size(){ 20 return TABLE_SIZE; 21 } 22 public void makeempty() { 23 for (int i = 0; i < TABLE_SIZE; i++) 24 table[i] = null; 25 } 26 public void insertvalue(int value) 27 { 28 int hash = (value % TABLE_SIZE); 29 if (table[hash] == null) 30 table[hash] = new HashTableList(value); 31 else 32 { 33 HashTableList entry = table[hash]; 34 while (entry.next!= null) 35 entry = entry.next; 36 //while (entry.value == value) 37 //entry.value = value; 38 if (entry.value == value) 39 entry.value = value; 40 else 41 entry.next = new HashTableList(value); 42 } 43 size++; A

2 44 } 45 public int[] getloc(int value) { 46 int hash = (value % TABLE_SIZE); 47 int[] result = {0, 0};//00 48 int[] notfound = {100, 100}; 49 int count = 0; 50 if (table[hash]!= null) { 51 HashTableList entry = table[hash]; 52 result[0] = hash; 53 while (entry!= null) { 54 if (entry.value == value) { 55 result[1] = count; 56 //Log.i("index2", String.valueOf(count)); 57 break; 58 } else 59 count++; 60 entry = entry.next; 61 } 62 return result; 63 } else return notfound; 64 } 65 public int[] getloc2(int value) { 66 int hash = (value % TABLE_SIZE); 67 int[] result = {1000, 1000};//00 68 int[] notfound = {100, 100}; 69 int count = 0; 70 if (table[hash]!= null) { 71 HashTableList entry = table[hash]; 72 while (entry!= null) { 73 if (entry.value == value) { 74 result[0] = hash; 75 result[1] = count; 76 //Log.i("index2", String.valueOf(count)); 77 break; 78 } else 79 count++; 80 entry = entry.next; 81 } 82 return result; 83 } else return notfound; 84 } 85 public void removevalue(int value) { 86 int hash = (value % TABLE_SIZE); 87 if (table[hash]!= null) { 88 HashTableList delentry = null; 89 HashTableList entry = table[hash]; 90 while (entry!= null) { 91 if (entry.value == value) { 92 if (entry == table[hash]) 93 table[hash] = entry.next; 94 else 95 delentry.next = entry.next;//atau entry.next 96 size--; B

3 97 }else{ 98 delentry = entry; 99 } 100 entry = entry.next; 101 } 102 } 103 } 104 public void printhashtable() 105 { 106 for (int i = 0; i < TABLE_SIZE; i++) 107 { 108 HashTableList entry = table[i]; 109 System.out.print("\nARRAY ["+ (i) +"] : "); 110 while (entry!= null) 111 { 112 System.out.print(entry.value +" " + " " + " "); 113 entry = entry.next; 114 } 115 } 116 } 117 } HashTableList.java 119 package com.example.revan.hashtable_playstore.hashtablehitung; 120 /** 121 * Created by REVAN on 7/22/ */ 123 public class HashTableList { 124 public int value; 125 public HashTableList next; 126 HashTableList(int value) 127 { 128 this.value = value; 129 this.next = null; 130 } 131 } 132 C

4 CODING DRAWING 2. MainActivity.java 133 package com.example.revan.hashtable_playstore; 134 import android.content.context; 135 import android.content.intent; 136 import android.content.sharedpreferences; 137 import android.graphics.bitmap; 138 import android.graphics.canvas; 139 import android.graphics.color; 140 import android.graphics.paint; 141 import android.graphics.porterduff; 142 import android.graphics.drawable.bitmapdrawable; 143 import android.os.build; 144 import android.os.bundle; 145 import android.os.countdowntimer; 146 import android.support.annotation.requiresapi; 147 import android.support.design.widget.floatingactionbutton; 148 import android.support.design.widget.snackbar; 149 import android.view.view; 150 import android.support.design.widget.navigationview; 151 import android.support.v4.view.gravitycompat; 152 import android.support.v4.widget.drawerlayout; 153 import android.support.v7.app.actionbardrawertoggle; 154 import android.support.v7.app.appcompatactivity; 155 import android.support.v7.widget.toolbar; 156 import android.view.menu; 157 import android.view.menuitem; 158 import android.widget.button; 159 import android.widget.edittext; 160 import android.widget.linearlayout; 161 import android.widget.toast; 162 import com.example.revan.hashtable_playstore.hashtablehitung.hashtable List; 163 import com.example.revan.hashtable_playstore.hashtablehitung.hashtable Main; 164 public class MainActivity extends AppCompatActivity 165 implements NavigationView.OnNavigationItemSelectedListener { 166 private EditText textvalue; 167 private EditText value_hashinput; 168 private EditText ETDelete; 169 private EditText ETSearch; 170 private Button savebutton; 171 private Button hashbutton; 172 private Button tampil; 173 private Button DeleteButton; D

5 174 private Button SearchButton; 175 private Button Reset; 176 public int height = 10; 177 public int varx_extendssearch = 50; 178 public int panjangx_extendssearch = 140; 179 public int vary_extendssearch = 50; 180 public int panjangy_extendssearch = 140; 181 public int varx_overlaysearch = 50; 182 public int panjangx_overlaysearch = 140; 183 public int vary_overlaysearch = 50; 184 public int panjangy_overlaysearch = 140; 185 public static final String Value = "valuekey"; 186 public static final String MyPREFERENCES = "MyPrefs"; 187 Canvas canvas; 188 Paint overlay = new Paint(); 189 Paint extendshape = new Paint(); 190 Paint strokesearch = new Paint(); 191 Paint fillpaint = new Paint(); 192 Paint strokepaint = new Paint(); 193 Paint TextArray = new Paint(); 194 Paint panah = new Paint(); 195 HashTableMain ht; 196 SharedPreferences sharedpreferences; 197 LinearLayout II; 198 Bitmap b g = B i t m a p.createbitmap(720, 1280, Bitmap.Config.ARGB_8888); 200 protected void oncreate(bundle savedinstancestate) { 201 super.oncreate(savedinstancestate); 202 setcontentview(r.layout.activity_main); 203 Toolbar toolbar = (Toolbar) findviewbyid(r.id. toolbar); 204 setsupportactionbar(toolbar); 205 textvalue = (EditText) findviewbyid(r.id.value); 206 value_hashinput = (EditText) findviewbyid(r.id.hash_value); 207 savebutton = (Button) findviewbyid(r.id.button_save); 208 hashbutton = ( B u t t o n ) findviewbyid(r.id.hash_inputbutton); 209 tampil = (Button) findviewbyid(r.id.tampil); 210 ETDelete = (EditText) findviewbyid(r.id.et_delete); 211 ETSearch = (EditText) findviewbyid(r.id.et_search); 212 DeleteButton = (Button) findviewbyid(r.id.bt_delete); 213 SearchButton = (Button) findviewbyid(r.id.bt_search); 214 Reset = (Button) findviewbyid(r.id.bt_reset); 215 II = (LinearLayout) findviewbyid(r.id.linear); 216 sharedpreferences = getsharedpreferences(mypreferences, Context.MODE_PRIVATE); 217 savebutton.setonclicklistener(new View.OnClickListener() { = Build.VERSION_CODES.JELLY_BEAN) 220 public void onclick(view view) { 221 fillpaint.setstyle(paint.style.fill); E

6 222 fillpaint.setcolor(color.parsecolor("#da70d6") ); 223 strokepaint.setstyle(paint.style.stroke); 224 strokepaint.setcolor(color.gray); 225 strokepaint.setstrokewidth(5); 226 TextArray.setColor(Color.BLACK); 227 TextArray.setTextSize(30); 228 final String strvalue = textvalue.gettext().tostring(); 229 SharedPreferences.Editor editor = sharedpreferences.edit(); 230 editor.putstring(value, strvalue); 231 i n t x = Integer.valueOf(textValue.getText().toString()).intValue(); 232 final int varx = 50; 233 int vary = 50; 234 int panjangx = 140; 235 int panjangy = 140; 236 int ArrayTextY = 100; 237 int ArrayTextX = 10; 238 final Canvas canvas = new Canvas(bg); 239 setcanvas(canvas); 240 setstrokepaint(strokepaint); 241 for (int y = 0; y < x; y++) { // DRAW CANVAS ARRAY AWAL 242 int Array = 0+y; 243 canvas.drawrect(varx, vary, panjangx, panjangy, fillpaint); 244 canvas.drawrect(varx, vary, panjangx, panjangy, strokepaint); 245 canvas.drawtext(string.valueof("["+array+" ]"),ArrayTextX, ArrayTextY, TextArray); 246 vary = 10 + panjangy; 247 panjangy = panjangy + 100; 248 ArrayTextY = ArrayTextY + 100; 249 } 250 ht = new HashTableMain(x); 251 setht(ht); 252 II.setBackground(new BitmapDrawable(bg)); 253 Toast.makeText(MainActivity.this, "Finish", Toast.LENGTH_LONG); 254 } 255 }); 256 hashbutton.setonclicklistener(new View.OnClickListener() { = Build.VERSION_CODES.JELLY_BEAN) 259 public void onclick(view v) { 260 intinput_hash = Integer.valueOf(value_HashInput.getText().toString()).intValue(); 261 i n t x = Integer.valueOf(textValue.getText().toString()).intValue(); 262 int hashhitung = input_hash%x; 263 getht().insertvalue(input_hash); 264 redrawcanvas(); F

7 265 Toast.makeText(MainActivity.this, input_hash + " MODULO " + x + " = " + hashhitung, Toast.LENGTH_LONG).show(); 266 } 267 }); 268 DeleteButton.setOnClickListener(new View.OnClickListener() { = Build.VERSION_CODES.JELLY_BEAN) 271 public void onclick(view view) { 272 intremove_hash = Integer.valueOf(ETDelete.getText().toString()).intValue(); 273 getht().removevalue(remove_hash); 274 redrawcanvas(); 275 } 276 }); 277 SearchButton.setOnClickListener(new View.OnClickListener() 278 { = Build.VERSION_CODES.JELLY_BEAN) 281 public void onclick (View view){ 282 redrawcanvas(); 283 strokesearch.setstyle(paint.style.stroke); 284 strokesearch.setcolor(color.red); 285 strokesearch.setstrokewidth(5); 286 intsearch_hash = Integer.valueOf(ETSearch.getText().toString()).intValue(); 287 getht().getloc2(search_hash); 288 int LocY = getht().getloc2(search_hash)[0]; 289 final int LocX = getht().getloc2(search_hash) [1]; 290 redrawcanvas(); 291 if(locx ==100 && LocY==100) { 292 Toast.makeText(MainActivity.this, search_hash + " TIDAK DITEMUKAN ", Toast.LENGTH_LONG).show(); 293 }else{ 294 //Toast.makeText(MainActivity.this, search_hash + " DITEMUKAN " + " DI ARRAY " + LocY + " LIST " + LocX, Toast.LENGTH_LONG).show(); 295 } 296 if(locx ==1000 && LocY==1000) { 297 Toast.makeText(MainActivity.this, search_hash + " TIDAK DITEMUKAN ", Toast.LENGTH_LONG).show(); 298 }else{ 299 //Toast.makeText(MainActivity.this, search_hash + " DITEMUKAN " + " DI ARRAY " + LocY + " LIST " + LocX, Toast.LENGTH_LONG).show(); 300 } 301 varx_overlaysearch = 50; 302 panjangx_overlaysearch = 140; 303 vary_overlaysearch = 50; 304 panjangy_overlaysearch = 140 ; 305 for (int y_overlay = 0; y_overlay < LocY; y_overlay++) { G

8 306 vary_overlaysearch = 10 + panjangy_overlaysearch; 307 panjangy_overlaysearch = panjangy_overlaysearch + 100; 308 } 309 varx_extendssearch = 50; 310 panjangx_extendssearch = 140; 311 vary_extendssearch = 50; 312 panjangy_extendssearch = 140 ; 313 for (int y_overlay = 0; y_overlay < LocY; y_overlay++) { 314 vary_extendssearch = 10 + panjangy_extendssearch; 315 panjangy_extendssearch = panjangy_extendssearch + 100; 316 } 317 int count = 2037; 318 height = 0; 319 CountDownTimer timer = new CountDownTimer(count, 90) { 321 public void ontick(long millisuntilfinished) { 322 height = height +(7*LocX); 323 redrawcanvas(); 324 if (LocX >= 0) { 325 getcanvas().drawrect(50+height,va ry_extendssearch, 140+height, panjangy_extendssearch, strokesearch ); 326 } 327 else if (LocX == 0) { 328 getcanvas().drawrect(height, 30, 100+height, 100, strokesearch ); 329 } 330 II.setBackground(new BitmapDrawable(bg)); 331 } 333 public void onfinish() { 334 } 335 }; 336 timer.start(); 337 if( LocX == 0) getcanvas().drawrect(50+height,vary_extendssearch, 140+height, panjangy_extendssearch, strokesearch ); 338 } 339 }); 340 Reset.setOnClickListener(new View.OnClickListener() { = Build.VERSION_CODES.JELLY_BEAN) 343 public void onclick(view view) { 344 getht().makeempty(); 345 Paint fillpaint = new Paint(); 346 final Paint strokepaint = new Paint(); 347 fillpaint.setstyle(paint.style.fill); H

9 348 fillpaint.setcolor(color.parsecolor("#da4897") ); 349 Bitmap bg = Bitmap.createBitmap(720, 1280, Bitmap.Config.ARGB_8888); 350 int reset = 0; 351 ht = new HashTableMain(reset); 352 setht(ht); 353 redrawcanvas(); 354 int x = 0; 355 final int varx = 10; 356 int vary = 10; 357 int panjangx = 100; 358 int panjangy = 100; 359 final Canvas canvas = new Canvas(bg); 360 setcanvas(canvas); 361 setstrokepaint(strokepaint); 362 for (int y = 0; y < x; y++) { // DRAW CANVAS ARRAY AWAL 363 canvas.drawrect(varx, vary, panjangx, panjangy, fillpaint); 364 canvas.drawrect(varx, vary, panjangx, panjangy, strokepaint); 365 vary = 10 + panjangy; 366 panjangy = panjangy + 100; 367 } 368 LinearLayout II = (LinearLayout) findviewbyid(r.id.linear); 369 II.setBackground(new BitmapDrawable(bg)); 370 } 371 }); 372 tampil.setonclicklistener(new View.OnClickListener() { = Build.VERSION_CODES.JELLY_BEAN) 375 public void onclick(view view) { 376 getht().printhashtable(); 377 redrawcanvas(); 378 Toast.makeText(MainActivity.this, 379 " NOTICE 1 : SET ARRAY FIRST" + "\n" " NOTICE 2 : DONT INPUT SAME VALUE", Toast.LENGTH_LONG).show(); 381 } 382 }); 383 DrawerLayout drawer = (DrawerLayout) findviewbyid(r.id.drawer_layout); 384 ActionBarDrawerToggle toggle = new ActionBarDrawerToggle( 385 this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close); 386 drawer.setdrawerlistener(toggle); 387 toggle.syncstate(); 388 NavigationView navigationview = (NavigationView) findviewbyid(r.id.nav_view); 389 navigationview.setnavigationitemselectedlistener( this); 390 } I

10 392 public void onbackpressed() { 393 DrawerLayout drawer = (DrawerLayout) findviewbyid(r.id.drawer_layout); 394 if (drawer.isdraweropen(gravitycompat.start)) { 395 drawer.closedrawer(gravitycompat.start); 396 } else { 397 super.onbackpressed(); 398 } 399 } 401 public boolean oncreateoptionsmenu(menu menu) { 402 getmenuinflater().inflate(r.menu.main, menu); 403 return true; 404 } 406 public boolean onoptionsitemselected(menuitem item) { 407 int id = item.getitemid(); 408 //noinspection SimplifiableIfStatement 409 if (id == R.id.action_settings) { 410 return true; 411 } 412 return super.onoptionsitemselected(item); 413 } 416 public boolean onnavigationitemselected(menuitem item) { 417 //Memeriksa untuk melihat item yang akan dilklik dan melalukan aksi 418 switch (item.getitemid()) { 419 // pilihan menu item navigasi akan menampilkan pesan toast klik kalian bisa menggantinya 420 //dengan intent activity 421 case R.id.nav_camera: 422 Intent about = new Intent(getApplicationContext(), AboutActivity.class); 423 startactivity(about); 424 return true; 425 case R.id.nav_gallery: 426 Intent info = new Intent(getApplicationContext(), UserGuideActivity.class); 427 startactivity(info); 428 return true; 429 case R.id.nav_share: 430 Toast.makeText(getApplicationContext(), "Share Telah Dipilih", Toast.LENGTH_SHORT).show(); 431 return true; 432 case R.id.nav_send: 433 Toast.makeText(getApplicationContext(), "Send Telah Dipilih", Toast.LENGTH_SHORT).show(); 434 return true; 435 } 436 return false; 437 } J

11 438 public void redrawcanvas(){ 439 final int varx = 50; 440 int vary = 50; 441 int panjangx = 140; 442 int panjangy = 140; 443 int varx_overlay ; 444 int panjangx_overlay ; 445 int vary_overlay ; 446 int panjangy_overlay ; 447 int hashinput_totabley ; 448 int hashinput_totablex ; 449 int panahstartx = 140;// int panahstarty = 90;// int panahstopx = 180;// int panahstopy = 90;// int panahatasx = 70; 454 int panahatasy = 90; 455 int panahatasyx = 195; 456 int panahatasxy = 180; 457 int panahbawahx = 110; 458 int panahbawahy = 90; 459 int panahbawahyx = 195; 460 int panahbawahxy = 180; 461 int panahlurusx = 180; 462 int panahlurusy = 70; 463 int panahlurus2x = 180; 464 int panahlurus2y = 110; 465 int ArrayTextY = 100; 466 int ArrayTextX = 10; 467 getcanvas().drawcolor(0, PorterDuff.Mode.CLEAR); 468 II.setBackground(new BitmapDrawable(bg)); 469 if (getht().gettable() == null){ 470 Toast.makeText(this, "null data", Toast.LENGTH_SHORT).show(); 471 } 472 else { 473 HashTableList[] entry = getht().gettable(); 474 for (int i = 0; i < getht().gettable_size(); i++) { 475 HashTableList temparray = entry[i]; 476 int Array = 0+i; 477 fillpaint.setstyle(paint.style.fill); 478 fillpaint.setcolor(color.parsecolor("#da70d6") ); 479 strokepaint.setstyle(paint.style.stroke); 480 strokepaint.setcolor(color.gray); 481 strokepaint.setstrokewidth(5); 482 panah.setstyle(paint.style.fill); 483 panah.setcolor(color.gray); 484 panah.setstrokewidth(6); 485 TextArray.setColor(Color.BLACK); 486 TextArray.setTextSize(30); 487 getcanvas().drawrect(varx, vary, panjangx, panjangy, fillpaint); K

12 488 getcanvas().drawrect(varx, vary, panjangx, panjangy, strokepaint); 489 getcanvas().drawtext(string.valueof("["+array+" ]"),ArrayTextX, ArrayTextY, TextArray); 490 ArrayTextY = ArrayTextY + 100; 491 vary = 10 + panjangy; 492 panjangy = panjangy + 100; 493 overlay.setstyle(paint.style.fill); 494 overlay.setcolor(color.parsecolor("#ffefd5")); 495 extendshape.setstyle(paint.style.fill); 496 extendshape.setcolor(color.parsecolor("#da70d6 ")); 497 Paint Text = new Paint(); 498 Text.setColor(Color.parseColor("#DA70D6")); 499 Text.setTextSize(30); 500 if(entry[i]!= null) { 501 while (temparray!= null) { 502 varx_overlay = 50; 503 panjangx_overlay = 140; 504 vary_overlay = 50; 505 panjangy_overlay = 140; 506 final String HashValue = String.valueOf(tempArray.value); 507 hashinput_totabley = getht().getloc(temparray.value)[0]; 508 hashinput_totablex = getht().getloc(temparray.value)[1]; 509 for (int y_overlay = 0; y_overlay < hashinput_totabley; y_overlay++) { 510 vary_overlay = 10 + panjangy_overlay; 511 panjangy_overlay = panjangy_overlay + 100; 512 } 513 if (hashinput_totablex > 0) { 514 int shifting = hashinput_totablex * 150; 515 int shiftingx = (hashinput_totablex-1) * 150; 516 int shiftingtext = hashinput_totablex * 150; 517 int shiftingy = hashinput_totabley * 100; 518 getcanvas().drawline(panahstartx+ shiftingx,panahstarty + shiftingy,panahstopx+shiftingx,panahstopy+ shiftingy,panah); 519 getcanvas().drawline(panahatasxy+ shiftingx,panahatasx+ shiftingy,panahatasyx+shiftingx,panahatasy+ shiftingy,panah); 520 getcanvas().drawline(panahbawahxy +shiftingx,panahbawahx+ shiftingy,panahbawahyx+shiftingx,panahbawahy+ shiftingy,panah); 521 getcanvas().drawline(panahlurusx+ shiftingx,panahlurusy+ shiftingy,panahlurus2x+shiftingx,panahlurus2y+ shiftingy,panah); L

13 522 getcanvas().drawrect(varx_overlay + s h i f t i n g, vary_overlay, panjangx_overlay + shifting, panjangy_overlay, overlay); 523 getcanvas().drawrect(varx_overlay + s h i f t i n g, vary_overlay, panjangx_overlay + shifting, panjangy_overlay, strokepaint); 524 getcanvas().drawtext(hashvalue, varx_overlay shiftingtext, panjangy_overlay - 30, Text); 525 } else if (hashinput_totablex == 0) { 526 getcanvas().drawrect(varx_overlay, vary_overlay, panjangx_overlay, panjangy_overlay, overlay); 527 getcanvas().drawtext(hashvalue, varx_overlay + 30, panjangy_overlay - 30, Text); 528 } 529 temparray = temparray.next; 530 } 531 } 532 II.setBackground(new BitmapDrawable(bg)); 533 } 534 } 535 } 536 public Canvas getcanvas(){ 537 return canvas; 538 } 539 public void setcanvas(canvas canvas){ 540 this.canvas = canvas; 541 } 542 public void setstrokepaint(paint strokepaint) { 543 this.strokepaint = strokepaint; 544 } 545 public HashTableMain getht() { 546 return ht; 547 } 548 public void setht(hashtablemain ht) { 549 this.ht = ht; 550 } 551 } CODING USER INTERFACE 1. AboutActivity.java 552 package com.example.revan.hashtable_playstore; 553 import android.annotation.suppresslint; 554 import android.support.v7.app.actionbar; 555 import android.support.v7.app.appcompatactivity; 556 import android.os.bundle; 557 import android.os.handler; 558 import android.view.motionevent; 559 import android.view.view; public class AboutActivity extends AppCompatActivity { M

14 private static final boolean AUTO_HIDE = true; private static final int AUTO_HIDE_DELAY_MILLIS = 3000; private static final int UI_ANIMATION_DELAY = 300; 568 private final Handler mhidehandler = new Handler(); 569 private View mcontentview; 570 private final Runnable mhidepart2runnable = new Runnable() { 573 public void run() { mcontentview.setsystemuivisibility(view.system_ui_ FLAG_LOW_PROFILE 576 View.SYSTEM_UI_FLAG_FULLSCREEN 577 View.SYSTEM_UI_FLAG_LAYOUT_STABLE 578 View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY 579 View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION 580 View.SYSTEM_UI_FLAG_HIDE_NAVIGATION); 581 } 582 }; 583 private View mcontrolsview; 584 private final Runnable mshowpart2runnable = new Runnable() { 586 public void run() { 587 // Delayed display of UI elements 588 ActionBar actionbar = getsupportactionbar(); 589 if (actionbar!= null) { 590 actionbar.show(); 591 } 592 mcontrolsview.setvisibility(view.visible); 593 } 594 }; 595 private boolean mvisible; 596 private final Runnable mhiderunnable = new Runnable() { 598 public void run() { 599 hide(); 600 } 601 }; private final View.OnTouchListener mdelayhidetouchlistener = new View.OnTouchListener() { 605 public boolean ontouch(view view, MotionEvent motionevent) { 606 if (AUTO_HIDE) { 607 delayedhide(auto_hide_delay_millis); 608 } 609 return false; N

15 610 } 611 }; 613 protected void oncreate(bundle savedinstancestate) { 614 super.oncreate(savedinstancestate); 615 setcontentview(r.layout.activity_about); 616 mvisible = true; 617 mcontrolsview = findviewbyid(r.id.fullscreen_content_controls); 618 mcontentview = findviewbyid(r.id.fullscreen_content); mcontentview.setonclicklistener(new View.OnClickListener() { 622 public void onclick(view view) { 623 toggle(); 624 } 625 }); 626 } 628 protected void onpostcreate(bundle savedinstancestate) { 629 super.onpostcreate(savedinstancestate); delayedhide(100); 632 } 633 private void toggle() { 634 if (mvisible) { 635 hide(); 636 } else { 637 show(); 638 } 639 } 640 private void hide() { 641 ActionBar actionbar = getsupportactionbar(); 642 if (actionbar!= null) { 643 actionbar.hide(); 644 } 645 mcontrolsview.setvisibility(view.gone); 646 mvisible = false; 647 // Schedule a runnable to remove the status and navigation bar after a delay 648 mhidehandler.removecallbacks(mshowpart2runnable); 649 mhidehandler.postdelayed(mhidepart2runnable, UI_ANIMATION_DELAY); 650 } 652 private void show() { 653 // Show the system bar 654 mcontentview.setsystemuivisibility(view.system_ui_flag_ LAYOUT_FULLSCREEN 655 View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION); 656 mvisible = true; 657 // Schedule a runnable to display UI elements after a delay O

16 658 mhidehandler.removecallbacks(mhidepart2runnable); 659 mhidehandler.postdelayed(mshowpart2runnable, UI_ANIMATION_DELAY); 660 } 661 /** 662 * Schedules a call to hide() in [delay] milliseconds, canceling any 663 * previously scheduled calls. 664 */ 665 private void delayedhide(int delaymillis) { 666 mhidehandler.removecallbacks(mhiderunnable); 667 mhidehandler.postdelayed(mhiderunnable, delaymillis); 668 } 669 } 2. SplashScreen.java 670 package com.example.revan.hashtable_playstore; 671 import android.content.intent; 672 import android.os.handler; 673 import android.support.v7.app.appcompatactivity; 674 import android.os.bundle; 675 import android.view.window; 676 import android.view.windowmanager; 677 public class SplashScreen extends AppCompatActivity { 678 private static int splashinterval = 2000; 680 protected void oncreate(bundle savedinstancestate) { 681 super.oncreate(savedinstancestate); 682 this.requestwindowfeature(window.feature_no_title); 683 getwindow().setflags(windowmanager.layoutparams. FLAG_FU LLSCREEN, 684 WindowManager.LayoutParams.FLAG_FULLSCREEN); 685 setcontentview(r.layout.activity_splash_screen); 686 new Handler().postDelayed(new Runnable() { 688 public void run() { 689 // TODO Auto-generated method stub 690 Intent i = new Intent(SplashScreen.this, MainActivity.class); 691 startactivity(i); // menghubungkan activity splashscren ke main activity dengan intent 692 //jeda selesai Splashscreen 693 this.finish(); 694 } 695 private void finish() { 696 // TODO Auto-generated method stub 697 } 698 }, splashinterval); 699 }; 700 } 701 P

17 3. UserGuideActivity.java 702 package com.example.revan.hashtable_playstore; 703 import android.annotation.suppresslint; 704 import android.support.v7.app.actionbar; 705 import android.support.v7.app.appcompatactivity; 706 import android.os.bundle; 707 import android.os.handler; 708 import android.view.motionevent; 709 import android.view.view; public class UserGuideActivity extends AppCompatActivity { private static final boolean AUTO_HIDE = true; private static final int AUTO_HIDE_DELAY_MILLIS = 3000; private static final int UI_ANIMATION_DELAY = 300; 718 private final Handler mhidehandler = new Handler(); 719 private View mcontentview; 720 private final Runnable mhidepart2runnable = new Runnable() { 723 public void run() { mcontentview.setsystemuivisibility(view.system_ui_ FLAG_LOW_PROFILE 726 View.SYSTEM_UI_FLAG_FULLSCREEN 727 View.SYSTEM_UI_FLAG_LAYOUT_STABLE 728 View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY 729 View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION 730 View.SYSTEM_UI_FLAG_HIDE_NAVIGATION); 731 } 732 }; 733 private View mcontrolsview; 734 private final Runnable mshowpart2runnable = new Runnable() { 736 public void run() { ActionBar actionbar = getsupportactionbar(); 739 if (actionbar!= null) { 740 actionbar.show(); 741 } 742 mcontrolsview.setvisibility(view.visible); 743 } 744 }; 745 private boolean mvisible; 746 private final Runnable mhiderunnable = new Runnable() { 748 public void run() { Q

18 749 hide(); 750 } 751 }; private final View.OnTouchListener mdelayhidetouchlistener = new View.OnTouchListener() { 755 public boolean ontouch(view view, MotionEvent motionevent) { 756 if (AUTO_HIDE) { 757 delayedhide(auto_hide_delay_millis); 758 } 759 return false; 760 } 761 }; 763 protected void oncreate(bundle savedinstancestate) { 764 super.oncreate(savedinstancestate); 765 setcontentview(r.layout.activity_user_guide); 766 mvisible = true; 767 mcontrolsview = findviewbyid(r.id.fullscreen_content_controls); 768 mcontentview = findviewbyid(r.id.fullscreen_content); mcontentview.setonclicklistener(new View.OnClickListener() { 772 public void onclick(view view) { 773 toggle(); 774 } 775 }); } 779 protected void onpostcreate(bundle savedinstancestate) { 780 super.onpostcreate(savedinstancestate); delayedhide(100); 783 } 784 private void toggle() { 785 if (mvisible) { 786 hide(); 787 } else { 788 show(); 789 } 790 } 791 private void hide() { 792 // Hide UI first 793 ActionBar actionbar = getsupportactionbar(); 794 if (actionbar!= null) { 795 actionbar.hide(); 796 } 797 mcontrolsview.setvisibility(view.gone); 798 mvisible = false; R

19 mhidehandler.removecallbacks(mshowpart2runnable); 801 mhidehandler.postdelayed(mhidepart2runnable, UI_ANIMATION_DELAY); 802 } 804 private void show() { 805 mcontentview.setsystemuivisibility(view.system_ui_flag_layout_ FULLSCREEN 806 View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION); 807 mvisible = true; mhidehandler.removecallbacks(mhidepart2runnable); 810 mhidehandler.postdelayed(mshowpart2runnable, UI_ANIMATION_DELAY); 811 } private void delayedhide(int delaymillis) { 814 mhidehandler.removecallbacks(mhiderunnable); 815 mhidehandler.postdelayed(mhiderunnable, delaymillis); 816 } 817 } 4. activity_about.xml 818 <FrameLayout xmlns:android=" 819 xmlns:tools=" 820 android:layout_width="match_parent" 821 android:layout_height="match_parent" 822 android:background="#ffffff" 823 tools:context="com.example.revan.hashtable_playstore.abouta ctivity"> <pl.droidsonroids.gif.gifimageview 826 android:id="@+id/fullscreen_content" 827 android:layout_width="match_parent" 828 android:layout_height="match_parent" 829 android:src="@drawable/splashau" 830 /> 831 <FrameLayout 832 android:layout_width="match_parent" 833 android:layout_height="match_parent" 834 android:fitssystemwindows="true"> 835 <LinearLayout 836 android:id="@+id/fullscreen_content_controls" 837 style="?metabuttonbarstyle" 838 android:layout_width="match_parent" 839 android:layout_height="wrap_content" 840 android:layout_gravity="bottom center_horizontal" 841 android:background="@color/black_overlay" 842 android:orientation="horizontal" 843 tools:ignore="uselessparent"> 844 </LinearLayout> S

20 845 </FrameLayout> 846 </FrameLayout> 5. activity_main.xml 847 <?xml version="1.0" encoding="utf-8"?> 848 <android.support.v4.widget.drawerlayout xmlns:android=" 849 xmlns:app=" 850 xmlns:tools=" android:layout_width="match_parent" 853 android:layout_height="match_parent" 854 android:fitssystemwindows="true" 855 tools:opendrawer="start"> 856 <include android:layout_width="match_parent" 859 android:layout_height="match_parent" /> 860 <android.support.design.widget.navigationview android:layout_width="wrap_content" 863 android:layout_height="match_parent" 864 android:layout_gravity="start" 865 android:fitssystemwindows="true" /> 868 </android.support.v4.widget.drawerlayout> activity_splash_screen.xml 870 <?xml version="1.0" encoding="utf-8"?> 871 <RelativeLayout xmlns:android=" 872 android:layout_width="match_parent" 873 android:layout_height="match_parent" > 874 <pl.droidsonroids.gif.gifimageview 875 android:layout_width="match_parent" 876 android:layout_height="match_parent" /> 879 <ProgressBar android:layout_width="wrap_content" 882 android:layout_height="wrap_content" 883 android:layout_alignparentbottom="true" 884 android:layout_centerhorizontal="true" 885 android:layout_marginbottom="58dp" /> 886 </RelativeLayout> T

21 7. activity_user_guide.xml 887 <FrameLayout xmlns:android=" 888 xmlns:app=" 889 xmlns:tools=" 890 android:layout_width="match_parent" 891 android:layout_height="match_parent" 892 android:background="#ffffff" 893 tools:context="com.example.revan.hashtable_playstore.usergu ideactivity"> <ImageView android:layout_width="wrap_content" 898 android:layout_height="wrap_content" 899 /> 900 <FrameLayout 901 android:layout_width="match_parent" 902 android:layout_height="match_parent" 903 android:fitssystemwindows="true"> 904 <LinearLayout style="?metabuttonbarstyle" 907 android:layout_width="match_parent" 908 android:layout_height="wrap_content" 909 android:layout_gravity="bottom center_horizontal" android:orientation="horizontal" 912 tools:ignore="uselessparent"> 913 </LinearLayout> 914 </FrameLayout> 915 </FrameLayout> content_main.xml 917 <?xml version="1.0" encoding="utf-8"?> 918 <LinearLayout xmlns:android=" 919 xmlns:app=" 920 xmlns:tools=" 921 android:layout_width="match_parent" 922 android:layout_height="match_parent" 923 android:orientation="vertical" 924 " 925 android:background="#ffffff" 926 tools:context="com.example.revan.hashtable_playstore.mainac tivity" <ImageView android:layout_width="wrap_content" 931 android:layout_height="wrap_content" U

22 932 android:layout_centerhorizontal="true" 933 /> 934 <LinearLayout android:layout_width="match_parent" 937 android:layout_height="0dp" 938 android:layout_weight="0.99" 939 android:layout_marginbottom="8dp" 940 android:orientation="horizontal" 941 /> 942 <LinearLayout 943 android:layout_width="match_parent" 944 android:layout_height="37dp" 945 android:layout_margin="5dp" 946 android:orientation="horizontal"> 947 <LinearLayout 948 android:layout_width="0dp" 949 android:layout_height="match_parent" 950 android:layout_weight="1" 951 android:orientation="horizontal" 952 android:weightsum="1"> 953 <EditText android:layout_width="71dp" 956 android:layout_height="wrap_content" 957 android:layout_weight="0.09" android:inputtype="number" 960 android:textsize="5pt" 961 tools:layout_editor_absolutex="-22dp" 962 tools:layout_editor_absolutey="85dp" /> 963 <Button android:layout_width="wrap_content" 966 android:layout_height="wrap_content" android:layout_centerhorizontal="true" 969 android:layout_weight="0.85" android:textsize="5pt" 972 tools:layout_editor_absolutex="197dp" 973 tools:layout_editor_absolutey="90dp" /> 974 </LinearLayout> 975 <LinearLayout 976 android:layout_width="0dp" 977 android:layout_height="match_parent" 978 android:layout_marginleft="5dp" 979 android:layout_weight="1" 980 android:orientation="horizontal" 981 android:weightsum="1"> 982 <EditText android:layout_width="67dp" 985 android:layout_height="wrap_content" V

23 986 android:layout_weight="0.02" android:inputtype="number" 989 android:textsize="5pt" /> 990 <Button android:layout_width="wrap_content" 993 android:layout_height="wrap_content" android:layout_centerhorizontal="true" android:textsize="5pt" 998 tools:layout_editor_absolutex="197dp" 999 tools:layout_editor_absolutey="90dp" /> 1000 </LinearLayout> 1001 <LinearLayout 1002 android:layout_width="50dp" 1003 android:layout_height="match_parent" 1004 android:layout_marginleft="5dp" 1005 android:gravity="right" 1006 android:orientation="horizontal" 1007 android:weightsum="1"> 1008 <Button android:layout_width="49dp" 1011 android:layout_height="wrap_content" android:layout_centerhorizontal="true" 1014 android:text="s" 1015 android:textsize="5pt" 1016 tools:layout_editor_absolutex="197dp" 1017 tools:layout_editor_absolutey="90dp" /> 1018 </LinearLayout> 1019 </LinearLayout> 1020 <LinearLayout 1021 android:layout_width="match_parent" 1022 android:layout_height="29dp" 1023 android:layout_margin="5dp" 1024 android:orientation="horizontal" 1025 android:layout_weight="0.02"> 1026 <LinearLayout 1027 android:layout_width="0dp" 1028 android:layout_height="match_parent" 1029 android:layout_weight="1.04" 1030 android:orientation="horizontal" 1031 android:weightsum="1"> 1032 <EditText android:layout_width="71dp" 1035 android:layout_height="wrap_content" 1036 android:layout_weight="0.09" android:textsize="5pt" 1039 android:inputtype="number" W

24 1040 tools:layout_editor_absolutex="-22dp" 1041 tools:layout_editor_absolutey="85dp" /> 1042 <Button android:layout_width="wrap_content" 1045 android:layout_height="wrap_content" android:layout_centerhorizontal="true" android:textsize="5pt" 1050 tools:layout_editor_absolutex="197dp" 1051 tools:layout_editor_absolutey="90dp" /> 1052 </LinearLayout> 1053 <LinearLayout 1054 android:layout_width="wrap_content" 1055 android:layout_height="match_parent" 1056 android:layout_marginleft="5dp" 1057 android:layout_weight="0.28" 1058 android:orientation="horizontal" 1059 android:weightsum="1"> 1060 <EditText android:layout_width="wrap_content" 1063 android:layout_height="wrap_content" 1064 android:layout_weight="0.94" android:inputtype="number" 1067 android:textsize="5pt" /> 1068 <Button android:layout_width="73dp" 1071 android:layout_height="wrap_content" android:layout_centerhorizontal="true" android:textsize="5pt" 1076 tools:layout_editor_absolutex="180dp" 1077 tools:layout_editor_absolutey="90dp" 1078 android:layout_weight="0.09" /> 1079 </LinearLayout> 1080 <LinearLayout 1081 android:layout_width="50dp" 1082 android:layout_height="match_parent" 1083 android:orientation="horizontal" 1084 android:weightsum="1" 1085 android:layout_marginleft="5dp" 1086 android:gravity="right"> 1087 <Button android:layout_width="49dp" 1090 android:layout_height="wrap_content" android:layout_centerhorizontal="true" 1093 android:text="r" X

25 1094 android:textsize="5pt" 1095 tools:layout_editor_absolutex="197dp" 1096 tools:layout_editor_absolutey="90dp" /> 1097 </LinearLayout> 1098 </LinearLayout> 1099 </LinearLayout> Y

26 Filename: Septaloka_Revano_Hashtable_Visualization_using_Linked_List_on_Android_Platform.pdf Date: :06 UTC Results of plagiarism analysis from :15 UTC 2453 matches from 131 sources, of which 57 are online sources. PlagLevel: 7.0%/61.8% [0] (683 matches, 0.0%61.7%) from a PlagScan document of your organisation...roid_platform.pdf" dated [1] (40 matches, 0.0%2.2%) from a PlagScan document of your organisation...roid_platform.pdf" dated [2] (36 matches, 2.7%) from qiita.com/otack/items/b4e226539af2ee [3] (25 matches, 2.1%) from your PlagScan document "Ambeta_Andr...Using_Android.odt" dated [5] (27 matches, 2.2%) from your PlagScan document "Andrian_Har...ON_ON_ANDROID.odt" dated (+ 2 documents with identical matches) [8] (27 matches, 2.2%) from a PlagScan document of your organisation...rest_location.odt" dated [9] (30 matches, 2.5%) from qiita.com/otack/items/b4e226539af2ee md [10] (27 matches, 2.2%) from [11] (26 matches, 2.1%) from iqb-entertainment.blogspot.com/2015/11/cara-merubah-orientasi-layar-menjadi.htm [12] (21 matches, 1.8%) from your PlagScan document "CHRISTIAN_A...TUBE_DATA_API.odt" dated [14] (25 matches, 2.0%) from (+ 7 documents with identical matches) [22] (24 matches, 2.0%) from [23] (23 matches, 1.9%) from [24] (23 matches, 1.9%) from [26] (17 matches, 1.6%) from a PlagScan document of your organisation...rce_algorithm.pdf" dated [27] (18 matches, 1.6%) from your PlagScan document "Wijayanti_D...ING_ARRAYLIST.pdf" dated [28] (18 matches, 1.6%) from your PlagScan document "DICKY_LARSO...WS_CLUSTERING.pdf" dated [30] (18 matches, 1.6%) from your PlagScan document "Stefanus_Su...D_APPLICATION.odt" dated [32] (17 matches, 1.6%) from a PlagScan document of your organisation...port_ pdf" dated [33] (18 matches, 1.6%) from a PlagScan document of your organisation...aiml_database.pdf" dated [34] (17 matches, 1.5%) from your PlagScan document "Sugianto_Pe...hm_Comparison.odt" dated [36] (17 matches, 1.5%) from your PlagScan document "OEI_STANLEY...AIML_DATABASE.pdf" dated [37] (17 matches, 1.5%) from a PlagScan document of your organisation...ing_arraylist.pdf" dated [38] (22 matches, 1.8%) from [39] (17 matches, 1.6%) from a PlagScan document of your organisation...ject_ odt" dated [40] (16 matches, 1.5%) from a PlagScan document of your organisation...ipt_and_html5.odt" dated [41] (16 matches, 1.5%) from your PlagScan document "Raynaldi_Ek...OLLING_SYSTEM.odt" dated [43] (17 matches, 1.5%) from your PlagScan document "ABD_KARIM_T..._NORTH_MALUKU.odt" dated [44] (17 matches, 1.5%) from your PlagScan document "Henry_Hardi...D_APPLICATION.odt" dated [45] (17 matches, 1.5%) from a PlagScan document of your organisation..._north_maluku.odt" dated [46] (17 matches, 1.5%) from your PlagScan document "Henry_Hardi...D_APPLICATION.odt" dated [48] (16 matches, 1.5%) from a PlagScan document of your organisation...r_&_histogram.odt" dated [49] (16 matches, 1.5%) from a PlagScan document of your organisation...ares_identify.pdf" dated (+ 3 documents with identical matches) [53] (16 matches, 1.5%) from your PlagScan document "Galih_Arya_..._GEDONG_SONGO.odt" dated

27 [54] (16 matches, 1.5%) from a PlagScan document of your organisation...ot_technology.odt" dated [56] (16 matches, 1.5%) from a PlagScan document of your organisation..._gedong_songo.odt" dated [58] (16 matches, 1.5%) from your PlagScan document "David_Kurni...RED_PROCEDURE.odt" dated [60] (16 matches, 1.5%) from a PlagScan document of your organisation...g_and_k-means.pdf" dated [61] (16 matches, 1.5%) from a PlagScan document of your organisation...stration_form.odt" dated [62] (15 matches, 1.4%) from your PlagScan document "Evan_Chandr...R_&_HISTOGRAM.odt" dated [63] (15 matches, 1.4%) from a PlagScan document of your organisation..._canyenne_iot.pdf" dated [64] (15 matches, 1.4%) from your PlagScan document "Devi_Floren...T'S_GRADE.pdf" dated [66] (15 matches, 1.4%) from a PlagScan document of your organisation...matic_pattern.pdf" dated [67] (15 matches, 1.4%) from your PlagScan document "Skripsi_12...TRA_ALGORITHM.odt" dated [69] (14 matches, 1.4%) from your PlagScan document "Nunnajib_Na...att_Algorithm.pdf" dated [70] (14 matches, 1.4%) from a PlagScan document of your organisation...att_algorithm.pdf" dated [71] (14 matches, 1.4%) from a PlagScan document of your organisation...g_google_maps.odt" dated [72] (19 matches, 1.6%) from sqlite2.blogspot.com/2016/04/javalangillegalstateexception-specified.html [74] (13 matches, 1.3%) from a PlagScan document of your organisation...ogle_maps_api.odt" dated [76] (18 matches, 1.5%) from [77] (17 matches, 1.4%) from [78] (19 matches, 1.5%) from [80] (18 matches, 1.4%) from blog.csdn.net/qq_ /article/details/ [81] (16 matches, 1.3%) from [82] (14 matches, 1.1%) from sqlite2.blogspot.com/2016/04/error-in-sqlite-database-connectivity.html [83] (7 matches, 0.8%) from a PlagScan document of your organisation...n_coefficient.pdf" dated [84] (5 matches, 0.8%) from a PlagScan document of your organisation...xy_using_java.pdf" dated [85] (6 matches, 0.8%) from a PlagScan document of your organisation...project-v2-1.docx" dated [86] (5 matches, 0.8%) from a PlagScan document of your organisation..._service_chat.pdf" dated [87] (13 matches, 0.8%) from [88] (5 matches, 0.6%) from a PlagScan document of your organisation...z_application.pdf" dated [89] (4 matches, 0.4%/0.8%) from [90] (4 matches, 0.0%0.7%) from [91] (11 matches, 0.6%) from your PlagScan document "Hendrick_13...G_PHP_OBJECTS.pdf" dated [92] (12 matches, 0.7%) from [93] (4 matches, 0.2%/0.7%) from tecfa.unige.ch/perso/sandra/pdf/earli2016_berney_betrancourt_final.pdf [94] (4 matches, 0.5%) from a PlagScan document of your organisation...ject doc" dated [95] (4 matches, 0.5%) from a PlagScan document of your organisation...dag_algorithm.pdf" dated [96] (10 matches, 0.5%) from [97] (7 matches, 0.5%) from [98] (7 matches, 0.5%) from [99] (3 matches, 0.4%) from docplayer.net/ implementation-minimax-algorithm-in-mini-pacman-game.h [100] (4 matches, 0.4%) from [101] (3 matches, 0.3%) from [102] (2 matches, 0.2%) from [103] (2 matches, 0.0%0.3%) from [104] (3 matches, 0.1%/0.3%) from [105] (2 matches, 0.3%) from

28 [106] (3 matches, 0.3%) from a PlagScan document of your organisation... Mersilia AS.docx" dated [108] (1 matches, 0.0%0.2%) from [109] (2 matches, 0.1%) from a PlagScan document of your organisation...ogle_maps_api.pdf" dated [111] (3 matches, 0.1%) from a PlagScan document of your organisation Chandra.pdf" dated [112] (2 matches, 0.2%) from [113] (3 matches, 0.2%) from a PlagScan document of your organisation...al_discourse.docx" dated [114] (3 matches, 0.1%/0.2%) from [115] (2 matches, 0.1%) from a PlagScan document of your organisation...anduning Rat.docx" dated [116] (2 matches, 0.1%) from [117] (2 matches, 0.1%) from library.binus.ac.id/ecolls/ethesisdoc/bab5/bab 5_11-69.pdf [118] (2 matches, 0.1%) from [119] (2 matches, 0.1%) from guides.codepath.com/android/gestures-and-touch-events [120] (2 matches, 0.1%) from [121] (2 matches, 0.1%) from [122] (2 matches, 0.1%) from [123] (2 matches, 0.1%) from javapapers.com/android/android-drag-and-drop/ [125] (2 matches, 0.1%) from [126] (2 matches, 0.1%) from [127] (2 matches, 0.1%) from [128] (2 matches, 0.1%) from a PlagScan document of your organisation...ogle_maps_api.pdf" dated [129] (2 matches, 0.1%) from a PlagScan document of your organisation Ian Akbar.doc" dated [130] (1 matches, 0.1%) from grepcode.com/file/repository.grepcode.co...0_r1/com/android/launcher2/launcher.ja Settings Sensitivity: Medium Bibliography: Consider text Citation detection: Reduce PlagLevel Whitelist: -- Analyzed document =====================1/66====================== Cover PROJECT REPORT HASHTABLE VISUALIZATION USING LINKEDLIST ON ANDROID PLATFORM REVANO SEPTALOKA Faculty of Computer Science Soegijapranata Catholic University 2017 i =====================2/66====================== APPROVAL AND RATIFICATION PAGE HASHTABLE VISUALIZATION USING LINKEDLIST ON ANDROID PLATFORM by REVANO SEPTALOKA

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

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

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

Lampiran Program : Res - Layout Activity_main.xml

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

Starting Another Activity Preferences

Starting Another Activity Preferences Starting Another Activity Preferences Android Application Development Training Xorsat Pvt. Ltd www.xorsat.net fb.com/xorsat.education Outline Starting Another Activity Respond to the Button Create the

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@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

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

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

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

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

More information

Android Apps Development for Mobile Game Lesson Create a simple paint brush that allows user to draw something (Page 11 13)

Android Apps Development for Mobile Game Lesson Create a simple paint brush that allows user to draw something (Page 11 13) Workshop 1. Create a simple Canvas view with simple drawing (Page 1 5) Hide Action Bar and Status Bar Create Canvas View Create Simple Drawing 2. Create a simple animation (Page 6 10) Load a simple image

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

More information

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

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

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

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

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

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

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

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

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

Android/Java Lightning Tutorial JULY 30, 2018

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

More information

Lecture 14. Android Application Development

Lecture 14. Android Application Development Lecture 14 Android Application Development Notification Instructor Muhammad Owais muhammad.owais@riphah.edu.pk Cell: 03215500223 Notifications Used to notify user for events Three general forms of Notifications

More information

Accelerating Information Technology Innovation

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

More information

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

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

More information

android-espresso #androidespresso

android-espresso #androidespresso android-espresso #androidespresso Table of Contents About 1 Chapter 1: Getting started with android-espresso 2 Remarks 2 Examples 2 Espresso setup instructions 2 Checking an Options Menu items (using Spoon

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

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

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

Embedded Systems Programming - PA8001

Embedded Systems Programming - PA8001 Embedded Systems Programming - PA8001 http://goo.gl/ydeczu Lecture 9 Mohammad Mousavi m.r.mousavi@hh.se Center for Research on Embedded Systems School of Information Science, Computer and Electrical Engineering

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

Chapter 5 Flashing Neon FrameLayout

Chapter 5 Flashing Neon FrameLayout 5.1 Case Overview This case mainly introduced the usages of FrameLayout; we can use FrameLayout to realize the effect, the superposition of multiple widgets. This example is combined with Timer and Handler

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

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

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

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

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

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

More information

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

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

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

BSCS 514- Computer Graphics. Course Supervisor : Dr. Humera Tariq Hands on Lab Sessions: Mr. Faraz Naqvi

BSCS 514- Computer Graphics. Course Supervisor : Dr. Humera Tariq Hands on Lab Sessions: Mr. Faraz Naqvi BSCS 514- Computer Graphics Course Supervisor : Dr. Humera Tariq Hands on Lab Sessions: Mr. Faraz Naqvi Lab 01 Running your First App on Android to Handle Text and Images Content Android studio setup Creating

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

Mobile and Ubiquitous Computing: Android Programming (part 3)

Mobile and Ubiquitous Computing: Android Programming (part 3) Mobile and Ubiquitous Computing: Android Programming (part 3) Master studies, Winter 2015/2016 Dr Veljko Pejović Veljko.Pejovic@fri.uni-lj.si Based on Programming Handheld Systems, Adam Porter, University

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

1. Simple List. 1.1 Simple List using simple_list_item_1

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

More information

TPCT s College of Engineering, Osmanabad. Laboratory Manual SDL-II. Mobile Application Development (Android) For. Third Year Students (CSE)

TPCT s College of Engineering, Osmanabad. Laboratory Manual SDL-II. Mobile Application Development (Android) For. Third Year Students (CSE) TPCT s College of Engineering, Osmanabad Laboratory Manual SDL-II Mobile Application Development (Android) For Third Year Students (CSE) Manual Prepared by Prof. Sujata A. Gaikwad Author COE, Osmanabad

More 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

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

Hello World. Lesson 1. Android Developer Fundamentals. Android Developer Fundamentals. Layouts, and. NonCommercial

Hello World. Lesson 1. Android Developer Fundamentals. Android Developer Fundamentals. Layouts, and. NonCommercial Hello World Lesson 1 This work is licensed This under work a Creative is is licensed Commons under a a Attribution-NonCommercial Creative 4.0 Commons International Attribution- License 1 NonCommercial

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

1 카메라 1.1 제어절차 1.2 관련주요메서드 1.3 제작철차 서피스뷰를생성하고이를제어하는서피스홀더객체를참조해야함. 매니페스트에퍼미션을지정해야한다.

1 카메라 1.1 제어절차 1.2 관련주요메서드 1.3 제작철차 서피스뷰를생성하고이를제어하는서피스홀더객체를참조해야함. 매니페스트에퍼미션을지정해야한다. 1 카메라 1.1 제어절차 서피스뷰를생성하고이를제어하는서피스홀더객체를참조해야함. 매니페스트에퍼미션을지정해야한다. 1.2 관련주요메서드 setpreviewdisplay() : startpreview() : stoppreview(); onpicturetaken() : 사진을찍을때자동으로호출되며캡처한이미지가전달됨 1.3 제작철차 Step 1 프로젝트를생성한후매니페스트에퍼미션들을설정한다.

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

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

GUI Widget. Lecture6

GUI Widget. Lecture6 GUI Widget Lecture6 AnalogClock/Digital Clock Button CheckBox DatePicker EditText Gallery ImageView/Button MapView ProgressBar RadioButton Spinner TextView TimePicker WebView Android Widgets Designing

More information

Android Beginners Workshop

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

More information

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

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

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

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

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

Meniu. Create a project:

Meniu. Create a project: Meniu Create a project: Project name: P0131_MenuSimple Build Target: Android 2.3.3 Application name: MenuSimple Package name: ru.startandroid.develop.menusimple Create Activity: MainActivity Open MainActivity.java.

More information