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)
@Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setTheme(android.R.style.Theme_Dark); setContentView(R.layout.main); mattext=(EditText) this.findViewById(R.id.matet); koeltext=(TextView) this.findViewById(R.id.koelet); hardheidtext=(TextView) this.findViewById(R.id.hardheidet); snijtext=(TextView) this.findViewById(R.id.snijet); snedebtext=(TextView) this.findViewById(R.id.snedebet); snededtext=(TextView) this.findViewById(R.id.snededet); tandtext=(TextView) this.findViewById(R.id.tandet); voedtext=(TextView) this.findViewById(R.id.voedet); freesbtext=(TextView) this.findViewById(R.id.freesbet); diatext=(TextView) this.findViewById(R.id.diaet); trektext=(TextView) this.findViewById(R.id.treket); freesttext=(TextView) this.findViewById(R.id.freestet); Button button =(Button) this.findViewById(R.id.zoek); button.setOnClickListener(new View.OnClickListener(){ public void onClick(View arg0) { zoek(); } }); } public void zoek() { final Dialog freesDialog = new Dialog(this); freesDialog.setTitle("Gegevens"); freesDialog.setContentView(R.layout.dialog); freesDialog.show(); Button okbutton =(Button) freesDialog.findViewById(R.id.Ok); okbutton.setOnClickListener(new View.OnClickListener(){ public void onClick(View view) { freesDialog.dismiss(); } }); String freest = null; Spinner matSpinner=(Spinner)freesDialog.findViewById(R.id.spinnermat); Spinner freestSpinner=(Spinner)freesDialog.findViewById(R.id.spinnerfrees); Spinner diaSpinner=(Spinner)freesDialog.findViewById(R.id.spinnerdia); Spinner tandSpinner=(Spinner)freesDialog.findViewById(R.id.spinnertand); Spinner freesbSpinner=(Spinner)freesDialog.findViewById(R.id.spinnerfreesb); ArrayAdapter matadapter = ArrayAdapter.createFromResource( this, R.array.mat, android.R.layout.simple_spinner_item); matadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); matSpinner.setAdapter(matadapter); ArrayAdapter freestadapter = ArrayAdapter.createFromResource( this, R.array.frees, android.R.layout.simple_spinner_item); freestadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); freestSpinner.setAdapter(freestadapter); ArrayAdapter diamadapter = ArrayAdapter.createFromResource( this, R.array.dia, android.R.layout.simple_spinner_item); diamadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); diaSpinner.setAdapter(diamadapter); ArrayAdapter tandadapter = ArrayAdapter.createFromResource( this, R.array.tand, android.R.layout.simple_spinner_item); tandadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); tandSpinner.setAdapter(tandadapter); ArrayAdapter bewerkadapter = ArrayAdapter.createFromResource( this, R.array.bewerk, android.R.layout.simple_spinner_item); bewerkadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); freesbSpinner.setAdapter(bewerkadapter); SQLiteDatabase myDB = null; try { this.createDatabase(MY_DATABASE_NAME, 1, MODE_PRIVATE, null); myDB = this.openDatabase(MY_DATABASE_NAME, null); myDB.execSQL("CREATE TABLE IF NOT EXITS " + MY_DATABASE_TABLE + "(freestype VARCHAR, freesdiameter VARCHAR, aantaltanden VARCHAR, " + "materiaal VARCHAR, hardheid VARCHAR, treksterkte VARCHAR," + "koeling VARCHAR, freesbewerking VARCHAR, snijsnelheid VARCHAR," + "snedediepte VARCHAR, snedebreedte VARCHAR, voedingpertand VARCHAR);"); myDB.execSQL("INSERT INTO " + MY_DATABASE_TABLE + "(freestype, freesdiameter, aantaltanden, materiaal, hardheid, treksterkte," + "koeling, freesbewerking snijsnelheid, snedediepte, snedebreedte, voedingpertand)" + "VALUES('ECP', '12', '4', 'C45', '180', '350-800'', 'Nee', 'Contour frezen', '160', '16', '4', '0.05');"); myDB.execSQL("INSERT INTO " + MY_DATABASE_TABLE + "(freestype, freesdiameter, aantaltanden, materiaal, hardheid, treksterkte," + "koeling, freesbewerking snijsnelheid, snedediepte, snedebreedte, voedingpertand)" + "VALUES('ERF', '16', '4', 'C60', '180', '350-800'', 'Nee', 'Gleuf frezen', '200', '20', '4', '0.05');"); Cursor c = myDB.query("SELECT + FROM + MY_DATABASE_TABLE + WHERE freestype='" + freestSpinner.getSelectedItemIndex() + "'AND freesdiameter='" + diaSpinner.getSelectedItemIndex() + "'AND aantaltanden='" + tandSpinner.getSelectedItemIndex() + "'AND materiaal='" + matSpinner.getSelectedItemIndex() + "'AND freesbewerking='" + freesbSpinner.getSelectedItemIndex() + "';",null); // Maybe the select statement is wrong? int freestypeNameColumn = c.getColumnIndex("freestype"); int freesdiameterNameColumn = c.getColumnIndex("freesdiameter"); int aantaltandenNameColumn = c.getColumnIndex("aantaltanden"); int materiaalNameColumn = c.getColumnIndex("materiaal"); int hardheidNameColumn = c.getColumnIndex("hardheid"); int treksterkteNameColumn = c.getColumnIndex("treksterkte"); int koelingNameColumn = c.getColumnIndex("koeling"); int freesbewerkingNameColumn = c.getColumnIndex("freesbewerking"); int snijsnelheidNameColumn = c.getColumnIndex("snijsnelheid"); int snedediepteNameColumn = c.getColumnIndex("snedediepte"); int snedebreedteNameColumn = c.getColumnIndex("snedebreedte"); int voedingpertandNameColumn = c.getColumnIndex("voedingpertand"); c.first(); do { freest = c.getString(freestypeNameColumn); freesttext.setText(freest); String freesd = c.getString(freesdiameterNameColumn); diatext.setText(freesd); String aantal = c.getString(aantaltandenNameColumn); tandtext.setText(aantal); String mat= c.getString(materiaalNameColumn); mattext.setText(mat); String trek = c.getString(treksterkteNameColumn); trektext.setText(trek); String hardh = c.getString(hardheidNameColumn); hardheidtext.setText(hardh); String koel = c.getString(koelingNameColumn); koeltext.setText(koel); String freesb = c.getString(freesbewerkingNameColumn); freesbtext.setText(freesb); String snijsnel = c.getString(snijsnelheidNameColumn); snijtext.setText(snijsnel); String sneded = c.getString(snedediepteNameColumn); snededtext.setText(sneded); String snedeb = c.getString(snedebreedteNameColumn); snedebtext.setText(snedeb); String voeding = c.getString(voedingpertandNameColumn); voedtext.setText(voeding); } while(c.next()); }catch (FileNotFoundException e) { } finally { if (myDB != null) myDB.close(); } } }