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 Set Background Color of Android View Programmatically

Desain dan Analisis Algoritma PTIIK Genap 2012/2013: Preface

Berikut ini adalah slide presentasi pada pertemuan I: Pendahuluan untuk mata kuliah Desain dan Analisis Algoritma semester Genap tahun akademik 2012/2013. Kelas yang diampu adalah kelas: Informatika B Informatika H Informatika J Hal-hal yang dibahas dalam pertemuan pertama mata kuliah ini mencakup penjelasan mengenai materi perkuliahan, rencana pembelajaran, referensi yang digunakan, evaluasi dan penilaian, regulasi perkuliahan. Slide presentasi dapat di-download pada link berikut ini: DAA – I (Microsoft PowerPoint .pptx, 198 kB) Tugas I Continue reading Desain dan Analisis Algoritma PTIIK Genap 2012/2013: Preface

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 Pemrograman Web PTIIK Genap 2012/2013: Preface

Android REST: HTTP GET Example

In developing a mobile application on Google Android platform often requires client-server communications. The communication itself often uses TCP/IP protocol on port 80 (HTTP) to represent a client state to a (service) server. This communication style often known as Representational State Transfer (REST). REST is a style of software architecture for distributed systems such as the World Wide Web. REST has emerged as a predominant Web service design model (wikipedia). If REST implemented in HTTP, it is often called Continue reading Android REST: HTTP GET Example

Inflate Android Layout Using Layout Inflater Service

Below is a small snippet in Android Java code to inflate a layout xml file into as a View using a Layout Inflater Service. Very useful if you intend to insert or include (inflate) any layout into another layout during runtime. AbsoluteLayout mainLayout = (AbsoluteLayout) findViewById(R.id.your_main_layout); LayoutInflater inflater = (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE); View menuLayout = inflater.inflate(R.layout.your_menu_layout, mainLayout, true); Assuming that your current activity has an AbsoluteLayout container named mainLayout in which a Continue reading Inflate Android Layout Using Layout Inflater Service

MacOS X: Configure Apache HTTP Server to Support HTTPS

MacOS X 10.8 – Mountain Lion has built in Apache HTTP server as I previously mentioned here. By default, the web server has disabled it’s functionality to handle HTTPS request, it is HTTP over SSL a.k.a Secure HTTP. It is a good idea to test your HTTPS web application on localhost during development. Then enabling HTTPS functionality in Apache web server is a must. The steps to enable HTTPS functionality Continue reading MacOS X: Configure Apache HTTP Server to Support HTTPS

Responsive Web Design

“Responsive Web Design” or RWD or a hashtag #rwd on Twitter has become a great plague in web design just like AJAX technologies which arise a few years ago. Almost all people uses AJAX to run their website. Nowadays, people are talking Responsive Web Design rather than CSS3 media queries technology like people are talking jQuery rather than the AJAX technologies itself. What is Reponsive Web Design? Responsive web design (often Continue reading Responsive Web Design