Pemrograman Web PTIIK Genap 2012/2013: PHP File and Directory Handling

Update 21 Maret 2013: Contoh penanganan data dari form pada file dapat di-download. Berikut ini adalah slide presentasi pada pertemuan IV: PHP File and Directory Handling untuk mata kuliah Pemrograman Web semester Genap 2012/2013. Kelas yang diampu adalah kelas: Sistem Informasi A Sistem Informasi B Informatika A Hal-hal yang dibahas dalam pertemuan keempat mata kuliah ini mencakup penjelasan mengenai: File Handling Open and Closing File FIle Open Modes Read Data Opening Continue reading

Pemrograman Web PTIIK Genap 2012/2013: PHP Fundamentals

Update 19 Mar 2013: PHP companion files untuk sub-materi Session dan Cookie dapat di-download. Berikut ini adalah slide presentasi pada pertemuan III: PHP Fundamentals and State untuk mata kuliah Pemrograman Web semester Genap 2012/2013. Kelas yang diampu adalah kelas: Sistem Informasi A Sistem Informasi B Informatika A Hal-hal yang dibahas dalam pertemuan kedua mata kuliah ini mencakup penjelasan mengenai: Apache web server administration and configuration, PHP, and why PHP? Sistem and software Continue reading

Pemrograman Web: Tugas Pengganti Kuliah – Selasa 5 Maret 2013

Perkuliahan mata kuliah Pemrograman Web untuk kelas SI-A dan SI-B hari Selasa 5 Maret 2013 diberikan tugas pengganti perkuliahan dikarenakan saya selaku dosen pengampu mata kuliah tersebut ada tugas untuk mengajar di Universitas Brawijaya Kediri. Adapun tugas pengganti untuk mata kuliah tersebut hari Selasa 5 Maret 2013 adalah: Carilah sebuah permasalahan dan algoritma yang dapat menyelesaikan permasalahan tersebut (contoh: sort, search, perpangkatan, dll). Daftar pilihannya dapat dilihat di link ini, Continue reading

Android: Passing ArrayList of Object Within an Intent

An intent is an object that is very useful to pass variables between activities in Android. Basic primitive data types such as Integer, String, Boolean are easy to be passed through an intent. On my previously written article on how to switch between android activities I already explained on how to pass a char sequence variable. But Android has no custom object data type that can be passed directly through an Continue reading

Tutorial: Android SQLite Database

SQLite is one of several ways that Android provide to store data. SQLite is already come with vanilla Android OS and it is very light weight to be used under mobile environment. Below is the tutorial on how to create classes to handle SQLite database operations. For the sake of simplicity, I only uses one table with only 3 columns to store cars information. The three columns are id (INT), Continue reading

Android: Simple Class For Easy Writing And Reading SharedPreferences String Value

SharedPreferences is used to store small configurations or settings data in your Android application. For example, as username or user preferences data storage. Just like variables, shared preferences can be identified by “key” string as “variable” name. Shared preferences are relatives to application. So it can not be accessed by other application directly. In the following example, I would like to store the username of logged in user so in Continue reading

Thread in Android: An Example

StrictMode is most commonly used to catch accidental disk or network access on the application’s main thread, where UI operations are received and animations take place. Keeping disk and network operations off the main thread makes for much smoother, more responsive applications. By keeping your application’s main thread (UI thread) responsive, you also prevent ANR (Application Not Responding) dialogs from being shown to users. Network requests being made on UI thread may Continue reading

Communicating PHP with Android Java using JSON

When you have several variables (data) which you would send to Android using regular text on HTTP, then JSON would become an alternative format to XML. Android has it’s own JSON parser class which able to convert text on JSON format into a JSON Object. Since version 5.2.0, PHP has it’s built in json_encode() and json_decode() function to convert an array into json string and vice versa.

Set Background Color of Android View Programmatically

While you are generating or displaying content through list views, it is sometimes you need to make a zebra-styled rows or coloring the view of row background into a custom color depending on row’s content. This snippets is applicable to any android view which is inheriting View class. So to change or modify view’s background color, it is as easy as the following code on your activity class: View v Continue reading

Pemrograman Web PTIIK Genap 2012/2013: Preface

Berikut ini adalah slide presentasi pada pertemuan I: Pendahuluan untuk mata kuliah Pemrograman Web semester Ganjil 2012/2013. Kelas yang diampu adalah kelas: Sistem Informasi A Sistem Informasi B Informatika A Hal-hal yang dibahas dalam pertemuan pertama mata kuliah ini mencakup penjelasan mengenai materi perkuliahan, rencana pembelajaran, referensi yang digunakan, evaluasi dan peniliaian, regulasi perkuliahan, serta tugas pendahuluan sebagai sarana penunjang kegiatan perkuliahan. Halaman Slide presentasi dapat di-download pada link berikut Continue reading