Cannot display Android components in XML

when making a project on android studio it will automatically be created and provided with .java, .xml files and other supporting android projects. This will be compiled early by Gradle as an adjustment before being used by a programmer in editing the program. The “MainActivity.java” file will automatically generate java script in the android studio editor, and also the “acitivty_main.xml” layout file that will be automatically generated as well. on android studio version 3.2.1, “activity_main.xml” that is formed will automatically provide 1 default container layout, Relative Layout, but for android studio version 3.8.1 the main default layout given is Constraint Layout. This is a little different in giving a default layout, where constraint layout has the characteristics of components that are in it must be precise with the parent layout. otherwise it will be considered an error. in version 3.8.1, components that have been selected and dragged down on the worksheet (form layout design) will usually not appear on the worksheet or the results of the preview, but can appear when compiled and displayed on the cellphone / emulator. this is assumed to be a bug in the android studio. The solution is to edit the “styles.xml” file (which is in the values ​​folder) and add the “Base” keyword to the syntax style, as below:

EARLY

<! – Base application theme. ->

<style name = “AppTheme” parent = “Theme.AppCompat.Light.DarkActionBar”>

 

NEW

<! – Base application theme. ->

<style name = “AppTheme” parent = “Base.Theme.AppCompat.Light.DarkActionBar”>

 

Not Preview Component

 

Analysis Game Pac-Man

Bagi mahasiswa yang ingin mencari refernsi jurnal tentang mengontrol tingkah laku dari sebuah karakter game yang dibuat bisa merujuk pada salah satu artikel ini yang ditulis shaun dkk.

 

Real Time Game Design of Pac-Man

 

kutipan penulis :

Permasalahan game pac-man pada awal penelitian yang dilakukan adalah logika karakter ghost pada game yang tidak realistis beradaptasi  pada kemampuan karakter pengguna (pac-man) dan pergerakannya. Sebagai contoh, karakter ghost tidak bergerak menuju area dimana pac-man harus pergi menyelesaikan level (contoh area dengan banyak pelet/node). Karakter ghost atau karakter musuh belum memiliki interaksi yang baik terhadap karakter lainnya/karakter pengguna, maka ditambahkan sebuah logika fuzzy rule based atau fuzzy if then rule sebagai dasar untuk kontrol perilaku dari karakter musuh/ghost. Ada beberapa rule yang digunakan oleh karakter musuh yaitu hunting, defense, shy ghost, dan random. Penerapan rule hunting (menyerang pac-man) sebagai berikut (Shout, et al, 2006) :

–        If (pacman_near AND skill_good) then hunting_behavior

–        If (pacman_near AND skill_med AND pellet_med) then hunting_behavior

–        If (pacman_near AND skill_med AND pellet_long) then hunting_behavior

–        If (pacman_med AND skill_good AND pellet_long) then hunting_behavior

–        If (pacman_med AND skill_med AND pellet_long) then hunting_behavior

–        If (pacman_far AND skill_good AND pellet_long) then hunting_behavior

 

Sedangkan penerapan rule defense :

  • If (pacman_far and skill_bad and ghost_far and pellet_med) then defense_behavior
  • If (pacman_far and skill_bad and ghost_med and pellet_short) then defense_behavior
  • If (pacman_far and skill_bad and ghost_med and pellet_med) then defense_behavior
  • If (pacman_far and skill_med and ghost_far and pellet_short) then defense_behavior
  • If (pacman_med and skill_bad and ghost_far and pellet_short) then defense_behavior

Remidi Nilai UAS Semester Ganjil

Bagi mahasiswa yang mendapatkan nilai D pada matakuliah Pemrograman JAVA dan Pemrograman WEB II, maka sebagai peningkat nilai mahasiswa membuat sebuah artikel dari projek UAS yang kemarin diangkat. Untuk model template artikel silahkan download di dwija05.wordpress.com

 

Template artikel :

template remidi

 

KETENTUAN :

  • Artikel yang dibuat berdasarkan judul projek UAS yang diambil.
  • Bagi mahasiswa yang mengerjakan remidi dan termasuk dalam 1 kelompok yang sama, maka artikel yang dikerjakan harus berdasarkan judul yang diangkat tetap sesuai dengan tema projek uas.
  • Artikel yang dibuat harus sesuai dengan makna artikel (arti bisa di cek di google/wikipedia).
  • Remidi dikerjakan bagi mahasiswa yang mendapatkan nilai D saja.
  • Artikel yang dikerjakan harus sesuai dengan template yang ditentukan (download disini).
  • Artikel dibuat dalam sebuah softcopy dengan format .doc dan dikirim ke email saya wbrata@gmail.com.
  • Bagi yang sudah mengirim, tolong confirmasi dengan memberi COMMENT pada posting ini, dengan menuliskan NAMA, NIM, KELAS, JUDUL PROJEK UAS.

Materi Pengantar Organisasi Komputer (Orkom)

Buku ini membahas tentang struktur dan fungsi komputer. Setelah mempelajari buku ini diharapkan dapat memahami sifat dan karakteristik sistem-sistem komputer yang berkembang saat ini. Tantangan yang dihadapi adalah adanya bermacam-macam komputer dan perkembangan yang pesat dibidang komputer, namun demikian konsep dasar organisasi komputer telah digunakan secara konsisten secara menyeluruh. Buku ini bermaksud untuk memberikan bahasan lengkap dan mudah tentang dasar-dasar organisasi komputer.

Download here :

Buku Pengantar Organisasi Komputer

Modul 1 Pemrograman Java

Untuk pertemuan 1 akan dibahas tentang :

  • Sejarah Java
  • Keunggulan P. Java
  • Struktur Pemrograman Java Dekstop dan J2ME
  • JDK, Compiler, dan Interpreter

Modul 1 terdapat pula dalam ppt yang saya buat, bisa diambil disini :

Modul1.ppt
Adapula praktikum yang harus dikerjakan, juga bisa diambil disini :

lab-praktikumjavamobile.pdf

password pdf : javajeni
n.b : tolong dibuat dan minggu depan akan saya cek
Terima Kasih

dwija wisnu brata

Make Your QR Code

QR code?? maybe some of you don’t know about QR Code…. i’ve just know about this.

ok…. this is a review from QR Code..

QR Code or commonly known as the QR Code bar code is a form of evolution from one dimension into two dimensions. The use of QR codes are very common in Japan This is because the ability to store data that is bigger than the bar code so as to encode information in Japanese kanji because it can accommodate. QR Code has received international standardization and standardization of the Japanese form of ISO/IEC18004 and JIS-X-0510 and has been widely used by mobile phones in Japan.

Definition of QR Code

QR Code is a type of matrix code or two-dimensional bar code developed by Denso Wave, a division of Denso Corporation, which is a Japanese company and published in 1994 with the main functionality that can be easily read by the scanner QR stands for quick response or response fast, that in accordance with the objective is to convey information quickly and get a fast response as well. Unlike bar codes (barcodes), which only stores information horizontally, QR code capable of storing information horizontally and vertically, and therefore automatically QR Code can accommodate more information than bar codes (barcodes).

Continue reading