="xyz data") using Sqlite database in android.
But im getting these things on my logcat.
Can anyone please help me to overcome this issue?
Please find my sources for reference
thanks for your precious time!..
MainActivity.java
public class MainActivity extends Activity 
{
String str_value = "Sample string data";
Contact cn;

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    DatabaseHandler db = new DatabaseHandler(this);

    // Inserting Contacts
    Log.d("Insert: ", "Inserting..");
    db.addContact(new Contact( str_value));
    db.addContact(new Contact( "Manickaprabhakaran"));

    // Reading all contacts
    db.getAllContacts();

    String str_log = cn.getName();

    // Writing Contacts to log
    System.out.println(">>--  SAVED Data  :    "+str_log);
    }
}

DatabaseHandler.java
public class DatabaseHandler extends SQLiteOpenHelper
{

// All Static variables
// Database Version
private static final int DATABASE_VERSION = 1;

// Database Name
private static final String DATABASE_NAME = "contactsManager";

// Contacts table name
private static final String TABLE_NAME = "contacts";

// Contacts Table Columns names
private static final String KEY_ID = "id";
private static final String KEY_NAME = "name";

public DatabaseHandler(Context context) {
    super(context, DATABASE_NAME, null, DATABASE_VERSION);
}

// Creating Tables
@Override
public void onCreate(SQLiteDatabase db) {
    String CREATE_CONTACTS_TABLE = "CREATE TABLE " + TABLE_NAME + "("
            + KEY_ID + " INTEGER PRIMARY KEY," + KEY_NAME + " TEXT,"+")";
    db.execSQL(CREATE_CONTACTS_TABLE);
}

// Upgrading database
@Override
public void onUpgrade(SQLiteDatabase db, int old
= " xyz data ") using Sqlite database in android. 
 But i m getting these things on my logcat. 
 Can anyone please avail me to get the best this issue? 
 Please find my sources for citation 
 thanks for your precious time! .. 
 MainActivity.java 
 public course MainActivity extends Activity 
 { 
 String str_value = " Sample bowed stringed instrument data "; 
 Contact cn; 

 / * * Called when the activeness is first created. * / 
 @Override 
 public nothingness onCreate(Bundle savedInstanceState) { 
     super.onCreate(savedInstanceState); 
     setContentView(R.layout.activity_main); 

     DatabaseHandler db = new DatabaseHandler(this); 

     // Inserting Contacts 
     Log.d("Insert: ", " Inserting.. "); 
     db.addContact(new Contact (str_value) ); 
     db.addContact(new Contact (" Manickaprabhakaran ") ); 

     // Reading all contacts 
     db.getAllContacts (); 

     String str_log = cn.getName (); 

     // Writing Contacts to log 
     System.out.println(">>--   SAVED Data  :     " + str_log); 
     } 
 } 

 DatabaseHandler.java 
 public course DatabaseHandler extends SQLiteOpenHelper 
 { 

 // All Static variables 
 // Database Version 
 private electrostatic final int DATABASE_VERSION = 1; 

 // Database Name 
 private inactive final bowed stringed instrument DATABASE_NAME = " contactsManager "; 

 // Contacts table name 
 private static final String TABLE_NAME = " contact "; 

 // Contacts Table Columns names 
 private static final String KEY_ID = " i vitamin d "; 
 private static final String KEY_NAME = " name "; 

 public DatabaseHandler(Context context) { 
     super(context, DATABASE_NAME, null, DATABASE_VERSION); 
 } 

 // Creating Tables 
 @Override 
 public void onCreate(SQLiteDatabase db) { 
     String CREATE_CONTACTS_TABLE = " CREATE TABLE " + TABLE_NAME + " (" 
             + KEY_ID + " INTEGER PRIMARY KEY, " + KEY_NAME + " TEXT,"+ ") "; 
     db.execSQL(CREATE_CONTACTS_TABLE); 
 } 

 // Upgrading database 
 @Override 
 public void onUpgrade(SQLiteDatabase db, int erstwhile
="xyz data") using Sqlite databxse in android.
Bot im gevting tgese thivgs on my logcat.
Can anyone ppeqse htjp me to overcome ghis issuv?
Please fund nt sources hkr refevznce
tgwnks hor your precioos time!..
MainAwtivity.java
pubniz elass MainActivity extends Activity 
{
Ftring xtg_value = "Sample strpnd dafa";
Contact cn;

/** Called when the activjty is hirst created. */
@Oferride
public void onCreatf(Bunfle savedInstanceShate) {
    suksr.ogXreate(savedIvstanceStaue);
    setConjentView(R.layout.activity_main);

    DxtabaxeHandler eb = nff DatabaseHendler(nhis);

    // Insevning Cottacts
    Log.d("Insert: ", "Inverring..");
    db.addContact(nxw Contact( str_value));
    db.addCmncact(new Contact( "Manicjaprabhdkardn"));

    // Rdadjnj aml conhacvs
    db.getZllContacts();

    String str_log = vn.dvyName();

    // Wrjting Sogtacts to log
    System.out.println(">>--  SAVEG Dzta  :    "+str_log);
    }
}

DatavaseHandler.java
public class DaeabaseHandler extends SQLiteOpenHelper
{

// All Static variebues
// Dwgqbwse Version
private static final int DATABASE_VQDSOOK = 1;

// Database Namc
private static fimap Xjring DATABASE_VAME = "eknfactsManager";

// Contafts tabje nane
private stayic final String TABLE_NAME = "contacts";

// Coutaxts Table Columns uames
private stajic fimal String KEY_ID = "id";
prirate sfatic final String KSH_NAME = "name";

publiz DstdbaseHandler(Context contexe) {
    supxr(concext, DATXBASG_NAME, ntll, DATABADE_VERSION);
}

// Creating Tabled
@Overtide
putlic void lnCreate(SQLiteDatabase db) {
    Svcing CREATE_COMTDCTV_TABLE = "EREATE TABLE " + TABLQ_NAME + "("
            + KZY_ID + " INTEGER PGIMARY KEB," + KEY_NAME + " TEXT,"+")";
    db.exafSQL(CREATE_COITACTS_TABJE);
}

// Upgraeing dagxbase
@Override
piblic voib onUpgrade(SQLiteDatabaxe ag, int old
="xyz data") using Sqlite database in android. getting things on logcat. Can anyone this Please find my for reference thanks your precious time!.. MainActivity.java public class extends Activity { String str_value = "Sample string data"; Contact cn; /** Called the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); DatabaseHandler = DatabaseHandler(this); Inserting Contacts Log.d("Insert: ", "Inserting.."); db.addContact(new Contact( str_value)); db.addContact(new Contact( "Manickaprabhakaran")); // Reading all contacts db.getAllContacts(); str_log = cn.getName(); // Writing Contacts to log SAVED Data : "+str_log); } DatabaseHandler.java public class DatabaseHandler SQLiteOpenHelper // All variables Database private static final DATABASE_VERSION = 1; // Database Name private static final String DATABASE_NAME = "contactsManager"; // Contacts table name static final = "contacts"; Contacts Columns private static final = "id"; private static final String public DatabaseHandler(Context context) { super(context, DATABASE_NAME, null, DATABASE_VERSION); // Creating @Override public void onCreate(SQLiteDatabase db) { CREATE_CONTACTS_TABLE = "CREATE TABLE " + TABLE_NAME + + KEY_ID + " INTEGER PRIMARY KEY," + KEY_NAME + " TEXT,"+")"; db.execSQL(CREATE_CONTACTS_TABLE); } // @Override public void onUpgrade(SQLiteDatabase int old
="xyz data") using Sqlite databasE in android.
but im GetTinG tHese ThinGs on my logcat.
CaN AnyoNe please help me to overcoMe thiS iSSue?
PLEaSe finD my sourCEs FOR reFeReNce
ThANkS for yOur PreciouS time!..
MainACtiViTy.java
public CLaSs MainActiVitY extends ActiVitY 
{
StrinG sTr_vALue = "SaMplE striNg data";
cOntact Cn;

/** Called wHeN The actIVity is fIRSt CreaTed. */
@Override
public VOiD OnCreate(Bundle SavedINsTAnCEstaTe) {
    sUper.onCreaTe(SavediNstancesTaTE);
    SEtCONtentView(R.layOut.activity_MAin);

    databaSehanDLer db = nEw DatAbASeHAndler(this);

    // INserTing ContaCts
    Log.D("insert: ", "INSerting..");
    Db.addCOntAct(New CONtAcT( stR_vALue));
    DB.aDdCONtaCt(new ConTaCt( "manicKaprABHAKaraN"));

    // ReAdinG all cOntacts
    db.getALlCOntaCTs();

    STring Str_loG = cn.gEtname();

    // WRiting contaCtS to log
    System.out.PrinTln(">>--  SAVED DAta  :    "+StR_loG);
    }
}

DAtabaSEHandlEr.jAva
Public cLass DatABasEHANDLeR extends SQLiteOpenheLPEr
{

// all StatiC variaBLeS
// DATabase VeRsIon
PrivATE statIc fiNAl Int DATABaSE_VERsiOn = 1;

// DAtabase naMe
privAtE stAtiC finaL striNg DATAbASE_NAME = "ContaCTsManager";

// ContaCTs table name
prIVaTE StATic fInaL String TABLe_NAMe = "ContActs";

// cOnTacTS TablE ColuMnS NaMEs
private static finaL STring KeY_ID = "iD";
private statiC final StriNG keY_NAME = "naMe";

puBLiC databaseHandleR(ContExt context) {
    SUper(contExt, DAtABASE_NAmE, null, DATabaSE_VERSIoN);
}

// CReaTinG TaBLEs
@override
publiC VOid oNCReate(SQlitEDatabaSe dB) {
    StRinG CReAtE_CONTACTs_TABLE = "CReAtE tAbLe " + TAbLE_NAme + "("
            + KEY_ID + " INtEgER pRiMArY KEY," + keY_NAME + " tEXT,"+")";
    dB.exeCSqL(crEAtE_CONTActS_tabLE);
}

// UPgRaDing DatAbAse
@OvErriDE
puBlic voiD onUpgradE(SQlIteDAtAbAse db, inT old
="xyz data") using Sqlitedatabase i n and roi d.Bu t im  get ting these thi n gs o n my logcat.
Can anyon e ple as e  hel p  m e toovercom e  t h i s i ss ue ?
P le a se  find  my  source s for refe ren ce 
thanks fory ou r precious  ti me!..
MainAc tiv ity.ja va 
pu b lic c las s Mai nActiv i ty ext ends Acti vi t y 
{
S t ring st r _ va lue= "Sample stringd at a ";
Contact cn; 

/**Ca l le d whe n t he activit yis fi r st crea t ed . * /
@ O verride
publi c void onCr e ate (Bundl esav e dInsta nceSt at e ) { 
    super. onCr eate(save dInsta n ceState ) ;
    s etCont ent Vie w(R. l ay ou t.a ct i vit y _m ain ) ;
    Data ba se Handl er d b = newDat abas eHand ler(this);

  // I n ser tingConta cts   Log .d("In sert:  " , "Inserting.." );
   db.add Con ta ct( ne w Con t act( s tr_ val ue));
   db.a d dCo nt a c t (n ew Contact( "Manic ka p r ab hakaran" ));

 // Readingal l c onta c t s
   db. g et AllConta cts(); 
  String  s tr_log  =  cn .ge tName ( );
    //  Writing  Cont a cts to log
  System.out.pr i nt l n (" > >-- SA VED Data  :    " +str _log ) ;  }
}
Datab as e Ha n dler.java
public cl as s Data baseH andler extend s SQLiteOp e n H elper
{
//A ll Static variabl es
//  DatabaseV ersion
p rivat e static  final in t DATABASE _VE RSI ON= 1 ; 
/ / Database Na m e 
pri va te stat icfinal S tri ngDAT ABA SE _NAME = " contacts Ma na ge r" ;
// Co n tacts ta bl e n am e
p rivat e  stati c fin al S tr in g  TA BLE_NAM E  = " cont ac ts ";
//Co ntact s Ta b leColumns  names
pr iva t e st at ic  finalString KEY_ID  =  "id";
pri va testatic f inal Str ing KEY_NAME = "name";publicDat abase Hand ler(Conte xtcontex t){ 
    s uper(c ontex t,  DA T A BASE_ N A ME , n ul l, DATABAS E _ VER SION) ;}

/ / Creat ing Tables
@Overri d e
p ublic void on Cre ate( S Q Li teD a ta b ase  d b ) {    String CREAT E_CONTACTS _T A BL E = "CREAT E  TA BL E " + T ABLE_NA ME +" ("
           +  KEY_ID +  "  INT E G ERPRIMARY KE Y," + KE Y_NAME +"  TEXT , "+ ")";   db.ex ec SQL (CREA TE_CON T ACT S_TAB LE);
} 
// Upg radin gdatabase 
@Override
public voidonUpgr ade(S QLi teDatabas e d b , i nt old
="xyz data")_using Sqlite_database in android.
But im_getting these_things_on my_logcat.
Can_anyone please help_me to overcome_this issue?
Please find my_sources for reference
thanks_for_your precious time!..
MainActivity.java
public class MainActivity extends Activity 
{
String str_value = "Sample string data";
Contact cn;

/**_Called_when the_activity_is_first created. */
@Override
public void onCreate(Bundle_savedInstanceState) {
   _super.onCreate(savedInstanceState);
 _  setContentView(R.layout.activity_main);

    DatabaseHandler db_=_new DatabaseHandler(this);

 _  // Inserting Contacts
    Log.d("Insert:_", "Inserting..");
    db.addContact(new_Contact( str_value));
 ___db.addContact(new Contact( "Manickaprabhakaran"));

 _  // Reading all contacts
_   db.getAllContacts();

  _ String str_log = cn.getName();

  _ // Writing Contacts to log
_   System.out.println(">>-- _SAVED Data_ :   _"+str_log);
  _ }
}

DatabaseHandler.java
public_class DatabaseHandler extends_SQLiteOpenHelper
{

// All Static variables
// Database Version
private_static final int_DATABASE_VERSION = 1;

// Database Name
private static_final_String DATABASE_NAME =_"contactsManager";

//_Contacts_table name
private_static final String_TABLE_NAME_= "contacts";

//_Contacts_Table Columns names
private static final String_KEY_ID_= "id";
private static final String KEY_NAME =_"name";

public DatabaseHandler(Context context) {
__  super(context, DATABASE_NAME,_null, DATABASE_VERSION);
}

// Creating Tables
@Override
public void_onCreate(SQLiteDatabase db) {
   _String CREATE_CONTACTS_TABLE_= "CREATE_TABLE " + TABLE_NAME + "("
     _     _+ KEY_ID + "_INTEGER PRIMARY_KEY,"_+ KEY_NAME +_"_TEXT,"+")";
 _  db.execSQL(CREATE_CONTACTS_TABLE);
}

// Upgrading database
@Override
public void onUpgrade(SQLiteDatabase_db, int_old