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 com.minnamedia.weer; import java.util.ArrayList; import android.app.ListActivity; import android.content.Context; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.TextView; public class weer extends ListActivity { private ArrayList locations; private LocationAdapter locationAdapter; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); this.locations = new ArrayList(); // Add the adapter this.locationAdapter = new LocationAdapter(this, R.layout.row, this.locations); setListAdapter(this.locationAdapter); // Populate items this.loadLocations(); // Update the list this.locationAdapter.notifyDataSetChanged(); for(int i = 0; i < this.locations.size(); i++) { this.locationAdapter.add(this.locations.get(i)); } this.locationAdapter.notifyDataSetChanged(); } private void loadLocations() { Location testOne = new Location(); testOne.setLocationName("Amsterdam, Netherlands"); Location testTwo = new Location(); testTwo.setLocationName("Haarlem, Netherlands"); locations.add(testOne); locations.add(testTwo); } private class LocationAdapter extends ArrayAdapter { private ArrayList items; public LocationAdapter(Context context, int textViewResourceId, ArrayList itemsArg) { super(context, textViewResourceId, itemsArg); this.items = itemsArg; } @Override public View getView(int position, View convertView, ViewGroup parent) { View rowView = convertView; // If no view selected, load our Row.XML if(rowView == null) { LayoutInflater inflater = (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE); rowView = inflater.inflate(R.layout.row, null); } // Get our information from the list Location rowLocation = items.get(position); // Valid row? Fill it up if(rowLocation != null) { TextView locationName = (TextView)rowView.findViewById(R.id.locationName); if(locationName != null) locationName.setText(rowLocation.getLocationName()); } return rowView; } } }