Iced Tea Labs Share to be shared

File Storage in Android

In a very old post (Save Data To File), I wrote about writing data to and reading data from internal file storage. And that is a very very simple post about working with File Storage in Android. In this post, I’ll show you a deeper look into the Android file storage and how to perform file-related tasks. A - Internal Storage vs External Storag... Read more

Couchbase Lite

A - Introduction Couchbase Lite is a non-relational database, data is stored in documents instead of table rows. A document is a JSON object that contains a number of key-value pairs. Entities, and relationships between entities, are managed within the document itself. If you’re familiar with relational database, you’ll find that Couchbase Lit... Read more

Floating View like Facebook Chatheads

In this post, I’ll show you how to create a floating view like Facebook chatheads - the view that was drawn on top of other applications. So, the very first question is: How can we do that? An activity with transparent background? Actually, there’s no activity here. Instead, we’ll user service! As you know, activity and dialog have their own ... Read more

Drawer Navigation Menu with Material Design Style

In previous post, I showed you how to use Drawer Navigation Menu in your Android application. In this post, I’ll show you how to implement it with Material Design style. All the steps are quite similar to the pre-Lollipop version, but I still go through every single steps to help you feel easier. Before started, you can watch the demo for t... Read more

CardView and RecyclerView in Material Design

Firstly, to have some visual view about this post, you can take a look at this demo video: A - CardView 1 – What is CardView? CardView was brought along with Android 5.0 Lollipop. It extends FrameLayout and has rounded background with shadow by default. CardView is convenient for displaying complex content that has multiple heterogeneous data ... Read more

Apply Material Design to Pre-Lollipop Devices using AppCompat v21

As you know, the Android 5.0 Lollipop was released featuring with new UI style called Material Design. Material design is a comprehensive guide for visual, motion, and interaction design across platforms and devices. You can find more information, design guidelines about Material Design here: Read more

Basic Regular Expression in Java

A - Regular Expression Overview Regular expression (Regex) is a sequence of characters that define a search pattern for strings. Regular expression can be used to search, edit and manipulate text and data. The pattern defined by regular expression can match zero, one or several times in a string. The regular expression pattern will be applied t... Read more

Apply MVP Pattern for Android

A - What is MVP? MVP pattern stands for Model - View - Presenter. MVP is a derivative from famous MVC guy. It allows separate the presentation layer from the business logic. -   Model: handle persisting and retrieving data, along with any business logic that the data must adhere to -   View: gather user input and update the display -   Presente... Read more

Parse JSON Request using Volley and GSON

In previous post,  I showed you how to use Volley to make a simple request in Android application. This time, I’ll show you the recommended way to make a JSON request using Volley and how to customize Volley request to take advantage of the GSON library. A - Setting up a RequestQueue Firstly, create the VolleyHelper class. This will be a single... Read more

Simple Request Using Volley

A – What is Volley? Volley is a very powerful and easy to use library for Android that can be used to handle networking connection. It manages the processing and caching of network requests and it saves developers valuable time from writing the same network call/cache code again and again. Volley comes with lot of features. Some of them are: -... Read more

Card Flip Animation

In previous posts, I showed you how to apply animation (fade, slide) to activity transaction. In this post, I’ll show you how to do a card flip animation applied for any View or Layout objects. A - Create the Animator Firstly, we need to create Animator for the card flip animation. flight_left_in.xml defines the animation when the front card c... Read more