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)
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.layout_background_change); Button b = (Button) findViewById(R.id.changement_bt); i = (ImageView) findViewById(R.id.image_bg); b.setOnClickListener(this); } @Override public void onClick(View view) { try { getImage("http://.../image1.png","/sdcard/images/","image_bg.png"); Bitmap b = BitmapFactory.decodeFile("/sdcard/images/image_bg.png"); i.setImageBitmap(b); getApplication().setWallpaper(b); sendBroadcast(new Intent(Intent.ACTION_WALLPAPER_CHANGED)); } catch (Exception e) { Log.e("BackgroundChange", "background image download error", e); } } private void getImage(String pathSource, String directory, String name) throws IOException { URL url = new URL(pathSource); URLConnection cn = url.openConnection(); cn.connect(); InputStream stream = cn.getInputStream(); int contentLength = cn.getContentLength(); if (stream == null) throw new RuntimeException("stream is null"); InputStream in = new BufferedInputStream(stream); byte[] data = new byte[contentLength]; int bytesRead = 0; int offset = 0; while (offset < contentLength) { bytesRead = in.read(data, offset, data.length - offset); if (bytesRead == -1) break; offset += bytesRead; } in.close(); if (offset != contentLength) { throw new IOException("Only read " + offset + " bytes; Expected "+ contentLength + " bytes"); } String filename = directory + name; File f = new File(directory); if (f.exists() == false) { f.mkdir(); } FileOutputStream out = new FileOutputStream(filename); out.write(data); out.flush(); out.close(); cn = null; }