Home » Android » Android Core » Page 20

Android Core

Storing Objects in Android

One alternative to using SQLite on Android is to store Java objects in SharedPreferences. Here, we’ll look at two different ways to do that. Why not go for SQLite for all storage needs? The reasons can be varied: besides the impedance mismatch between object orientation and relational databases, SQLite might be overkill (brings more overhead) for some simple use cases, ...

Read More »

Android Volley dynamic ListView: AsyncTask comparison

In this post, I will describe first how to use Volley to populate dynamically a ListView, and then compare it against AsycnTask. In this post, we will invoke a remote service to get contact information in JSON format, and we populate the items inside a ListView.This simple example is very useful to understand Volley library and how we can integrate ...

Read More »

Android Volley Tutorial: Post and download image

In this post, I want to describe how to use a very powerful and easy to use library for Android. This library is called Volley and it can be used to handle networking connection. In previous post, we talked about HttpUrlConnection and Apache HTTP client. They are both valid and useful but using Volley we can simplify our work. Volley ...

Read More »

Android JSON Tutorial: Create and Parse JSON data

This tutorial describes how to use JSON with Android. JSON stands for (Java Script Object Notation). It is a simple and light-weight data interchange format that can be easily read by humans and machines. JSON is a text format that is language independent. It represents data in a text format so that can be easily parsed. Introduction to JSON JSON uses two different of ...

Read More »

Android SlidingPaneLayout: Tutorial

In this post, we want to show how to use SlidingPaneLayout. This is an interesting component that can be used when we want to have a multi-pane horizontal layout. This component is divided in two different parts: left side: The master part. It usually contains a list of values (i.e. Contacts and so on) right side: The detail part. It ...

Read More »

Android Image Filters

Introduction Image Filter allows you to add various effects on image. There are mainly two purpose of Image Processing: Image Understanding: It is used to identify content of image, weather image has human faces, objects (bus, train, etc.), measure dimension of objects,etc. OpenCV (Open Source Computer Vision Library) is one of the main library used for Image Understanding. Image Beautify : ...

Read More »

In Depth : Android Shutdown Sequence

What happened when I long press power button ? What is shutdown sequence ? How is it different from desktop linux shutdown sequence? How to change shutdown menu ? Many questions pop-up in mind when we think about Android shutdown sequence. Before you read about shutdown sequence I suggest you to read about boot sequence article. Android is linux based ...

Read More »