Code example for Resources

Methods: getConfiguration

0
    @Inject 
    private Resources resources;
 
    @OnCreate 
    protected void onCreate() { 
        if (resources.getConfiguration().orientation != Configuration.ORIENTATION_LANDSCAPE &&
                value != null) {
            view.setText(value);
        } 
    } 
} 
Contextual code suggestions in your IDE  Get Codota for Java