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)
package org.neotech.data_file_based; import java.io.IOException; import org.xmlpull.v1.XmlPullParserException; import android.app.Activity; import android.content.res.XmlResourceParser; import android.os.Bundle; import android.util.Log; import android.widget.ArrayAdapter; import android.widget.Spinner; import android.widget.TextView; public class data_file_based extends Activity { /** Called when the activity is first created. */ final static String TAG = "CompXML"; String boek = ""; String text = ""; int hoofdstuk = 0; int vers = 0; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Spinner spinner_boeken = (Spinner) findViewById(R.id.spinner_boeken); ArrayAdapter adapter_boeken = ArrayAdapter.createFromResource( this, R.array.boeken, android.R.layout.simple_spinner_item); adapter_boeken.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); spinner_boeken.setAdapter(adapter_boeken); Spinner spinner_hoofdstukken = (Spinner) findViewById(R.id.spinner_hoofdstukken); ArrayAdapter adapter_hoofdstukken = ArrayAdapter.createFromResource( this, R.array.hoofdstukken, android.R.layout.simple_spinner_item); adapter_hoofdstukken.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); spinner_hoofdstukken.setAdapter(adapter_hoofdstukken); Spinner spinner_versen = (Spinner) findViewById(R.id.spinner_versen); ArrayAdapter adapter_versen = ArrayAdapter.createFromResource( this, R.array.versen, android.R.layout.simple_spinner_item); adapter_versen.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); spinner_versen.setAdapter(adapter_versen); TextView tv = (TextView) findViewById(R.id.generated_text); tv.setText(""); String s_zoek_boek = spinner_bijbelboeken.getSelectedItem().toString(); String s_zoek_hoofdstuk = spinner_hoofdstukken.getSelectedItem().toString(); String s_zoek_vers = spinner_versen.getSelectedItem().toString();; int i_zoek_hoofdstuk = Integer.parseInt(s_zoek_hoofdstuk); int i_zoek_vers = Integer.parseInt(s_zoek_vers); try { XmlResourceParser xrp = this.getResources().getXml(R.xml.data); while (xrp.getEventType() != XmlResourceParser.END_DOCUMENT) { if (xrp.getEventType() == XmlResourceParser.START_TAG) { String s = xrp.getName(); if (s.equals("boek")) { boek = xrp.getAttributeValue(null, "name"); int i = xrp.getAttributeIntValue(null, "boek", 0); } else if (s.equals("hoofdstuk")) { hoofdstuk = xrp.getAttributeIntValue(null, "name", 0); } else if (s.equals("vers")) { vers = xrp.getAttributeIntValue(null, "name", 0); } } else if (xrp.getEventType() == XmlResourceParser.END_TAG) { String s = xrp.getName(); if(s.equals("vers")){ //set text if(vers == i_zoek_vers && hoofdstuk == i_zoek_hoofdstuk && boek.equals(s_zoek_boek)){ tv.append(boek + " " + hoofdstuk + ":" + vers + "\n" + text + "\n\n"); } } } else if (xrp.getEventType() == XmlResourceParser.TEXT) { text = xrp.getText(); } xrp.next(); } //einde while xrp.close(); //try fails } catch (XmlPullParserException xppe) { Log.e(TAG, "Failure of .getEventType or .next, probably bad file format"); xppe.toString(); } catch (IOException ioe) { Log.e(TAG, "Unable to read resource file"); ioe.printStackTrace(); } } }