Skip to main content


Showing posts from November, 2014

How to parse a json file In Android

In this blog I am going to explain How to parse a json file. Here I am going to explain how to parse a json file stored in Asset folder. Here my file name is user_details.json which stored in asset folder(json_file/user_details.json). Here is my json file.
  "Name": "Shidhin TS",
  "UserId" : "1",
  "Website" : "",
  "Company" : "B-Mates Technologies",   "Mobile" : "+91XXXXXXXXXX",
  "Qualification": [
            "Name": "Name1",
            "Institute": "Institute Name1",
    "Year": "2006 - 2009",
            "Mark": "87%"
            "Name": "Name2",
            "Institute": "Institute Name2",
    "Year": "2004 - 2006",
            "Mark": "78%"

How to call a webservice in android.

In this blog I am going to explain How to call a .Net xml webservice in android with the help of an login WebService.
XML RequestPOST /Service.asmx HTTP/1.1
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: ""

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="" xmlns:xsd="" xmlns:soap="">
    <Login xmlns="">

                  In this WebService request Our Function name is  "Login " and the parameters we are passing are "Email" which is "string" format and  "Password" which is also in &q…

SQLite Database in android

In this blog I am going to explain SQLite database in android. It is an Open Source Database, Also Its is embedded to all the android devices so there is no need to add any library to the application. You are need to import SQLiteDatabase and SQLiteOpenHelper for that.

import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

Also I an going to explain How to create a Database, Tables, Inserting values, Updating values, Deleting values from the Database operations in Android.

More Information about SQLite :
More Information about SQLite Data-types:

Creating Database

     First you are needed to create a class for database. Here I am going to create a class "DbHelper".

public class DbHelper {


Now I need to extend SQLiteOpenHelper on this class. While extendingthis we need to add constructor and some unimplemented methods. Also I am going to declare the "DATABASE…