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 de.test; import java.util.Vector; import android.app.ListActivity; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.Button; import android.widget.ListView; import android.widget.TextView; import de.test.sub.SubActivity; public class Test extends ListActivity { private TestAdapter myAdapter; private ListView myListView; public static MyHandler handler; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); myListView = getListView(); handler = new MyHandler(); Button addButton = new Button(this); addButton.setText("Add Item"); addButton.setOnClickListener(new Button.OnClickListener() { public void onClick(View v) { startActivity(new Intent(Test.this, SubActivity.class)); } }); myListView.addHeaderView(addButton); myAdapter = new TestAdapter(this); setListAdapter(myAdapter); myAdapter.addItem("not much"); } public class MyHandler extends Handler { public void handleMessage(Message msg) { if(msg.what == 1) { myAdapter.addItem((String) msg.obj); } super.handleMessage(msg); } } private class TestAdapter extends BaseAdapter { private Context cntxt; private Vector items; public TestAdapter(Context context) { cntxt = context; items = new Vector(); } public void addItem(String item){ items.add(item); notifyDataSetChanged(); } public int getCount() { return items.size(); } public Object getItem(int position) { return items.get(position); } public long getItemId(int position) { return position; } public View getView(int position, View convertView, ViewGroup parent) { TextView tv; if (convertView == null) tv = new TextView(cntxt); else tv = (TextView)convertView; tv.setText(items.get(position)); return tv; } } }