Home
Iced Tea Labs
Cancel

Organizing code with namespace in JavaScript

A. Preface: Sometime, we want to use functions or properties globally. But when there are too much global variables, they may be bring a lot of trouble - naming collisions. We can use namespace to ...

Activity Slide Transition

A - Introduction In previous post - Activity Fade Transition - I show you the pros of using transition animation in Android application. Today, I’ll show you another type of animation - slide tran...

Tips and Tricks for JavaScript Array

At the very first sight, I don’t like JavaScript! And till now, I still don’t like it LOL But because of my job, I have to deal with this it :) In this post, I’ll show you guys some tips and tri...

Activity Fade Transition

A - Introduction Fade animations made the transition between 2 activities becomes smoothly and naturally. It will gradually fade out current activity while simultaneously fading in another. Withou...

Get Result From Other App

A - Preface In previous post, I show you how to use Implicit Intent to call another app. But calling another app doesn’t have only one-way. You can also can recieve the result from calling app. S...

Singleton Implementation

A - Intent Ensure only ONE instance of the class is created Provide global access to that instance B - Usage Singleton will be applied when you want to have exactly ONE instance of a class, no ...

Best Practices for Exception Handling

Exception handling is an important part of developing robust application. It’s a process to response to a erroneous situation like invalid input value, not found resource,… Here are some best pra...

Use Implicit Intent to Call Another App

A - Preface In Android development, we usually use Intent to navigate between Activities in one application. It’s called explicit intent because you have to pass the exactly class name of the desti...

Create Dynamic UI with Fragment

A - Preface First of all, I just want to confirm that you know what Fragment was or not. If not, please read this post to know the basic knowledge about Fragment. When developing application, you ...

Object Comparison

A. Preface: We usually use “==” or “===” to compare variables in JavaScript. But sometimes, the result maybe not as expected. Let’s take a look: We have class Employee: function Employee(EmpID, Na...