Click here to Skip to main content
16,016,759 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Getting an error at
getWritableDatabase()<br />
Error- getWritableDatabase is undefined under myclass
.

Plz help?

Java
public void editjob(String m1,String curTime)
{
	String sql="UPDATE memories SET mem=? WHERE date=?;";
Object[] bA=new Object[]{m1,curTime};
try{

	getWritableDatabase().execSQL(sql,bA);//db.setLocale(Locale.getDefault());
}catch(SQLException e){
	Log.e("Error Writing New Job",e.toString());
}
	}
}
Posted
Updated 14-Oct-11 20:46pm
v3
Comments
Mehdi Gholam 15-Oct-11 2:41am    
What is the error you are getting?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900