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.weatherforecast.views; import java.io.BufferedInputStream; import java.io.IOException; import java.io.InputStream; import java.net.URL; import java.net.URLConnection; import java.util.Map; import org.anddev.android.weatherforecast.R; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Typeface; import android.util.AttributeSet; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; /** * The View capable of showing a WeatehrIcon + a Temperature-TextView. */ public class SingleWeatherInfoView extends LinearLayout { // =========================================================== // Fields // =========================================================== private ImageView myWeatherImageView = null; private TextView myTempTextView = null; // =========================================================== // Constructors // =========================================================== public SingleWeatherInfoView(Context context) { super(context); } public SingleWeatherInfoView(Context context, AttributeSet attrs, Map inflateParams) { super(context, attrs, inflateParams); /* Setup the ImageView that will show weather-icon. */ this.myWeatherImageView = new ImageView(context); this.myWeatherImageView.setImageDrawable(getResources().getDrawable( R.drawable.dunno)); /* Setup the textView that will show the temperature. */ this.myTempTextView = new TextView(context); this.myTempTextView.setText("? °C"); this.myTempTextView.setTextSize(16); this.myTempTextView.setTypeface(Typeface .create("Tahoma", Typeface.BOLD)); /* Add child views to this object. */ this.addView(this.myWeatherImageView, new LinearLayout.LayoutParams( LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); this.addView(this.myTempTextView, new LinearLayout.LayoutParams( LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); } // =========================================================== // Getter & Setter // =========================================================== public void reset() { this.myWeatherImageView.setImageDrawable(getResources().getDrawable( R.drawable.dunno)); this.myTempTextView.setText("? °C"); } /** Sets the Child-ImageView of this to the URL passed. */ public void setRemoteImage(URL aURL) { try { URLConnection conn = aURL.openConnection(); conn.connect(); InputStream is = conn.getInputStream(); BufferedInputStream bis = new BufferedInputStream(is); Bitmap bm = BitmapFactory.decodeStream(bis); bis.close(); is.close(); this.myWeatherImageView.setImageBitmap(bm); } catch (IOException e) { /* Reset to 'Dunno' on any error. */ this.myWeatherImageView.setImageDrawable(getResources() .getDrawable(R.drawable.dunno)); } } public void setTempCelcius(int aTemp) { this.myTempTextView.setText("" + aTemp + " °C"); } public void setTempFahrenheit(int aTemp) { this.myTempTextView.setText("" + aTemp + " °F"); } public void setTempFahrenheitMinMax(int aMinTemp, int aMaxTemp) { this.myTempTextView.setText("" + aMinTemp + "/" + aMaxTemp + " °F"); } public void setTempCelciusMinMax(int aMinTemp, int aMaxTemp) { this.myTempTextView.setText("" + aMinTemp + "/" + aMaxTemp + " °C"); } public void setTempString(String aTempString) { this.myTempTextView.setText(aTempString); } }