i want to insert values into some table.. buat i got message in ddms android
"Uncaught handler: thread main exiting due to uncaught exception"
here come code
i call the method to insert into database table :
dbSaham.insertSaham(new Date(2009,12,2),new Time(2,23,12), Float.valueOf(saham.getOpen()),Float.valueOf(saham.getHigh()), Float.valueOf(saham.getLow()), Float.valueOf(saham.getChange()),Integer.parseInt(saham.getVolume()),Float.valueOf(saham.getLast() ));
here the construktor like this :
public Saham (){
symbol = "android";
last = "1.0";
date = "";
time = "";
change = "3";
open = "23";
high = "11";
low = "12";
volume = "11";
}
and the method to insert in database table is:
public void insertSaham(Date waktu,Time time,float open,float high,float low,float change,int volume,float last) throws FileNotFoundException
{
try {
String query = "insert into "+DATABASE_TABLE+ "(date,time,change,open,high,last,low,volume)values('bbbb','aaa',"+ change +","+open+","+high+","+last+","+low+","+volume+" );";
Log.d("inputan di insert :", query);
db.execSQL(query);
} finally {
if (db != null)
db.close();
}
}
thank's alot.. regards..


