@Override protected void onResume() { // TODO Auto-generated method stub super.onResume(); super.initWidgets(); // font implementation of main heading "GMD": textview GMD_heading_TextView = (TextView) findViewById(R.id.Heading); GMD_heading_TextView.setTypeface(GMDApplication.fontHeading); // font implementation of page heading: textview page_Title_TextView = (TextView) findViewById(R.id.pageTitle); page_Title_TextView.setTypeface(GMDApplication.fontText); page_Title_TextView.setText("Bolt Torque"); page_Main_Heading = (TextView) findViewById(R.id.page_heading_middle); page_Main_Heading.setTypeface(GMDApplication.fontText); tv_Numbering_Heading = (TextView) findViewById(R.id.numbering); tv_Numbering_Heading.setTypeface(GMDApplication.fontHeading); tv_Numbering_Text = (TextView) findViewById(R.id.numbering_text); tv_Numbering_Text.setTypeface(GMDApplication.fontHeading); tv_Info = (TextView) findViewById(R.id.information); tv_Info.setTypeface(GMDApplication.fontHeading); tv_Info_text = (TextView) findViewById(R.id.information_text); tv_Info_text.setTypeface(GMDApplication.fontHeading); btn_Cancel = (Button) findViewById(R.id.btn_cancel); btn_SaveAndComplete = (Button) findViewById(R.id.btn_saveandcomplete); hm_Bolt_torque = new HashMap<String, String>(); btn_Cancel.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub finish(); } }); btn_SaveAndComplete.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub Save_All_Values_Function(true); } }); ll_Addrows_Bolt_Torque = (LinearLayout) findViewById(R.id.ll_row_bolt_torque); if (((LinearLayout) ll_Addrows_Bolt_Torque).getChildCount() > 0) ((LinearLayout) ll_Addrows_Bolt_Torque).removeAllViews(); progressBoltTorque = (ProgressBar) findViewById(R.id.progress_bolttorque); progressBoltTorque.setVisibility(View.VISIBLE); new populateValuesTask().execute(); }