public void onCreate(Bundle savedInstanceState) {
//call the method which have the desing and getting the value dynamically
DrawTables();
}
DrawTables();
{
setContentView(R.layout.public_display);
try{
layout=(TableLayout)findViewById(R.id.tableLayoutpublic);
int showtable=1;
BeanFloor beanObj = new BeanFloor();
List<BeanFloor> floorList = new ArrayList<BeanFloor>();
floorList = DBHelper.getFloor();
Iterator<BeanFloor> it = floorList.iterator();
while(it.hasNext())
{
BeanFloor floorObj = it.next();
int nofloor=floorObj.getFm_nofloor();
//Toast.makeText(getApplicationContext(),"Number of Floors"+nofloor,Toast.LENGTH_LONG).show();
}
//call the refresh method
ProgressBar();
}
public void ProgressBar() {
final ProgressBar p = (ProgressBar) findViewById(R.id.progressBar1);
final Handler handler = new Handler();
handler.postDelayed(new Runnable() {
public void run() {
DrawTables();
}
}, 10000);
}
No comments:
Post a Comment