try{
DataHelper db=new DataHelper(this);
db.open();
Cursor sqlResult=null;
sqlResult=db.multiValueQuery("select Story_id,1,2,3,4," +
"5,6,sub_location from ram");
db.close();
List
List
List
if (sqlResult.moveToFirst()) {
do {
Story_id1.add(sqlResult.getInt(0));
2.add(sqlResult.getString(1));
3.add(sqlResult.getString(2));
} while (sqlResult.moveToNext());
sqlResult.close();
}
if(sqlResult!=null){
size=offer1.size();
1=new String[size];
Story_id=new int[size];
2=new String[size];
for(int i=0;i
1[i]=rating1.get(i);
Story_id[i]=Story_id1.get(i);
}
}
mHandlerOrderin.post(mUpdateResultsorderin);
}catch(Exception e){
System.out.println("=====error update db===="+e);
}
}
final Handler mHandlerOrderin = new Handler();
final Runnable mUpdateResultsorderin = new Runnable() {
public void run() {
updateUIwithDataOrderin();
}
};
No comments:
Post a Comment