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.anddev.android.firstxmlbasedform; import java.net.URISyntaxException; import android.app.Activity; import android.content.Intent; import android.net.ContentURI; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.EditText; public class FirstXMLBasedForm extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); // Loads the whole main.xml layout-structure and displays it setContentView(R.layout.main); // ################### BUTTONS ##################### // ------------------------- // We need to FIND the buttons, because we didn't // create it "here in code", but in the main.xml! // Having found it, we set an anonymous OnClickListener // to perform our search. // ------------------------- // public View findViewById(int id): // Finds a view that was identified // by the id attribute from the XML // that was processed in onCreate(Bundle). Button okButton = (Button)findViewById(R.id.ok_button); Button clearButton = (Button)findViewById(R.id.clear_button); if(okButton == null){ // if okButton was null, then sth. // is wrong with our xml-definitons // call kernelPanic(); =D }else{ okButton.setOnClickListener(new OnClickListener(){ // @Override public void onClick(View viewParam) { // Create an 'empty' Intent Intent myIntent = null; try { // Find the EditText(where the user can type), // that we defined in the main.xml EditText keyWordEditText = (EditText)findViewById(R.id.keyword_entry); if(keyWordEditText == null){ showAlert("Error", "Couldn't find the 'keyword_entry'" + "EditView in main.xml", "Damn it... OK", false); }else{ // Read out what the user typed into the TextView String keyword = keyWordEditText.getText().toString(); if(keyword.length() == 0){ showAlert("Problem", "Your keyword is not long enough!!", "Oops...", false); // For extreme usability, we set the Focus back to the editText. // so the user can type again immediately. keyWordEditText.requestFocus(); }else{ keyword = keyword.replace(" ", "%20"); // The intent will open our anddev.org-board and // search for the keyword entered. myIntent = new Intent("android.intent.action.VIEW", new ContentURI("http://anddev.org/search.php" + "?mode=results&search_keywords='" + keyword + "'")); } } } catch (URISyntaxException e) { e.printStackTrace(); } // Start the activity if one was created if(myIntent != null) startActivity(myIntent); } }); } if(clearButton == null){ // if clearButton was null, then sth. // is wrong with our xml-definitons // call kernelPanic(); =D }else{ clearButton.setOnClickListener(new OnClickListener(){ // @Override public void onClick(View viewParam) { // Find the EditText(where the user can type), // that we defined in the main.xml EditText keyWordEditText = (EditText)findViewById(R.id.keyword_entry); if(keyWordEditText == null){ showAlert("Error", "Couldn't find the 'keyword_entry' " + "EditViewin main.xml", "Damn it... OK", false); }else{ keyWordEditText.setText(""); } } }); } } }