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)
/* AndroidResources.java * * Public Domain * Copyright 2008 - All rights released */ package org.anddev.android.tutorial; import java.lang.reflect.Field; import java.lang.reflect.Modifier; import java.util.Collections; import java.util.SortedMap; import java.util.TreeMap; import android.util.Log; /** * Using reflection, name maps of the resources available in android.R */ public class AndroidResources { private static final String TAG = "AndroidResources"; /** SortedMap of android.R.id constants to their values. */ public static SortedMap< String, Integer > IDS_NAMES; /** SortedMap of android.R.drawable resource id constants to their values. */ public static SortedMap< String, Integer > DRAWABLE_NAMES; static { // Populate the map when this class is first referenced IDS_NAMES = mapIdConstants( android.R.id.class ); DRAWABLE_NAMES = mapIdConstants( android.R.drawable.class ); } /** * For a given class, build a map of all public int constants (i.e., static fields). * * Uses the Java reflection APIs. */ private static SortedMap< String, Integer > mapIdConstants( Class c ) { SortedMap map = new TreeMap(); Field fields[] = c.getFields(); // A constant is a type of field for( Field f : fields ) { // Look for the fields matching prototype "public static int" int modifiers = f.getModifiers(); if( Modifier.isPublic( modifiers ) && Modifier.isStatic( modifiers ) && f.getType().equals( Integer.TYPE ) ) // Integer.TYPE is the class for the int primitive { String name = f.getName(); // Get the field name try { int value = f.getInt( null ); // And its value // Add it to the map map.put( name, value ); } catch( Exception error ) { Log.e( TAG, "Failed to access id constant "+c.getName()+"."+name+'\n'+error ); } } } return Collections.unmodifiableSortedMap( map ); } }