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)
import android.content.res.Resources; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.BitmapFactory.Options; import android.os.Build; import android.util.DisplayMetrics; public abstract class BitmapFactoryAbstract { /** * Classe creata per gestire le immagini unscaled sia su Level3 che su Level4 * @author sblantipodi */ public static final BitmapFactoryAbstract instance; // Se livello 3, se livello 4 static { if (Integer.parseInt(Build.VERSION.SDK) < 4) { instance = new Level3(); } else { instance = new Level4_or_higher(); } } // Carico la risorsa abstract Bitmap load(Resources resources, int resId, BitmapFactory.Options options); // Questo è il medoto che chiamo dalle varie classi al posto del metodo originale decodeResource() public static Bitmap decodeResourceUnscaled(Resources resources, int resId, BitmapFactory.Options options) { return instance.load(resources, resId, options); } // Siamo sul livello 3, chiamo il metodo decodeResource liscio senza modifiche private static class Level3 extends BitmapFactoryAbstract { @Override Bitmap load(Resources resources, int resId, Options options) { return BitmapFactory.decodeResource(resources, resId, options); } } // Siamo sul livello 4, chiamo il metodo decodeResource dicendogli di non scalare. private static class Level4_or_higher extends BitmapFactoryAbstract { @Override Bitmap load(Resources resources, int resId, Options options) { if (options == null) { options = new BitmapFactory.Options(); } // Non so perchè non funziona // options.inScaled = false; // Prendo i DPI del display DisplayMetrics metrics = new DisplayMetrics(); MyMainClass.instance.getWindowManager().getDefaultDisplay().getMetrics(metrics); // Imposto i dpi options.inDensity = metrics.densityDpi; options.inTargetDensity = metrics.densityDpi; return BitmapFactory.decodeResource(resources, resId, options); } } }