package com.example.listviewcustom01;

import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;


import android.app.ListActivity;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AlphabetIndexer;
import android.widget.SectionIndexer;
import android.widget.SimpleCursorAdapter;
import android.widget.TextView;
import android.widget.Toast;

public class MainActivity extends ListActivity 
{
	 
    private SQLiteDatabase db;
     
    @Override
    public void onCreate(Bundle savedInstanceState) 
    {
        super.onCreate(savedInstanceState);
         
        final DbHelper helper = new DbHelper(this);
        db = helper.getWritableDatabase();
         
        //populate the db with our dummy data, might take a while, so in real scenarios spawn a 
        //new thread to do this
        final int result = helper.insertDummyData(db); 
       
           
 
    }
 
   
 
    
}
