public static void setQualifiers ( String newQualifiers ) { Configuration configuration ; DisplayMetrics displayMetrics = new DisplayMetrics ( ) ; if ( newQualifiers . startsWith ( "+" ) ) { configuration = new Configuration ( Resources . getSystem ( ) . getConfiguration ( ) ) ; displayMetrics . setTo ( Resources . getSystem ( ) . getDisplayMetrics ( ) ) ; } else { configuration = new Configuration ( ) ; } Bootstrap . applyQualifiers ( newQualifiers , getApiLevel ( ) , configuration , displayMetrics ) ; Resources systemResources = Resources . getSystem ( ) ; systemResources . updateConfiguration ( configuration , displayMetrics ) ; if ( application != null ) { application . getResources ( ) . updateConfiguration ( configuration , displayMetrics ) ; } }
Overrides the current device configuration .