How to sync SQLite on Android to MySQL DB?
Apr06

How to sync SQLite on Android to MySQL DB?

In this post, I am going to explain how to sync data present in Android SQLite database to remote MySQL DB. In most of the Android applications, the data present in the local SQLite database will be synced with remote DB in order to perform statistical operations at the server end, maintain backup of the offline data etc.

In such cases, offline data will be synced with remote DB when User explicitly hits ‘Sync’ button or asynchronously by the application itself (in particular interval) when Internet connectivity is available.

Prerequisite:

You must have knowledge of SQLite before you start creating the application. Have a glance at the below articles which will make you understand much about SQLite

What is SQLite?

Android SQLite CRUD example

Read More
How to hide and show Action Bar?
Mar30

How to hide and show Action Bar?

In the previous posts, we discussed how to add Action Bar, handle action items clicks and add Up button. In this post, I will teach you now how to hide and show Action Bar.

In some scenario we need to hide Action Bar to provide more space for User to work on the applications.

Read More
How to add Up button on Action Bar?
Mar30

How to add Up button on Action Bar?

In the previous posts, we discussed how to add Action Bar and handle action items clicks. In this post, I will teach you how to add ‘Up’ or Navigation button on Action Bar.

Navigation button appears along with the icon in the action bar with the caret symbol.

For Ex: GMail Application with ‘Up’ button

Action Bar Up Button

Read More
How to handle clicks on Action Bar action items?
Mar30

How to handle clicks on Action Bar action items?

In the previous post, I discussed how to add Action Bar in Android applications. A simple demo application was also created with dummy Action Bar (which will not respond to clicks).

Prerequisite:

You must know how to add Action Bar in Android application before you proceed with this post. I recommend you to take a look at How to add Action Bar in Android Applications? post which will provide you insights on adding Action Bar.

In this post, I will teach you how to handle clicks on Action Bar action items. You need to create a simple Android application with Action Bar before you proceed further.

Read More
How to add Action Bar in Android Applications?
Mar29

How to add Action Bar in Android Applications?

In this post, I will teach you how to add Action Bar in Android Applications. I will also discuss how to make the Action Bar work in lower SDK Android version (Backward compatibility).

Prerequisite:

You must know about Action Bar before you start creating it. I recommend you to take a look at What is Action Bar? post which will provide you basic information about Action Bar.

Adding the Action Bar in Android applcation involves three steps, they are:

  1. Create Android Application Project with Holo Theme
  2. Setting up the Action Bar for lower SDK versions
  3. Adding Action Buttons
Read More
What is Action Bar?
Mar29

What is Action Bar?

In this post, I will walk you through an important Android UI component – Action Bar. You will also find list of useful posts on Action Bar tutorial following this post. Before we start creating Action Bar, we should know What is Acton Bar and its uses.

Let us begin.

Read More
Minimum Required SDK – Target SDK – Compile With
Mar28

Minimum Required SDK – Target SDK – Compile With

To create a new Android Application Project in Eclipse, one has to fill in following details to proceed to next step in project creation.

  • Application Name – Is an App name that appears to User
  • Project Name – Is a Name of the project directory
  • Package Name – Is an Application’s package name
  • Minimum Required SDK – ???
  • Target SDK – ???
  • Compile With – ???
  • Theme – It specifies Android UI style

We enter Application name, Project name and Package name but we usually leave default values for Minimum Required SDK, Target SDK and Compile With.

Read More
Android SQLite CRUD example
Mar16

Android SQLite CRUD example

In this post, I will walk you through how to perform Create, Read, Update and Delete (CRUD) operations in SQLite DB embedded in Android devices.

Prerequisite

You must know about SQLite before you start creating the application. Take a look at What is SQLite? post which will make you understand much about SQLite.

Read More
Page 1 of 1012345678910