Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
public class MyActivity extends Activity { //Private local members // Gets called when a message is sent from the Thread private Handler mainActivityHandler = new Handler() { @Override public void handleMessage(Message msg) { if(msg.what==GlobalValues.HANDLER_RESULT) { listOfMyItems = myDB.getAllMyItems(); dismissWaitDialog(); displayItem(); } } }; @Override protected Dialog onCreateDialog(int id) { switch (id) { case DIALOG_INITIALIZE: { processDialog = new ProgressDialog(this); processDialog.setMessage("Loading..."); processDialog.setIndeterminate(true); processDialog.setCancelable(true); return processDialog; } } return null; } /** * Dismisses the dialog if it has been shown previously. * * @see {@link Activity#onResume()} */ @Override public void onResume() { super.onResume(); dismissWaitDialog(); } /** * Dismiss the dialog if it has already been shown. */ private void dismissWaitDialog() { if (processDialog != null) dismissDialog(DIALOG_INITIALIZE); } /** * Show the dialog with the specified message. * * @param msg * the message to set on the dialog. */ private void showWaitDialog(String msg) { if (processDialog == null || !processDialog.isShowing()) showDialog(DIALOG_INITIALIZE); processDialog.setMessage(msg); } /** Called when the activity is first created. */ @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.main); //.. some delcarations initMainView(); myDB = new MyDB(this); // THIS IS THE FUNCTION THAT HAS BEEN CALLED IN THE ONCLICK FUNCTION OF A BUTTON BEFORE fillActivityWithContent(); } /** * Initialize the View of the Activity */ private void initMainView() { //Some referencing of local members to layout attributes error = (TextView) findViewById(R.id.Error); // button = (Button) ...... //.... } private void fillActivityWithContent() { try { listOfmyItems = myDB.getAllMyItems(); // database empty? Then initialize database by parsing the XML document if (listOfmyItems.isEmpty()) { showWaitDialog("Initialize DB..."); myThread t = new myThread(this, R.raw.myxmldoc, mainActivityHandler); t.start(); } else displayItem(); } catch (Exception e) { error.setVisibility(View.VISIBLE); anothertextview.setVisibility(View.GONE); //.. Log.e("ERROR", "Error:", e); } } private void displayItem() { for (int i = 0; i < listOfMyItems.size(); i++) { if (listOfMyItems.get(i).getMsomething().equals(something)) { arrayIndex = i; break; } } if (!listOfMyItems.isEmpty() && listOfMyItems.size() > arrayIndex) { anothertextview.setText(listOfmyItems.get(arrayIndex).getMsomething()); //... } } }