lundi 15 juin 2015

Can i pass DBHelper class object to anther class which is a library class

I have a DBHelper class which is extended from SQLiteOpenHelper,i created object for DBHelper in my one of the class file.and i want to send the object of that DBHelper class to a Library class with a Specific method.

Is there any possibility.

Can i write this code in my library file:

mylibrary{
public DataFromUser(SQLiteOpenHelper openHelper,String tablename,**********************,*********)
{
//------------------------------
}
}

If i write in my actual class.

public toDB()
{
DBHelper helper;

MYLibrary lib;

lib.DataFromUser(helper,table,********)
}

Aucun commentaire:

Enregistrer un commentaire